Re: [O] Function to return content of item

2017-05-07 Thread John Kitchin
I don't know of a function. Something like this may be what you want. not all elements have :contents-begin though (let ((el (org-element-context))) (buffer-substring-no-properties (org-element-property :contents-begin el) (org-element-property :contents-end el))) It also a little tricky to

[O] Function to return content of item

2017-05-07 Thread Richard Parsons
Hi there Is there a function that will give me the content of the current item? I mean simply the text of the whole item without its heading or properties drawer. It seems to me likely that such a function would exist, but I haven't been able to find it in the documentation. Many thanks Richard

[O] Bug: org-babel-expand-src-block expands sh blocks independent of shell defined by src block [9.0.5 (9.0.5-elpaplus @ ~/.emacs.d/elpa/org-plus-contrib-20170210/)]

2017-05-07 Thread Derek Feichtinger
Hi When using =org-babel-expand-src-block= with a shell src block one always gets the same code expansion (in my case bash) independent of the shell that is used while the execution of the shell block uses the correct expansion. I define the following table to illustrate the problem:

Re: [O] About org-sort -> org-sort-list with custom sort function

2017-05-07 Thread Kyle Meyer
Kyle Meyer writes: > Nicolas Goaziou writes: > >> Kyle Meyer writes: >> >>> I'm a bit confused about why org-call-with-arg is necessary because I >>> think call-interactively already propagates the current prefix argument, >>> but

Re: [O] Bug: Properties do not show up in clock table [9.0.6 (9.0.6-elpa @ /home/nick/.emacs.d/elpa/org-20170502/)]

2017-05-07 Thread Nick Guiffrida
Thank you Nicholas, when I get a chance I'll try that. On May 7, 2017 3:01 AM, "Nicolas Goaziou" wrote: > Hello, > > Nick Guiffrida writes: > > > Below is content which that can be used to reproduce my problem: > > > > * Job1 > >> :PROPERTIES: >

Re: [O] Bug: Infinite loop using macros [9.0.3 (9.0.3-dist @ /usr/share/emacs24/site-lisp/org-mode/)]

2017-05-07 Thread Nicolas Goaziou
Hello, Bruno BEAUFILS writes: > This simple file makes Emacs loops and freeze when trying to export it. > > #+MACRO: test {{{test}}} > {{{test}}} This was fixed some time ago. Exporting this document should raise an error. You may want to update Org. Regards, -- Nicolas

[O] [PATCH] small bug in Babel GnuPlot on % character

2017-05-07 Thread Thierry Banel
Here is a patch for a small bug in Babel GnuPlot. When GnuPlot outputs a message containing a % character, Emacs mis-interprets it. This happens when using commands such as print or fit. Example showing the bug: #+BEGIN_SRC gnuplot :file x.svg :session none print "hello %s\n" plot x #+END_SRC

Re: [O] About org-sort -> org-sort-list with custom sort function

2017-05-07 Thread Kyle Meyer
Nicolas Goaziou writes: > Kyle Meyer writes: > >> I'm a bit confused about why org-call-with-arg is necessary because I >> think call-interactively already propagates the current prefix argument, >> but perhaps I'm missing some subtlety here. Either way

[O] Bug: Infinite loop using macros [9.0.3 (9.0.3-dist @ /usr/share/emacs24/site-lisp/org-mode/)]

2017-05-07 Thread Bruno BEAUFILS
Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list.

Re: [O] More clocktable breakage

2017-05-07 Thread Achim Gratz
Nicolas Goaziou writes: > OK. I inserted it in a fresh Org buffer. Is there any command to call on > it now? Yes, put the cursor on the date or time of one of the timestamps and press S-Up or S-Down. It should increase or decrease the corresponding element of the timestamp, but instead you'll

Re: [O] 9.0.6 and clock tables

2017-05-07 Thread Nicolas Goaziou
Hello, Eric S Fraga writes: > Just a quick note: I upgraded to v9.0.6 and my clock table reports no > longer show %age time spend on each activity. I've not had a chance to > debug this yet but clock tables generated earlier today had percentages > where I wanted them. > >

Re: [O] More clocktable breakage

2017-05-07 Thread Nicolas Goaziou
Hello, Achim Gratz writes: > I've told you from the beginning that it was a file at work and that it > would take some time to dig down to the problem since it did work at > home when I tried to create said ECM. I know, but I was hoping a few weeks would be enough, since the

Re: [O] [PATCH] ORG-NEWS: Update new features

2017-05-07 Thread Nicolas Goaziou
Hello, Kyle Meyer writes: > Sebastian Reuße writes: > >> --- >> etc/ORG-NEWS | 5 + >> 1 file changed, 5 insertions(+) > > Thanks. Applied. BTW, would you mind adding some tests about it in "test-org.el"? Or, at least, provide some simple test cases we

Re: [O] Bug: Properties do not show up in clock table [9.0.6 (9.0.6-elpa @ /home/nick/.emacs.d/elpa/org-20170502/)]

2017-05-07 Thread Nicolas Goaziou
Hello, Nick Guiffrida writes: > Below is content which that can be used to reproduce my problem: > > * Job1 >> :PROPERTIES: >> :job-number: 123457 >> :END: >> :LOGBOOK: >> CLOCK: [2017-05-06 Sat 18:59]--[2017-05-06 Sat 19:30] => 0:31 >> :END: >> #+BEGIN: clocktable

Re: [O] About org-sort -> org-sort-list with custom sort function

2017-05-07 Thread Nicolas Goaziou
Hello, Kyle Meyer writes: > I'm a bit confused about why org-call-with-arg is necessary because I > think call-interactively already propagates the current prefix argument, > but perhaps I'm missing some subtlety here. Either way ... I thought the same. I think we can replace