Re: [O] What to do with taskjuggler's Plan.html report?

2014-10-31 Thread Christian Egli
Hi Thorsten

Thorsten Jolitz tjol...@gmail.com writes:

 when I run 'tj3' on a taskjuggler file (.tjp) exported from Org, I get
 the reports as 'Plan.html' file.

 I can have a look with my browser, but thats not really what I want - I
 want to integrate the reports in a LaTeX document (exported from Org). 

 Did anybody try to use TJ3 with Org-mode and has some insights here?

I've never tried it but tj3 has the possibility to also generate reports
csv or XML. So you might be able to create a report which dumps the list
of tasks and their dates into a csv. Given this you could try to create
a LaTeX document (maybe even using the pgfgantt[1] package).

Thanks
Christian

Footnotes: 
[1]  http://www.ctan.org/pkg/pgfgantt
-- 
Christian Egli
Swiss Library for the Blind, Visually Impaired and Print Disabled
Grubenstrasse 12, CH-8045 Zürich, Switzerland




Re: [O] [RFC] Change property drawer syntax

2014-10-31 Thread Christian Egli
Nicolas Goaziou m...@nicolasgoaziou.fr writes:

 Nicolas Goaziou m...@nicolasgoaziou.fr writes:

 As discussed previously, I would like to modify property drawers syntax.
 The change is simple: they must be located right after a headline and
 its planning line, if any.

 Feedback welcome.

 If there is no more feedback or objection, I will merge the branch on
 Tuesday.

I see that it is too late now, but let me still note that the
taskjuggler exporter is quite liberal in what attribute values it allows
for exporting. I've never used it and I haven't ever seen anyone using
it, but in theory you could give a task a note or a journalentry which
spans multiple lines. This will no longer be possible with this change.

I guess if anyone ever wants to specify notes and journalentries for a
task and export this to taskjuggler they will have to put it on one
line.

Thanks
Christian
-- 
Christian Egli
Swiss Library for the Blind, Visually Impaired and Print Disabled
Grubenstrasse 12, CH-8045 Zürich, Switzerland




Re: [O] Extremely slow org-table operations

2014-10-31 Thread Charles Millar

Hi Michael

 Michael Brand wrote:
 Hi Charles

 First I would like to point out that to my understanding there are now
 two separate issues in discussion in this thread which are easy to mix
 up:

 1) The same table calculates fast or slow depending on the position
 within the same entry, see OP.
 I did not understand; I thought that the speed slowed down as the OP 
progressed from table to table in the file.

 2) An entry with nothing but a single table, as you describe it:
 True; I did not bother to mention other files in which I had multiple 
tables, some with references to other tables in the file. At times M-x 
org-table-iterate-buffer-tables seemed to take eternity, squared. 
(Imagine a smiley face placed here.)
 On Thu, Oct 30, 2014 at 12:40 AM, Charles Millar 
mill...@verizon.net wrote:

 I learned that the hard way when I had one table - four columns, three
 simple addition formulas with about 1,000 entries. It seemed an 
eternity

 before the addition was completed.
 Only out of curiosity I would like to see the TBLFM. And do you see
 still the same slowness with 8.3beta?
 It has been quite a while and I suspect that my experience may have 
been with org 8.0. I try to find the older files, give them a run and 
let you know.  I will also give org another shot using multiple tables, 
as spreadsheets, in one file. The worst that can happen is that I will 
have to export the tables.


 Charlie





Re: [O] [PATCH] New version of org-velocity

2014-10-31 Thread Marco Wahl
Hello Paul,

Paul Rodriguez p...@ruricolist.com writes:

 This is a new version of org-velocity. Principally it differs in using
 cl-lib and lexical binding, but there are also some minor bugfixes for
 presenting results on very large screens and compatibility with
 evil-mode.

Thanks for sharing.

Is there any reason not bringing your new version into the master
branch?


Best regards,  Marco
-- 
http://www.wahlzone.de
GPG: 0x0A3AE6F2



Re: [O] Extremely slow org-table operations

2014-10-31 Thread Charles Millar

Earlier today I attempted to send the following.
Charles Millar wrote:

Hi Michael,

Michael Brand wrote:

Hi Charles

First I would like to point out that to my understanding there are now
two separate issues in discussion in this thread which are easy to mix
up:

1) The same table calculates fast or slow depending on the position
within the same entry, see OP.
I did not understand; I thought that the speed slowed down as the OP 
progressed from table to table in the file.

2) An entry with nothing but a single table, as you describe it:
True; I did not bother to mention other files in which I had multiple 
tables, some with references to other tables in the file. At times 
M-x org-table-iterate-buffer-tables seemed to take eternity, 
squared. (Imagine a smiley face placed here.)
On Thu, Oct 30, 2014 at 12:40 AM, Charles Millar 
mill...@verizon.net wrote:

I learned that the hard way when I had one table - four columns, three
simple addition formulas with about 1,000 entries. It seemed an 
eternity

before the addition was completed.

Only out of curiosity I would like to see the TBLFM. And do you see
still the same slowness with 8.3beta?
It has been quite a while and I suspect that my experience may have 
been with org 8.0. I try to find the older files, give them a run and 
let you know.  I will also give org another shot using multiple 
tables, as spreadsheets, in one file. The worst that can happen is 
that I will have to export the tables.


Charlie





Re: [O] Trouble using julia with org-babel

2014-10-31 Thread Doyley, Marvin M.
Hi Ista,

It is now working for Winston, but I am having problems with PyPlot is the case 
for you ?

thanks
M

PS this is the error that I get when trying to load PyPlot

ERROR: could not load module python: dlopen(python.dylib, 9): image not found
 in pyinitialize at /Users/doyley/.julia/v0.3/PyCall/src/PyCall.jl:456
 in pyimport at /Users/doyley/.julia/v0.3/PyCall/src/PyCall.jl:105
 in include at ./boot.jl:245
 in include_from_node1 at ./loading.jl:128
 in reload_path at loading.jl:152
 in _require at loading.jl:67
 in require at loading.jl:51
 in _start at ./client.jl:394
 in _start at /julia/usr/lib/julia/sys.dylib
while loading /Users/doyley/.julia/v0.3/PyPlot/src/PyPlot.jl, in expression 
starting on line 32





On Oct 29, 2014, at 10:53 PM, Ista Zahn istaz...@gmail.com wrote:

 On Wed, Oct 29, 2014 at 10:09 PM, Doyley, Marvin M.
 mdoy...@ur.rochester.edu wrote:
 I am using release-0.3.0 what version are you using. I am also using 
 ob-julia.el
 
 I'm using julia version 0.3.1 with GNU Emacs 24.4.1 and Org-mode
 version 8.2.10. I'm using the ob-julia.el distributed with
 org-plus-contrib.
 
 Best,
 Ista
 
 Cheers,
 M
 
 Sent from my iPad
 
 On Oct 29, 2014, at 9:43 PM, Ista Zahn istaz...@gmail.com wrote:
 
 On Wed, Oct 29, 2014 at 12:35 PM, Doyley, Marvin M.
 mdoy...@ur.rochester.edu wrote:
 
 Hi there,
 
 I have been play  with julia the last couple of weeks and have been having
 some issues when I try to use it in org-babel
 
 More specifically, It get the following error
 
 ERROR: unsupported or misplaced expression using
 in _start at ./client.jl:394
 in _start at /julia/usr/lib/julia/sys.dylib
 
 
 When I execute the following code block
 
 #+begin_src julia
 using Winston
 #+end_src
 
 I get the same thing, though both of these variations work for me:
 
 #+begin_src julia
 using Winston
 1 + 1
 #+end_src
 
 #+RESULTS:
 : 2
 
 #+begin_src julia :results output
 using Winston
 #+end_src
 
 Hope this helps,
 Ista
 
 #+RESULTS:
 
 I should mention, that everything works perfectly in eshell or when I
 execute simple code blocks like
 
 
 #+begin_src julia
 linspace(0,10,5)
 #+end_src
 
 #+RESULTS:
 |   0 |
 | 2.5 |
 |   5 |
 | 7.5 |
 |  10 |
 
 
 Does Any body know how to resolve this issue.
 
 Cheers,
 M




[O] customizing Agenda mode line

2014-10-31 Thread Tyler Smith
Hi,

The major mode name displayed in the mode line for my agenda buffer is
so long that it is pushing other info off the screen. Is there a cleaner
way to customize this than directly editing the definition of
org-agenda-set-mode-name?

Thanks,

Tyler
-- 



Re: [O] Proper settings for tj3 report directory/output?

2014-10-31 Thread Christian Egli
Hi John

John Hendy jw.he...@gmail.com writes:

 I just re-set up tj3 on a new work computer and am a bit puzzled by
 the report directory structure.

 If I use C-e J p instead, I get:
 ~/working_dir/file.org
 ~/working_dir/file.tjp
 ~/working_dir/reports/Overview.html
 ~/working_dir/reports/taskjuggler/{css,examples,icons,scripts}

I cannot reproduce this behaviour. 

 I'm a bit confused by both behaviors. The variables I've defined in .emacs 
 are:

 org-taskjuggler-target-version: 3.5
 org-taskjuggler-default-reports: include reports.tji (custom report
 I've defined)

 As far as I know, these are relevant but left as the default that came with 
 org:
 org-taskjuggler-proces-command: tj3 --silent --no-color --output-dir %o %f
 org-taskjuggler-reports-directory: reports

Your analysis is correct. The pertinent vars are mostly
org-taskjuggler-reports-directory, org-taskjuggler-proces-command and to
some extent org-taskjuggler-target-version. And as you see the exporter
just delegates to tj3 to put the reports in a specific directory by
using --output-dir. This should work.

Thanks
Christian

-- 
Christian Egli
Swiss Library for the Blind, Visually Impaired and Print Disabled
Grubenstrasse 12, CH-8045 Zürich, Switzerland




Re: [O] [PATCH] New version of org-velocity

2014-10-31 Thread Marco Wahl
Paul Rodriguez p...@ruricolist.com writes:

 I'm afraid I don't understand the question. Is there a problem with the
 patch?

AFAICS there is no problem with your patch.

I just wonder about how your patch could be applied to the repository.
Can you do this?


Best regards,  Marco
-- 
http://www.wahlzone.de
GPG: 0x0A3AE6F2



Re: [O] [BUG] No syntax highlighting with setup file

2014-10-31 Thread Kyle Meyer
Nicolas Goaziou m...@nicolasgoaziou.fr wrote:
 This should be fixed. Thank you for reporting it.

Confirmed. Thank you.

-- 
Kyle



Re: [O] Cooperating with oneself using the cloud?

2014-10-31 Thread Paul Rudin
Karl Voit devn...@karl-voit.at writes:

 Hi!

 * Christoph Groth christ...@grothesque.org wrote:
 If at least one of your computers can be reached from all the others via
 ssh, or you can reach all the other computers from one (i.e. there’s a
 star topology), you could use unison to synchronize all kinds of files.
 This works very reliably and handles modifications in both directions.

 I can copy that.

I can't see the original post, but fwiw, I leave loads of stuff on a
Dropbox drive - this can include git repositories, so it's not an
alternative to using e.g. github, but in addition. 

As long as you're the only person modifying stuff there are no problems
(that I've experienced) with working on multiple machines this way.

If you're worried about the security of services like Dropbox (or
interception between your machines and theirs) then you can combine this
with something like ecryptfs. Only the lower (encrypted) data is sent
over the wire to Dropbox. I understand that there are some services that
do this by default - the client itself does the encryption locally using
a key that does not get transmitted - before sending to the
cloud. You're completely *!%$£ if you forget your key, but that's
another story.





[O] Anyone using or interested in an org to Rmarkdown exporter?

2014-10-31 Thread Grant Rettke
Good morning,

Last week I started learning about [RMarkdown]. It is a [literate
programming] tool implemented in, and for, the [ℝ programming
language]. Although I haven't dug in deep yet, I do know that (1) it is
/basically/ [Markdown] and that (2) `org' exports both to [vanilla
markdown] and also [GitHub flavored Markdown] and that (3) a lot of my
peers use `RMarkdown' and not `org'. With that that in mind I got
curious about what it would take to write an `org2rmarkdown' exporter.

The scope of my interest is one-time exports for the most basic and
simple `org' document. As such, right now I have no requirements beyond
thinking about the opportunity. After doing some Internet searches,
there does not seem to be an exporter right now. Questions:

• Does one exist and I missed it?
• Do you have any interest in such an exporter?
• Has anyone else ever thought of doing this? If yes, why didn't you?
• My guess is that doing an exporter that [builds on an existing
  exporter], mentioned above, would be a great start. Thoughts?
  • The big difference seems to be control statements passed to the
interpreter, which may or may not be necessary to convert. If not,
than the *stock* `markdown' exporter would provide everything

Kind regards,


[RMarkdown] http://rmarkdown.rstudio.com/

[literate programming]
https://en.wikipedia.org/wiki/Literate_programming

[ℝ programming language] http://www.r-project.org/

[Markdown] http://daringfireball.net/projects/markdown/syntax

[vanilla markdown] http://orgmode.org/manual/Markdown-export.html

[GitHub flavored Markdown]
http://orgmode.org/cgit.cgi/org-mode.git/plain/contrib/lisp/ox-gfm.el

[builds on an existing exporter]
http://orgmode.org/manual/Adding-export-back_002dends.html

-- 
Grant Rettke
g...@wisdomandwonder.com | http://www.wisdomandwonder.com/
“Wisdom begins in wonder.” --Socrates
((λ (x) (x x)) (λ (x) (x x)))
“Life has become immeasurably better since I have been forced to stop
taking it seriously.” --Thompson



Re: [O] Extremely slow org-table operations

2014-10-31 Thread Nicolas Goaziou
Hello,

Michael Brand michael.ch.br...@gmail.com writes:

 1) The same table calculates fast or slow depending on the position
within the same entry, see OP.

Note that this is due to org-table.el overusing `org-current-line'. It
should be factored out of the library at some point.


Regards,

-- 
Nicolas Goaziou



Re: [O] how to turn off UID-creation for non-exported ical items?

2014-10-31 Thread Nicolas Goaziou
Hello,

Kevin Brubeck Unhammer unham...@fsfe.org writes:

 Before upgrading to Emacs 24.4, I used org-caldav to sync my agenda with
 OwnCloud. This of course requires stable UID's on the exported items, so
 I have

 (setq org-icalendar-store-UID t)

 Items which are not exported don't need UID's, and didn't seem to get
 them before. But after upgrading, suddenly all my org entries get UID's,
 which is very annoying. Is there a way to avoid UID's on non-exported
 items?

No there isn't. Finding (reliably) non-exported items is not easy.

If you find ID everywhere annoying, I suggest to set
`org-icalendar-store-UID' to nil and add ID yourself, piece wise.


Regards,

-- 
Nicolas Goaziou



[O] TTY keys in GUI

2014-10-31 Thread SabreWolfy
I'm having difficulty changing dates/times in timestamps on a MacBook Air,
as the keyboard shortcuts do not work.

I'd like to access the keys described here:

http://orgmode.org/manual/TTY-keys.html

via Emacs launched via the GUI, rather than the console. If I run Emacs with
'-nw', the TTY shortcuts work. If I run Emacs with a GUI (OS X), those
shortcuts don't work.





Re: [O] [BUG] No syntax highlighting with setup file

2014-10-31 Thread Nicolas Goaziou
Hello,

Kyle Meyer k...@kyleam.com writes:

 Starting with commit 61a241f ('Rewrite setup keywords initialization'),
 I find that syntax is not highlighted in buffers that include
 '#+setupfile:'.

This should be fixed. Thank you for reporting it.


Regards,

-- 
Nicolas Goaziou



Re: [O] org-insert-drawer completion targets

2014-10-31 Thread Tyler Smith
On Wed, Oct 29, 2014, at 02:10 PM, Eric Abrahamsen wrote:

 If you've got org-log-into-drawer set to a non-nil value, the drawer
 should be created automatically for you the first time you take a note
 on the heading (org-add-note), or switch TODO states in such a way that
 records a state-change note. Those are the two purposes of the LOGBOOK
 drawer, so you might as well use one or the other to create the drawer.
 

Thanks. I guess I was re-inventing the notes feature without
understanding how the existing setup worked. It makes sense now.

Best,


Tyler



[O] Fwd: Re: Extremely slow org-table operations

2014-10-31 Thread Charles Millar


---BeginMessage---

Hi Michael,

Michael Brand wrote:

Hi Charles

First I would like to point out that to my understanding there are now
two separate issues in discussion in this thread which are easy to mix
up:

1) The same table calculates fast or slow depending on the position
within the same entry, see OP.
I did not understand; I thought that the speed slowed down as the OP 
progressed from table to table in the file.

2) An entry with nothing but a single table, as you describe it:
True; I did not bother to mention other files in which I had multiple 
tables, some with references to other tables in the file. At times M-x 
org-table-iterate-buffer-tables seemed to take eternity, squared. 
(Imagine a smiley face placed here.)

On Thu, Oct 30, 2014 at 12:40 AM, Charles Millar mill...@verizon.net wrote:

I learned that the hard way when I had one table - four columns, three
simple addition formulas with about 1,000 entries. It seemed an eternity
before the addition was completed.

Only out of curiosity I would like to see the TBLFM. And do you see
still the same slowness with 8.3beta?
It has been quite a while and I suspect that my experience may have been 
with org 8.0. I try to find the older files, give them a run and let 
you know.  I will also give org another shot using multiple tables, as 
spreadsheets, in one file. The worst that can happen is that I will have 
to export the tables.


Charlie
---End Message---


Re: [O] make clean-install leaves htmlize.el

2014-10-31 Thread Achim Gratz
Andreas Leha writes:
 recently make clean-install leaves the files htmlize.el[c] left in my
 installation directory while I'd expect them to be removed by
 clean-install.

Stop adding it to the installation in the first place.


Regards,
Achim.
-- 
+[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+

SD adaptation for Waldorf microQ V2.22R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada




Re: [O] Patch org-capure-fill-template

2014-10-31 Thread Nicolas Goaziou
Hello,

Roberto Huelga rhue...@gmail.com writes:

 Patch proposal fro org-capture-fill-template

Thanks for your patch. However, I'd like to know your motivation for it
as I fail to see how it is superior to the current design.


Regards,

-- 
Nicolas Goaziou



[O] [Bug] Hanging multiple TAG lines in setup file

2014-10-31 Thread Kyle Meyer
Hello,

I'm experiencing a second issue that seems to be introduced by commit
61a241f ('Rewrite setup keywords initialization'). Starting Emacs (24.4)
with 'emacs -Q' and with no additional setup besides loading Org, I see
the following behavior.

Opening test-good.org works as usual.

, setup-good.org
| #+TAGS: tag1 tag2
| #+TAGS: tag3 tag4
`
, test-good.org
| #+setupfile: setup-good.org
|
| * heading 1
`

Opening test-bad.org hangs indefinitely.

, setup-bad.org
| #+TAGS: tag1 tag2
| #+TAGS: tag3 tag4
| #+TAGS: tag5 tag6
`
, test-bad.org
| #+setupfile: setup-bad.org
|
| * heading 1
`

--
Kyle



[O] Table columns verbatim export

2014-10-31 Thread Michael Bach
Hi,

I am looking for a way to format table columns to be verbatim for the
(latex) export.  The reason is that in the following table, the numpy
`A[0]` will be interpreted as a footnote without a matching description
and export will fail.

|| matlab| r   | numpy   |
| element access | A(1, 1)   | A[1, 1] | A[0, 0] |
| row access | A(1, 1:2) | A[1, ]  | A[0]|

I had a look into the manual and maybe relatedly found section 3.5.3
Emacs Lisp forms as formulas with string manipulation, e.g. wrapping
== or ~~ around the string, but I am really just concerned with export.

Is there an obvious way I am missing?

Thanks and Best Regards,
Michael




Re: [O] [question/patch] How detailed may org.texi be?

2014-10-31 Thread Skip Collins
Rasmus ras...@gmx.us writes:
 I would like to push the following patch to org.texi on export

As long as you are tweaking the manual, please fix the typesetting of
LaTeX-verbatim-environments in the Variable Index. It should appear as
a simple string, not as a fancy logo. As a point of style, I would
prefer that all index entries stick with TeX and LaTeX rather than
\TeX and \LaTeX.



[O] odt import

2014-10-31 Thread Paul Rudin

The org info file includes the words OpenDocument Text (ODT) export
allows seamless collaboration across organizational boundaries. The
export to odt is great and goes part of the way, but for true seamless
collaboration you really need to be able to go both ways.

Does anyone have a way of converting odt-org and back again? I suppose
there would be some difficulties; but if the source document is well
structured - using styles rather than direct formatting - then one could
keep meta information about the applicable styles in properties in the
org file so that there's some hope of a reasonable round trip.





[O] Org and ledger

2014-10-31 Thread Vikas Rawal
I have started using ledger with Org, and would be interested in knowing 
experiences of other users.

I see two sets of uses in combining Ledger with Org.

1. Record keeping of transactions: Org works with ledger mainly through babel. 
Has anyone considered the possibility of maintaining the records natively in 
Org, which could be exported to ledger? Keeping native ledger source blocks in 
Org does not seem to add much value as far as maintaining books is concerned. 
Some people have tried some basic expense recording in Org, but to my 
knowledge, these solutions do not talk to ledger.

2. Generating reports: Babel results do not use the standard Org table syntax. 
Given my limited knowledge of lisp, I am finding it difficult to programme 
customising these reports in Org. It would be of much benefit if other users 
could share how they customise ledger reports in Org. Some examples would be 
great.

Vikas


[O] orgmode and ledger

2014-10-31 Thread Vikas Rawal
I have started using ledger with Org, and would be interested in knowing 
experiences of other users.

I see two sets of uses n combining Ledger with Org.

1. Record keeping of transactions: Org works with ledger mainly through babel. 
Has anyone considered the possibility of maintaining the records natively in 
Org, which could be exported to ledger? Keeping native ledger source blocks in 
Org does not seem to add much value as far as maintaining books is concerned. 
What has been the experience of other users?

2. Generating reports: Babel results do not use the standard Org table syntax. 
Given my limited knowledge of lisp, I am finding it difficult to programme 
customising these reports in Org. It would be of much benefit if other users 
could share how they customise ledger reports in Org. Some examples would be 
great.

Vikas



 


[O] How to close the feature of auto-jumping to the line beginning when the clean view is opened?

2014-10-31 Thread Y Qu
Hi,

I have set up the clean view. However, when I move through some idented
list items, they just jump to the begining of the line. This feature make
me  unconfortable. Can anyone help me close it?

Best wish


Re: [O] Patch org-capure-fill-template

2014-10-31 Thread Roberto Huelga
Suppose you want to write the parent directory name in your capture so write a
template like

* %(file-name-nondirectory (directory-file-name (file-name-directory \%F\)))

Without the patch, file-name-directory get the useless string %F
instead of a string
with the full path name of the file.

The orgmode manual template expansion page describe

 %(sexp) Evaluate Elisp sexp and replace with the result.
   For convenience, %:keyword (see below) placeholders
   within the expression will be expanded prior to this.
   The sexp must return a string.

But without the patch is not true, first is expanded %(sexp) and after
that the %OneLetter and later the %:keyword

Thanks for your work at the awesome orgmode.


2014-10-30 16:48 GMT+01:00 Nicolas Goaziou m...@nicolasgoaziou.fr:
 Hello,

 Roberto Huelga rhue...@gmail.com writes:

 Patch proposal fro org-capture-fill-template

 Thanks for your patch. However, I'd like to know your motivation for it
 as I fail to see how it is superior to the current design.


 Regards,

 --
 Nicolas Goaziou



Re: [O] [RFC] Change property drawer syntax

2014-10-31 Thread John Hendy
On Fri, Oct 31, 2014 at 8:10 AM, Christian Egli christian.e...@sbs.ch wrote:
 Nicolas Goaziou m...@nicolasgoaziou.fr writes:

 Nicolas Goaziou m...@nicolasgoaziou.fr writes:

 As discussed previously, I would like to modify property drawers syntax.
 The change is simple: they must be located right after a headline and
 its planning line, if any.

 Feedback welcome.

 If there is no more feedback or objection, I will merge the branch on
 Tuesday.

 I see that it is too late now, but let me still note that the
 taskjuggler exporter is quite liberal in what attribute values it allows
 for exporting. I've never used it and I haven't ever seen anyone using
 it, but in theory you could give a task a note or a journalentry which
 spans multiple lines. This will no longer be possible with this change.

 I guess if anyone ever wants to specify notes and journalentries for a
 task and export this to taskjuggler they will have to put it on one
 line.

I use this, or at least things like this. For example:

* task
:PROPERTIES:
:start:2014-11-03-08:00
:task_id:  task_d
:depends: task_a task_b task_c
:duration: 30min
:END:

Not multi-line, but currently I can feed any property that matches a
tj3 attribute (e.g. task_id) and Org will do the right thing. I
haven't followed this thread, but wanted to chime in with my usage in
case it affects the discussion/considerations around this.


John


 Thanks
 Christian
 --
 Christian Egli
 Swiss Library for the Blind, Visually Impaired and Print Disabled
 Grubenstrasse 12, CH-8045 Zürich, Switzerland





Re: [O] Extremely slow org-table operations

2014-10-31 Thread Charles Millar

Hi Michael,

Michael Brand wrote:

Hi Charles

First I would like to point out that to my understanding there are now
two separate issues in discussion in this thread which are easy to mix
up:

1) The same table calculates fast or slow depending on the position
within the same entry, see OP.
I did not understand; I thought that the speed slowed down as the OP 
progressed from table to table in the file.

2) An entry with nothing but a single table, as you describe it:
True; I did not bother to mention other files in which I had multiple 
tables, some with references to other tables in the file. At times M-x 
org-table-iterate-buffer-tables seemed to take eternity, squared. 
(Imagine a smiley face placed here.)

On Thu, Oct 30, 2014 at 12:40 AM, Charles Millar mill...@verizon.net wrote:

I learned that the hard way when I had one table - four columns, three
simple addition formulas with about 1,000 entries. It seemed an eternity
before the addition was completed.

Only out of curiosity I would like to see the TBLFM. And do you see
still the same slowness with 8.3beta?
It has been quite a while and I suspect that my experience may have been 
with org 8.0. I try to find the older files, give them a run and let 
you know.  I will also give org another shot using multiple tables, as 
spreadsheets, in one file. The worst that can happen is that I will have 
to export the tables.


Charlie



Re: [O] [PATCH] org.texi: Remove reference to deleted command

2014-10-31 Thread Nicolas Goaziou
Hello,

Kyle Meyer k...@kyleam.com writes:

 The attached patch removes an entry in the manual for a deleted command,
 org-mark-entry-for-agenda-action.

Applied. Thank you.


Regards,

-- 
Nicolas Goaziou



Re: [O] Extremely slow org-table operations

2014-10-31 Thread York Zhao
@Charlie Millar:

 IIRC Carsten Dominik made the following observation: org tables are
extremely
 slow if they are used as workbooks/spreadsheets and there are many entries
 (many is undefined).

Thanks for the information, could you please clarify what entry means?
Does it
mean org headline, or a row in an org-table?

 I learned that the hard way when I had one table - four columns, three
simple
 addition formulas with about 1,000 entries. It seemed an eternity before
the
 addition was completed.

I guess the entries here mean the table rows right? Please confirm.


York


On Wed, Oct 29, 2014 at 7:40 PM, Charles Millar mill...@verizon.net wrote:

 Hi,


 York Zhao wrote:

 I think Org 8.3 should improve the situation. Please test it if you can.

 I was aware that my emacs -Q test was done against org-mode version
 8.2.x.
 However, I use the latest org-mode from Git everyday. For example, the
 version
 I'm currently using is (from M-x org-version): Org-mode version 8.3beta
 (release_8.3beta-509-g86ec0a.dirty @ /usr/local/share/emacs/site-lisp/org/).
 So
 apparently the problem had never been addressed.

  Meanwhile, I suggest to insert some subsections in your file.

 What do you mean by insert some subsections?


 Thanks


 On Wed, Oct 29, 2014 at 5:43 AM, Nicolas Goaziou m...@nicolasgoaziou.fr
 wrote:

 Hello,

 York Zhao gtdplatf...@gmail.com writes:

  A few months ago I tried Emacs 24.4 and was disappointed because almost
 all of
 the org-table operations became AT LEAST ten times slower. Because
 recently
 Emacs 24.4 gets officially released, I finally switched over. However,
 the
 problems I had several months ago were still there, i.e., in a big file,
 org-table operations are at least ten times slower. I tried profiling
 it but
 didn't help much. So I decided to report the issue here.

 [...]

  In summery, the file test.org has more than 5000 org-table tables,
 each table
 has a formula. If you move the point to the tables not too far away
 from the
 beginning of the buffer and press C-c C-c on the formula line, you
 will notice
 that the speed is very fast which is great. However, if you move the
 point far
 away enough from the beginning of the buffer (move to the end for
 example), you
 will find that C-c C-c on the formula line becomes much slower.

 Many other operations are also very slow. However, because I haven't
 been able
 to create the ECMs for those operations yet, lets focus on this one
 first.

 I think Org 8.3 should improve the situation. Please test it if you can.
 Meanwhile, I suggest to insert some subsections in your file.


 Regards,

 --
 Nicolas Goaziou


  IIRC Carsten Dominik made the following observation: org tables are
 extremely slow if they are used as workbooks/spreadsheets and there are
 many entries (many is undefined). He recommended that a spreadsheet program
 in such situations.

 I learned that the hard way when I had one table - four columns, three
 simple addition formulas with about 1,000 entries. It seemed an eternity
 before the addition was completed.

 Charlie Millar




[O] Beamer Export Columns

2014-10-31 Thread Georgios Marentakis
Hallo, 

I am using the org beamer functionality to produce presentations and I am quite 
happy with it. Saves a lot of time. Thanks for the great work!

There is one thing however I am not sure how to go about. I have found a number 
of answers in the mailing list but none that works for me. 

The question is about (top) aligning columns in beamer export mode. 

The following indeed produces two top aligned columns C1 and C2. 

* Frame
:PROPERTIES:
:BEAMER_env: frame
:END:
* Columns
:PROPERTIES:
:BEAMER_env: columns
:BEAMER_opt: t
:END:
* C1
:PROPERTIES:
:BEAMER_col: 0.45
:BEAMER_env: block
:END:
* C2
:PROPERTIES:
:BEAMER_col: 0.45
:BEAMER_env: block
:END:

My questions:

1. Given that the columns environment is implied by the BEAMER_col property, is 
there anyway to avoid the Columns heading by passing the t option implicitly to 
the columns environment?
Deleting the Columns entry and setting :BEAMER_envargs: C[t] or c[t] or 
C[T] or c[T] in the Frame or the C1/C2 headings is not producing top aligned 
columns for me.

2. What is the status of BEAMER_opt and BEAMER_envargs properties?
Are they both still supported and what exactly is the difference?

Some more general questions: 

3. Why is the heading of a BEAMER_col entry ignored by default? Why does one 
have to specify a block environment in order for the heading to be visible? 

4. In some cases the BEAMER_col property results in subsections instead of 
columns in the tex file, why is this?  


many thanks, 
georgios


Re: [O] OrgStruct: start with collapsed view

2014-10-31 Thread Thorsten Jolitz
Karl Voit devn...@karl-voit.at writes:

 Hi!

 * Thorsten Jolitz tjol...@gmail.com wrote:
 Marcin Borkowski mb...@wmi.amu.edu.pl writes:

 And now there's another problem: I'd like to have my init file
 collapsed to only headlines on opening.  Since I visit my init file
 through a custom command (which finds it and turns on orgstruct), I
 don't need to use file local variables for that - I just need a
 command to do it.  So:

 how do I (programmatically, in elisp) collapse the view of
 an orgstruct .el file?

 Try 'org-overview'. Both, 'org-overview' and 'show-all' work
 with outshine too, so they should work with org-struct.

 I also transformed my 3657 lines of init.el to OrgStruct.

 Similar to Marcin, I want to see a collapsed view of my headings
 when I open my init.el file. org-overview gives me a weird view of
 all lines that start a parenthesis on top level (defun, setq, ...)
 and not my top level OrgStruct comment lines.

 Has somebody successfully managed to get a collapsed init.el view
 when opening the file?

Not a solution, but an alternative (and an interesting experiment):

What if you try navi-mode with your orgstruct init.el? It works with
outshine and with org-mode, so maybe with orgstruct too?

I always have the source file in 'show-all' mode side-by-side with its
*Navi* buffer that give me the overview (and dozens of other views
too). Constantly changing visibility in a file is to much action and
distraction IMO, I rather have a 2nd buffer for the overview.

Let me know if it works, I did not try navi-mode with orgstruct yet.

-- 
cheers,
Thorsten




Re: [O] Org and ledger

2014-10-31 Thread Eric Abrahamsen
Vikas Rawal vikasli...@agrarianresearch.org writes:

 I have started using ledger with Org, and would be interested in knowing 
 experiences of other users.

 I see two sets of uses in combining Ledger with Org.

 1. Record keeping of transactions: Org works with ledger mainly
 through babel. Has anyone considered the possibility of maintaining
 the records natively in Org, which could be exported to ledger?
 Keeping native ledger source blocks in Org does not seem to add much
 value as far as maintaining books is concerned. Some people have tried
 some basic expense recording in Org, but to my knowledge, these
 solutions do not talk to ledger.

I've certainly thought about it :)

I think the ideal solution for me would be org headings with
ledger-specific properties. So you could have date and payee properties
(defaulting to using the heading text and any timestamp present), and
then as many LEDGER_POSTING properties as you like. You could export a
subtree of postings to a real ledger file, and there would be an
export-and-archive command that would permanently retire a set of org
headings as a ledger file.

When keeping track of payments I need to make, or need to receive, the
duplication of data in my org and ledger files has always annoyed me.

I haven't actually done anything about it, though :)

 2. Generating reports: Babel results do not use the standard Org table
 syntax. Given my limited knowledge of lisp, I am finding it difficult
 to programme customising these reports in Org. It would be of much
 benefit if other users could share how they customise ledger reports
 in Org. Some examples would be great.

Can't help here, sorry.




Re: [O] Extremely slow org-table operations

2014-10-31 Thread Charles Millar

Hi York,

York Zhao wrote:

@Charlie Millar:

 IIRC Carsten Dominik made the following observation: org tables are 
extremely
 slow if they are used as workbooks/spreadsheets and there are many 
entries

 (many is undefined).

Thanks for the information, could you please clarify what entry 
means? Does it

mean org headline, or a row in an org-table?

 I learned that the hard way when I had one table - four columns, 
three simple
 addition formulas with about 1,000 entries. It seemed an eternity 
before the

 addition was completed.

I guess the entries here mean the table rows right? Please confirm.

You are correct; I should have said rows. In my file there were 1000 
(+/-) rows and each row had up to three entries, not including the 
description in the first row.
For instance (without any formulas) in the following row I entered each 
amount in columns 2,3  4.


| this was a transaction | 100.00 | 200.00 | 300.00|

So I considered this three entries. So actually there were 3,000 (+/-) 
entries.


Charlie



Re: [O] [PATCH] New version of org-velocity

2014-10-31 Thread Achim Gratz
Marco Wahl writes:
 Is there any reason not bringing your new version into the master
 branch?

I'm not certain about the current maintainer policy w.r.t. backwards
compatibility for older Emacsen, but this patch would work with Emacs 24
only due to its use of lexical binding.


Regards,
Achim.
-- 
+[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+

SD adaptation for Waldorf microQ V2.22R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada




[O] Endless loop in org--setup-collect-keywords (agenda, ...)

2014-10-31 Thread Karl Voit
Hi!

Weird behaviour: yesterday I switched my init.el to OrgStruct and
re-organized it a bit. Silly me thought it would also be a clever
time to update my Org git repo.

At many occasions, my Emacs 24.3.50.1 hangs in an endless loop. When
I break it, I get following Backtrace:

| Debugger entered--Lisp error: (quit)
|   org--setup-collect-keywords(^[   
]*#\\+\\(\\(?:ARCHIVE\\|C\\(?:ATEGORY\\|O\\(?:\\(?:LUMN\\|NSTANT\\)S\\)\\)\\|FILETAGS\\|LINK\\|PR\\(?:IORITIES\\|OPERTY\\)\\|S\\(?:E\\(?:Q_TODO\\|TUPFILE\\)\\|TARTUP\\)\\|T\\(?:AGS\\|\\(?:YP_T\\)?ODO\\)\\)\\):[
  ]*\\(.*\\))
|   org-set-regexps-and-options()
|   org-mode()
|   set-auto-mode-0(org-mode nil)
|   #[0 \302\242\237\211\205.
| [...]

(Sorry for the long line)

Do you have a clue if my update or my re-arrangement of my init.el
could have caused this?

Should I check something else?

Thank you very much for your help!




Re: [O] Endless loop in org--setup-collect-keywords (agenda, ...)

2014-10-31 Thread Kyle Meyer
Hello,

Karl Voit devn...@karl-voit.at wrote:
[...]
 Do you have a clue if my update or my re-arrangement of my init.el
 could have caused this?

I'd guess this is related to commit 61a241f (because that is the commit
that introduced org--setup-collect-keywords and because I'm seeing
hanging that may be related [1]). You could checkout the commit before
(0b74864) and see if you still get the issue.

[1] http://article.gmane.org/gmane.emacs.orgmode/92245

-- 
Kyle



Re: [O] Table columns verbatim export

2014-10-31 Thread Nick Dokos
Michael Bach pha...@gmail.com writes:

 Hi,

 I am looking for a way to format table columns to be verbatim for the
 (latex) export.  The reason is that in the following table, the numpy
 `A[0]` will be interpreted as a footnote without a matching description
 and export will fail.

 || matlab| r   | numpy   |
 | element access | A(1, 1)   | A[1, 1] | A[0, 0] |
 | row access | A(1, 1:2) | A[1, ]  | @@latex: A[0]@@|

is one way - there are probably others.

Nick





Re: [O] math in parentheses

2014-10-31 Thread Eric S Fraga
On Wednesday, 29 Oct 2014 at 13:24, Rasmus wrote:

[...]

 Just out of curiosity, do you actually type \(·\) or have you somehow
 remapped $·$ to insert \(·\)?

I have been using the following for quite some time:  

#+begin_src emacs-lisp
  ;; from Nicolas Richard theonewiththeevill...@yahoo.fr
  ;; Date: Fri, 8 Mar 2013 16:23:02 +0100
  ;; Message-ID: 87vc913oh5@yahoo.fr
  (defun yf/org-electric-dollar nil
  When called once, insert \\(\\) and leave point in between.
  When called twice, replace the previously inserted \\(\\) by one $.
(interactive)
(if (and (looking-at )) (looking-back ())
(progn (delete-char 2)
   (delete-char -2)
   (insert $))
  (insert \\(\\))
  (backward-char 2)))
  (define-key org-mode-map (kbd $) 'yf/org-electric-dollar)
#+end_src

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.3.1, Org release_8.3beta-372-gdd70cf



[O] Recent startup error in Org

2014-10-31 Thread Mike McLean
Hello

I updated to git-head today; my most recent update was about 1 week prior.
Today I get a startup error in Emacs (Back trace of debug-init below).

Emacs Version: GNU Emacs 24.4.1 (x86_64-apple-darwin13.4.0, NS
apple-appkit-1265.21) of 2014-10-21 on mac-mike-2013

Org Version: Org-mode version 8.3beta (release_8.3beta-513-gaa1fd6.dirty @
/Users/mlm/.emacs.d/el-get/org-mode/lisp/)

Debugger entered--Lisp error: (error Symbol nil may not be buffer-local)
  make-local-variable(nil)
  org-set-regexps-and-options()
  org-mode()
  set-auto-mode-0(org-mode nil)
  set-auto-mode()
  normal-mode(t)
  after-find-file(nil t)
  find-file-noselect-1(#buffer break-tracking.org
~/Documents/OrgMaster/org/break-tracking.org nil nil
~/Documents/OrgMaster/org/break-tracking.org (259606255 16777220))
  find-file-noselect(/Users/mlm/Documents/OrgMaster/org/break-tracking.org
)
  #[(f) \301\302 \\210\303 !\207 [f message Opening Org mode file: %s
find-file-noselect] 3](/Users/mlm/Documents/OrgMaster/org/
break-tracking.org)
  mapc(#[(f) \301\302 \\210\303 !\207 [f message Opening Org mode file:
%s find-file-noselect] 3]
(/Users/mlm/Documents/OrgMaster/financial-notes/Financial-Notes.org
/Users/mlm/Documents/OrgMaster/Library-eReader-Device-Support/Library-eReader-Device-Recommendation.org
/Users/mlm/Documents/OrgMaster/Life_Planning/Life_Plan.org
/Users/mlm/Documents/OrgMaster/MaaS360/MaaS360-for-Mobile-Development.org
/Users/mlm/Documents/OrgMaster/MaaS360/MaaS360.org
/Users/mlm/Documents/OrgMaster/Macintosh-Vision-Goals-Strategy/Macintosh-Vision-Goals-Strategy.org
/Users/mlm/Documents/OrgMaster/Mobile-Vision-Goals-Strategy/Mobile-Vision-Goals-Strategy.org
/Users/mlm/Documents/OrgMaster/org/Agile_Results.org
/Users/mlm/Documents/OrgMaster/org/BCBSFL/BCBSFL-Journal.org
/Users/mlm/Documents/OrgMaster/org/BCBSFL/Bulletproof_Configuration_Security_Vulnerability_Remediation.org
/Users/mlm/Documents/OrgMaster/org/BCBSFL/Caretaker_of_Sustainable_Macintosh_Ecosystem.org
/Users/mlm/Documents/OrgMaster/org/BCBSFL/Florida-Blue-Administrative-Overhead.org
/Users/mlm/Documents/OrgMaster/org/BCBSFL/Macintosh_Strategic_Planner_Extraordinaire.org
/Users/mlm/Documents/OrgMaster/org/BCBSFL/Master_of_Mobile_Device_Strategy_and_Support.org
/Users/mlm/Documents/OrgMaster/org/BCBSFL/Provider_of_Superior_Macintosh_Support.org
/Users/mlm/Documents/OrgMaster/org/BCBSFL/Rocket_Propelled_Career.org
/Users/mlm/Documents/OrgMaster/org/BCBSFL/SLT-ipad-tracking.org
/Users/mlm/Documents/OrgMaster/org/break-tracking.org
/Users/mlm/Documents/OrgMaster/org/Commute.org
/Users/mlm/Documents/OrgMaster/org/Effective-and-Efficient.org
/Users/mlm/Documents/OrgMaster/org/from-mobile.org
/Users/mlm/Documents/OrgMaster/org/Health-Fitness-Vitality.org
/Users/mlm/Documents/OrgMaster/org/Home-Technology.org
/Users/mlm/Documents/OrgMaster/org/Journal.org
/Users/mlm/Documents/OrgMaster/org/Julie.org
/Users/mlm/Documents/OrgMaster/org/Learn-Everything.org
/Users/mlm/Documents/OrgMaster/org/Montu.org
/Users/mlm/Documents/OrgMaster/org/Outstanding-Marriage.org
/Users/mlm/Documents/OrgMaster/org/PamperedChef.org
/Users/mlm/Documents/OrgMaster/org/Personal-Administrative-Overhead.org
/Users/mlm/Documents/OrgMaster/org/refile.org
/Users/mlm/Documents/OrgMaster/org/Toastmasters.org
/Users/mlm/Documents/OrgMaster/Periodic-Reporting/background.org
/Users/mlm/Documents/OrgMaster/Periodic-Reporting/Periodic-Report.org
/Users/mlm/Documents/OrgMaster/Twinleaf_HOA/Twinleaf-Administrative-Overhead.org
/Users/mlm/Documents/OrgMaster/Twinleaf_HOA/Twinleaf-Journal.org
/Users/mlm/Documents/OrgMaster/Twinleaf_HOA/Twinleaf-Operations.org
~/.init/emacs/emacs-init.org ~/.init/emacs/org-init.org))
  byte-code(\302\303\304\\210\305 \306\307 \\207 [org-feed-alist
org-agenda-files add-to-list org-export-filter-final-output-functions
mlm-latex-add-bibliography nil mapc #[(f) \301\302 \\210\303 !\207 [f
message Opening Org mode file: %s find-file-noselect] 3]] 3)
  load(/Users/mlm/.init/emacs/package-init/init-org-mode noerror)
  el-get-load-package-user-init-file(org-mode)
  eval((el-get-load-package-user-init-file (quote org-mode)))
  byte-code(\306 \307 \n\ \310 ! \311\312 \313\! \312 \314\ 7\311\312
\315\! 8\311\316 !! 9\317 \320 :# ;\312 \321\ \312 \322\ =\312 \323\
\312 \324\ ?\312 \325\ @\326 ! A\327
!\210\f\330=\204\272\f\331\235\204\211 9\332 B\211 C\203\203 C@ B\333 \334
B#\210 CA\211 C\204n*\335 \336\\210 D\203\222\337 !\210 7\340=\204\272\311
7!\332 E\211 C\203\271 C@ E\341 E!\210 CA\211 C\204\246*\342 \343 #\210\342
=\344 #\210 ;\2048
\332 E\211 C\203 C@ E A EP F\345 F!\204\360\346\347 F\\210\350\351
F\\210\341 F!\210) CA\211 C\204\327*\f\352=\2048 8\332 G\211 C\2037 C@
G\353 G! H\350\354 H\\210\355 H!\210) CA\211 C\204 * ;\203A \356\202B \342
;\203N \357\360 \\202O \361 I\211 J \362 #\210 I\363\364 DD!\210 J
?\365 #\210*\366\301!\203z
\353 ! KB K. \332\207 [el-get-sources package package-status-alist source
method loads el-get-package-status-recipes
el-get-read-package-status-recipe 

Re: [O] OrgStruct: start with collapsed view

2014-10-31 Thread Scott Randby

On 10/30/2014 08:41 AM, Thorsten Jolitz wrote:

Karl Voit devn...@karl-voit.at writes:


Hi!

* Thorsten Jolitz tjol...@gmail.com wrote:

Marcin Borkowski mb...@wmi.amu.edu.pl writes:


And now there's another problem: I'd like to have my init file
collapsed to only headlines on opening.  Since I visit my init file
through a custom command (which finds it and turns on orgstruct), I
don't need to use file local variables for that - I just need a
command to do it.  So:

how do I (programmatically, in elisp) collapse the view of
an orgstruct .el file?


Try 'org-overview'. Both, 'org-overview' and 'show-all' work
with outshine too, so they should work with org-struct.


I also transformed my 3657 lines of init.el to OrgStruct.

Similar to Marcin, I want to see a collapsed view of my headings
when I open my init.el file. org-overview gives me a weird view of
all lines that start a parenthesis on top level (defun, setq, ...)
and not my top level OrgStruct comment lines.

Has somebody successfully managed to get a collapsed init.el view
when opening the file?


Not a solution, but an alternative (and an interesting experiment):

What if you try navi-mode with your orgstruct init.el? It works with
outshine and with org-mode, so maybe with orgstruct too?


I found this on http://orgmode.org/worg/org-tutorials/org-outside-org.html.

  orgstruct currently does NOT work with outorg and navi-mode...

Scott Randby



I always have the source file in 'show-all' mode side-by-side with its
*Navi* buffer that give me the overview (and dozens of other views
too). Constantly changing visibility in a file is to much action and
distraction IMO, I rather have a 2nd buffer for the overview.

Let me know if it works, I did not try navi-mode with orgstruct yet.





[O] How do you interact with org src blocks for your gmane.emacs.orgmode correspondence?

2014-10-31 Thread Brady Trainor

When reading articles /from/ gmane.emacs.orgmode /in/ Gnus, I've observed that 
source blocks such as 

#+BEGIN_SRC emacs-lisp
(if this
(then that))
#+END_SRC

and 

#+BEGIN_SRC org
,* TODO some headlines and:atag:
SCHEDULED: 2014-10-29 Wed
- [ ] some other org-mode stuff
#+END_SRC

do receive syntax highlighting. But to take advantage of this and to write 
articles in this way my workflow is very awkward. Here is my present workflow, 
and I hope there is some simple or complex solution where others have a better 
workflow they can share: 

1. Cut some pieces from my .el or .org files, 
2. Paste into the scratch buffer,
3. Convert scratch buffer to Major mode org, 
4. Add src blocks using org-mode shortcuts (s TAB org or selisp SPC),
5. Edit as needed for email, for instance taking advantage of indenting etc. in 
C-c ' mode
6. Cut and paste from scratch buffer to email draft
7. Edit email
8. If extensive editing of src blocks is needed while drafting, may consider 
switching back to scratch buffer including further cutting and pasting

This seems wholly inefficient, and I'm hoping there is some obviously easier 
way to do it, no matter how much elisp is needed. 

I am not sure it is relevant, but my rather vanilla Gnus setup includes 
drafting mail in Message buffer. I didn't quickly find how to switch to 
drafting with Gnus, so I make the cursory assumption that this is not the trick 
to at least seeing highlighting of src blocks while drafting emails. 

--
Brady




[O] What does org-html--build-pre/postamble do?

2014-10-31 Thread Marcin Borkowski
Hi all,

I've started to write a derived backend based on the HTML one.  Since I
want my HTML file to be rather minimalist, I exclude as much as
possible.  While looking at org-html-template, I noticed the
(org-html--build-pre/postamble 'preamble info)
line.  I'm wondering, what does it do?  Including it in my backend does
not influence the result (admittedly, the Org file I'm testing it on is
quite simple for now).  I instrumented org-html--build-pre/postamble for
edebug, but it didn't help me a lot.

What is this for?  I guess it inserts whatever is in
org-html-preamble-format for the current language; anything else?  In
particular: most of this function deals with the case when
(plist-get info :html-preamble)
is non-nil.  When is it possible?

TIA,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University



Re: [O] Proper settings for tj3 report directory/output?

2014-10-31 Thread John Hendy
On Fri, Oct 31, 2014 at 8:36 AM, Christian Egli christian.e...@sbs.ch wrote:
 Hi John

 John Hendy jw.he...@gmail.com writes:

 I just re-set up tj3 on a new work computer and am a bit puzzled by
 the report directory structure.

 If I use C-e J p instead, I get:
 ~/working_dir/file.org
 ~/working_dir/file.tjp
 ~/working_dir/reports/Overview.html
 ~/working_dir/reports/taskjuggler/{css,examples,icons,scripts}

 I cannot reproduce this behaviour.

Sorry... should have done this in the first place. Here's my exact
setup with a test case:

#+begin_src tj3 version
  $ tj3 --version
  TaskJuggler v3.5.0 - A Project Management Software
#+end_src


Config used with =emacs -Q=, followed by =M-x load file ~/path/to/min-config=:

#+begin_src min-config
  (add-to-list 'load-path ~/.elisp/org.git/contrib/lisp/)
  (require 'ox-taskjuggler)
#+end_src


Simple org tj file:

#+begin_src tj-test.org

* Project :taskjuggler_project:
** task1
   :PROPERTIES:
   :task_id:  task1
   :start:2014-11-01
   :duration: 10d
   :END:
** task2
   :PROPERTIES:
   :task_id:  task2
   :depends:  task1
   :duration: 10d
   :END:

#+end_src

When I export that (living in ~/Desktop) with =C-e J j= and then run
=tj3 ./tj-test.tjp=, I get:

~/Desktop/tj-test.org
~/Desktop/tj-test.tjp
~/Desktop/Plan.html
~/Desktop/taskjuggler/{css,examples,icons,scripts}


Delete everything but tj-test.org, and re-export with =C-e J p=, and I get:

~/Desktop/tj-test.org
~/Desktop/tj-test.tjp
~/Desktop/reports/Plan.html
~/Desktop/reports/taskjuggler/{css,examples,icons,scripts}

Plan.html doesn't pick up the css or scripts as-is with either method.
Once placed inside ~/Deskopt[/reports]/taskjuggler, it works. I
attached screenshot showing the file path for both in the browser.

 I'm a bit confused by both behaviors. The variables I've defined in .emacs 
 are:

 org-taskjuggler-target-version: 3.5
 org-taskjuggler-default-reports: include reports.tji (custom report
 I've defined)

 As far as I know, these are relevant but left as the default that came with 
 org:
 org-taskjuggler-proces-command: tj3 --silent --no-color --output-dir %o %f
 org-taskjuggler-reports-directory: reports

 Your analysis is correct. The pertinent vars are mostly
 org-taskjuggler-reports-directory, org-taskjuggler-proces-command and to
 some extent org-taskjuggler-target-version. And as you see the exporter
 just delegates to tj3 to put the reports in a specific directory by
 using --output-dir. This should work.

After going through all that, I'm pretty sure this is a tj3 or setup
issue. I futzed with --output-dir, but the report and the taskjuggler
directory are always the same relatively to one another (so
--output-dir reports yields reports/Plan.html, and
reports/taskjuggler). If you say --output-dir reports/taskjuggler,
you'll just get another layer which happens to work since the previous
taskjuggler dir is still there.

I filed an inquiry/issue on github to see what Chris has to say:
- https://github.com/taskjuggler/TaskJuggler/issues/154


John


 Thanks
 Christian

 --
 Christian Egli
 Swiss Library for the Blind, Visually Impaired and Print Disabled
 Grubenstrasse 12, CH-8045 Zürich, Switzerland





Re: [O] Proper settings for tj3 report directory/output?

2014-10-31 Thread John Hendy
On Fri, Oct 31, 2014 at 8:10 PM, John Hendy jw.he...@gmail.com wrote:
 On Fri, Oct 31, 2014 at 8:36 AM, Christian Egli christian.e...@sbs.ch wrote:
 Hi John

 John Hendy jw.he...@gmail.com writes:

[snip]

 Plan.html doesn't pick up the css or scripts as-is with either method.
 Once placed inside ~/Deskopt[/reports]/taskjuggler, it works. I
 attached screenshot showing the file path for both in the browser.

Yeah, let's go ahead and forget the attachments while we're at it ;)

John


Re: [O] How do you interact with org src blocks for your gmane.emacs.orgmode correspondence?

2014-10-31 Thread Brady Trainor

Brady Trainor algeb...@uw.edu writes:

 ... Here is my
 present workflow, and I hope there is some simple or complex solution
 where others have a better workflow they can share:

 1. Cut some pieces from my .el or .org files, 
 2. Paste into the scratch buffer,
 3. Convert scratch buffer to Major mode org, 
 4. Add src blocks using org-mode shortcuts (s TAB org or selisp SPC),
 5. Edit as needed for email, for instance taking advantage of indenting etc. 
 in C-c ' mode
 6. Cut and paste from scratch buffer to email draft
 7. Edit email
 8. If extensive editing of src blocks is needed while drafting, may
 consider switching back to scratch buffer including further cutting
 and pasting
 ...

I think I have found a rather peculiar solution (to my lengthy workflow). 

A normal solution:
  Based off a simple solution, of simply changing the mode of the email-draft 
(message) buffer to org-mode. Than C-c ' to edit in another mode, C-c ' to 
return, and M-x message-mode RET to view the normal message-mode hightlighting 
of headers and quoted messages. 

Strangish solution:
  C-x 4 c to clone the buffer, then switch to org-mode. But strangely, the 
syntax highlighting of message-mode is preserved! Simultaneously I get both 
modes' syntax highlighting, and s TAB and C-c ' work!

(Heh heh, C-c C-c did not work... but M-x message-send-and-exit RET does!) 

--
Brady