* change in babel argument processing?
@ 2017-05-08 8:51 Eric S Fraga
2017-05-08 9:27 ` Nicolas Goaziou
[not found] ` <7f3c13e41d4649cfb375caf024b3c2b1@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
0 siblings, 2 replies; 3+ messages in thread
From: Eric S Fraga @ 2017-05-08 8:51 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 561 bytes --]
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 as a heads up for others as anything else. I
did not see any mention of this in the list or the change log but could
have obviously missed it easily (apologies if so).
Thanks,
eric
--
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50, Org release_9.0.6-407-gc28ec3
[-- Attachment #1.2: t.org --]
[-- Type: text/x-org, Size: 557 bytes --]
* test
This does not work:
#+call: year2016[:cmdline --format "%-20A %12T\n" bal --flat pay tax]()
#+results:
This one does:
#+call: year2016[:cmdline --format "%-20A %12T\\n" bal --flat pay tax]()
#+results:
: pay -35.00 £
: tax 10.00 £
: -25.00 £
#+name: year2016
#+begin_src ledger :cmdline bal assets
2016/05/03 * pay
bank 25.00 £
tax 10 £
pay
#+end_src
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: change in babel argument processing?
2017-05-08 8:51 change in babel argument processing? Eric S Fraga
@ 2017-05-08 9:27 ` Nicolas Goaziou
[not found] ` <7f3c13e41d4649cfb375caf024b3c2b1@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
1 sibling, 0 replies; 3+ messages in thread
From: Nicolas Goaziou @ 2017-05-08 9:27 UTC (permalink / raw)
To: emacs-orgmode
Hello,
Eric S Fraga <e.fraga@ucl.ac.uk> 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.
>
> I'm posting this as much as a heads up for others as anything else. I
> did not see any mention of this in the list or the change log but could
> have obviously missed it easily (apologies if so).
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?
Thank you.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <7f3c13e41d4649cfb375caf024b3c2b1@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>]
* Re: change in babel argument processing?
[not found] ` <7f3c13e41d4649cfb375caf024b3c2b1@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
@ 2017-05-08 10:45 ` Eric S Fraga
0 siblings, 0 replies; 3+ messages in thread
From: Eric S Fraga @ 2017-05-08 10:45 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 536 bytes --]
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 updates to
maint). Many thanks.
Interestingly, keeping \\n also works so at least I don't have to
immediately undo all the changes I made to my tax files... :-)
--
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50, Org release_9.0.6-407-gc28ec3
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-05-08 10:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-08 8:51 change in babel argument processing? Eric S Fraga
2017-05-08 9:27 ` Nicolas Goaziou
[not found] ` <7f3c13e41d4649cfb375caf024b3c2b1@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2017-05-08 10:45 ` Eric S Fraga
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).