Re: [O] A small patch for org.el to fix error in clojure babel src block code ref

2017-05-08 Thread Nicolas Goaziou
Hello, "numbch...@gmail.com" writes: > Here is the original discussion we disscusses. > https://github.com/jkitchin/org-ref/issues/433 > > And Here is the patch: > > #+BEGIN_SRC diff > modified lisp/org.el > @@ -9730,7 +9730,7 @@ active region." > (setq sfuns > (delq > nil (mapc

Re: [O] Bug: Bulk reschedule with reschedule logging on fails

2017-05-08 Thread Allen Li
Hello, I'm replying to a very old thread about a bug. Hopefully I haven't munged the headers. Following is a summary of the thread. Allen Li writes: > When bulk rescheduling TODO items with org-log-reschedule set to > 'note, only the first marked item will get rescheduled. I have > reproduce

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

2017-05-08 Thread Kyle Meyer
Kyle Meyer writes: > Nicolas Goaziou writes: > >> The we may not need `call-interactively' at all. >> >> WDYT? > > Yeah, I agree that there's no need for call-interactively here because > the interactive forms of org-table-sort-lines, org-sort-list, > org-sort-entries are covered by org-sort's.

[O] A small patch for org.el to fix error in clojure babel src block code ref

2017-05-08 Thread numbch...@gmail.com
Here is the original discussion we disscusses. https://github.com/jkitchin/org-ref/issues/433 And Here is the patch: #+BEGIN_SRC diff modified lisp/org.el @@ -9730,7 +9730,7 @@ active region." (setq sfuns (delq nil (mapcar (lambda (f) - (let (fs) (if (funcall f) (push f fs +

Re: [O] Function to return content of item

2017-05-08 Thread Richard Parsons
That is very kind of you - many thanks indeed for your assistance. On Mon, May 8, 2017 at 4:05 PM, John Kitchin wrote: > I think this is basically what you are looking for. > > (defun org-heading-content () > (interactive) > (let (bp ep) > (setq bp (save-excursion >(or (

Re: [O] [RFC] The "c" Org macro

2017-05-08 Thread Nicolas Goaziou
Hello, Eric S Fraga writes: > On Monday, 8 May 2017 at 15:32, Dushyant Juneja wrote: >> A very useful macro indeed! >> >> One suggestion: can this also be made to support nested headings. For >> instance: >> * Part {{{c}}} >> ** Part {{{c}}}.{{{c}}} >> * Part {{{c}}} > > I think this is what s

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

2017-05-08 Thread Nicolas Goaziou
Kyle Meyer writes: > Nicolas Goaziou writes: > >> I think the patch can also go into maint branch, since this is a fix. > > It's more of a cosmetic change, no? (The one "fix" would be that > org-sort documents WITH-CASE as optional even though it was actually a > required argument.) You're rig

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

2017-05-08 Thread Kyle Meyer
Nicolas Goaziou writes: > I think the patch can also go into maint branch, since this is a fix. It's more of a cosmetic change, no? (The one "fix" would be that org-sort documents WITH-CASE as optional even though it was actually a required argument.) Anyway, I'll cherry pick it over the next

Re: [O] [RFC] The "c" Org macro

2017-05-08 Thread Robert Horn
Eric S Fraga writes: > On Monday, 8 May 2017 at 11:26, Nicolas Goaziou wrote: >> Hello, >> >> I would like to scratch a long-standing itch and introduce the "c" >> macro, which is basically a way to handle multiple counters in an Org >> document. So, the following document > > This sounds like a

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

2017-05-08 Thread Nicolas Goaziou
Hello, Kyle Meyer writes: > Yeah, I agree that there's no need for call-interactively here because > the interactive forms of org-table-sort-lines, org-sort-list, > org-sort-entries are covered by org-sort's. > > Switched call-interactively to funcall in c1addc825. Thank you. I think the patc

Re: [O] [RFC] The "c" Org macro

2017-05-08 Thread Eric S Fraga
On Monday, 8 May 2017 at 15:32, Dushyant Juneja wrote: > A very useful macro indeed! > > One suggestion: can this also be made to support nested headings. For > instance: > * Part {{{c}}} > ** Part {{{c}}}.{{{c}}} > * Part {{{c}}} I think this is what separate counters will enable but also motiv

Re: [O] [RFC] The "c" Org macro

2017-05-08 Thread Dushyant Juneja
A very useful macro indeed! One suggestion: can this also be made to support nested headings. For instance: * Part {{{c}}} ** Part {{{c}}}.{{{c}}} * Part {{{c}}} should export to: * Part 1 ** Part 1.1 * Part 2 I reckon this will be very useful when a paragraphs need to be broken into several su

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

2017-05-08 Thread Kyle Meyer
Nicolas Goaziou writes: > The we may not need `call-interactively' at all. > > WDYT? Yeah, I agree that there's no need for call-interactively here because the interactive forms of org-table-sort-lines, org-sort-list, org-sort-entries are covered by org-sort's. Switched call-interactively to f

Re: [O] Function to return content of item

2017-05-08 Thread John Kitchin
I think this is basically what you are looking for. (defun org-heading-content () (interactive) (let (bp ep) (setq bp (save-excursion (or (and (outline-previous-heading) (progn (org-end-of-meta-data) (point)))

Re: [O] [RFC] The "c" Org macro

2017-05-08 Thread Eric S Fraga
On Monday, 8 May 2017 at 11:26, Nicolas Goaziou wrote: > Hello, > > I would like to scratch a long-standing itch and introduce the "c" > macro, which is basically a way to handle multiple counters in an Org > document. So, the following document This sounds like a very useful macro to have. Some

[O] [RFC] The "c" Org macro

2017-05-08 Thread Nicolas Goaziou
Hello, I would like to scratch a long-standing itch and introduce the "c" macro, which is basically a way to handle multiple counters in an Org document. So, the following document * Part {{{c}}} * Part {{{c}}} * Part {{{c(other)}}} * Part {{{c}}} * Part {{{c(other)}}} is expanded as

Re: [O] change in babel argument processing?

2017-05-08 Thread Eric S Fraga
On Monday, 8 May 2017 at 09:27, Nicolas Goaziou wrote: > It is an unexpected consequence of > 500abcd7fbe24abc887300faec2058905a13fa33 in which I lazily use `read' to > parse string values. > > I fixed it in maint, could you confirm it? Yes, works fine now (in master which I assume includes updat

Re: [O] Invalid read syntax: "?" when switching org-dates or when tying to org-submit-bug-report

2017-05-08 Thread michael . ziems
Hello Nicolas, that worked perfectly. I had a strange character in that file and now it works good. Thanks, Michael Am 2017-05-08 11:52, schrieb Nicolas Goaziou: > michael.zi...@xiron.de writes: > >> When i byte-compile the file i get the following error: >> >> Compiling file >> c:/Use

Re: [O] 9.0.6 and clock tables

2017-05-08 Thread Roland Everaert
I just see this. Since this morning my clocktable doesn't fill a column related to a property, any known issue and workaround/fix for this? Regards, On Mon, May 8, 2017 at 10:37 AM, Eric S Fraga wrote: > On Sunday, 7 May 2017 at 10:16, Nicolas Goaziou wrote: > > Would you happen to have any

Re: [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-08 Thread Nicolas Goaziou
Hello, Derek Feichtinger writes: > 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 followi

Re: [O] Invalid read syntax: "?" when switching org-dates or when tying to org-submit-bug-report

2017-05-08 Thread Nicolas Goaziou
michael.zi...@xiron.de writes: > When i byte-compile the file i get the following error: > > Compiling file > c:/Users/sane/AppData/Roaming/.emacs.d/elpa/org-20170502/org-clock.el at > Mon May 8 11:27:30 2017 > org-clock.el:1949:1:Error: Invalid read syntax: "?" It looks odd. Could you double-c

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

2017-05-08 Thread Nicolas Goaziou
Hello, Kyle Meyer writes: > * the byte-compiler doesn't warn about WITH-CASE being unused. (I > think marking it with an underscore would be confusing because it is > "used".) WITH-CASE should be optional. It conforms to (interactive "P") expectations. > * WITH-CASE isn't ignored w

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

2017-05-08 Thread Nicolas Goaziou
Hello, Thierry Banel writes: > 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

Re: [O] Invalid read syntax: "?" when switching org-dates or when tying to org-submit-bug-report

2017-05-08 Thread michael . ziems
Hello Nicolas, thanks for the answer. I'm not a big expert on lisp. As i did not find any information how a .patch file works so fast, i just changed it manually in the org-clock.el like this: (defun org-clock-put-overlay (time) "Put an overlays on the current line, displaying TIME. This cr

Re: [O] change in babel argument processing?

2017-05-08 Thread Nicolas Goaziou
Hello, Eric S Fraga writes: > Some of my ledger babel calls have stopped working. I have tracked it > down to a change in how backslashes are treated. Formerly, I had > "...\n..." which was interpreted correctly but now require to escape the > backslash "...\\n...", as in the attached example.

Re: [O] Invalid read syntax: "?" when switching org-dates or when tying to org-submit-bug-report

2017-05-08 Thread Nicolas Goaziou
Hello, michael.zi...@xiron.de writes: > when i try to swicht an active timestamp via org-shitright or when i > fire M-x org-submit-bug-report i get the following error: > > Debugger entered--Lisp error: (invalid-read-syntax "?") > eval-buffer(# nil > "c:/Users/sane/AppData/Roaming/.emacs.d/elp

[O] change in babel argument processing?

2017-05-08 Thread Eric S Fraga
Hello all, Some of my ledger babel calls have stopped working. I have tracked it down to a change in how backslashes are treated. Formerly, I had "...\n..." which was interpreted correctly but now require to escape the backslash "...\\n...", as in the attached example. I'm posting this as much

Re: [O] 9.0.6 and clock tables

2017-05-08 Thread Eric S Fraga
On Sunday, 7 May 2017 at 10:16, Nicolas Goaziou wrote: > Would you happen to have any news on it? Had no time but ... > BTW, you may need to remove any TBLFM: entry related to % since this is > no longer necessary when using :formula %. ... removing the existing TBLFM line fixes the problem! M

[O] keep an eye of interesting emacs-configs from github git/magit/diff?

2017-05-08 Thread Hans Maulwurf
hey guys, does somebody has a good workflow for discovering new features/changes of foreigner's emacsconfigs from github without manually browsing the github pages? mabe there is a smart combination of magit/orgmode/diff like: * clone all repos * make orgmode/magit give an overview of changes or c