* allow multiline #+BIND
@ 2014-07-30 11:33 Vladimir Alexiev
2014-07-30 18:10 ` Sebastien Vauban
2014-07-31 9:36 ` Nicolas Goaziou
0 siblings, 2 replies; 3+ messages in thread
From: Vladimir Alexiev @ 2014-07-30 11:33 UTC (permalink / raw)
To: emacs-orgmode
It would be nice to allow multiline BINDs. I'd much rather write this than put it all on one line:
#+BIND: va/org-dot-preamble "digraph g {
#+BIND: rankdir=LR nodesep=0.2 ranksep=0.1 arrowsize=0.2
#+BIND: node [fontname=courier fontsize=8 margin='0.02,0.01' shape=circle width=0.1 height=0.1 label='']
#+BIND: edge [fontname=courier fontsize=8 labelfontname=courier labelfontsize=8]"
The usual continuation syntax of backslash before the EOL can be used.
Or else, a new keyword #+BIND1: for each continuation line.
The function to fix is ox.el::org-export--list-bound-variables
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: allow multiline #+BIND
2014-07-30 11:33 allow multiline #+BIND Vladimir Alexiev
@ 2014-07-30 18:10 ` Sebastien Vauban
2014-07-31 9:36 ` Nicolas Goaziou
1 sibling, 0 replies; 3+ messages in thread
From: Sebastien Vauban @ 2014-07-30 18:10 UTC (permalink / raw)
To: emacs-orgmode-mXXj517/zsQ
"Vladimir Alexiev" wrote:
> It would be nice to allow multiline BINDs. I'd much rather write this than put it all on one line:
>
> #+BIND: va/org-dot-preamble "digraph g {
> #+BIND: rankdir=LR nodesep=0.2 ranksep=0.1 arrowsize=0.2
> #+BIND: node [fontname=courier fontsize=8 margin='0.02,0.01' shape=circle width=0.1 height=0.1 label='']
> #+BIND: edge [fontname=courier fontsize=8 labelfontname=courier labelfontsize=8]"
>
> The usual continuation syntax of backslash before the EOL can be used.
> Or else, a new keyword #+BIND1: for each continuation line.
>
> The function to fix is ox.el::org-export--list-bound-variables
In case it wouldn't get implemented, a workaround consists into setting
that var in an Emacs Lisp code block, run at the file opening.
Best regards,
Seb
--
Sebastien Vauban
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: allow multiline #+BIND
2014-07-30 11:33 allow multiline #+BIND Vladimir Alexiev
2014-07-30 18:10 ` Sebastien Vauban
@ 2014-07-31 9:36 ` Nicolas Goaziou
1 sibling, 0 replies; 3+ messages in thread
From: Nicolas Goaziou @ 2014-07-31 9:36 UTC (permalink / raw)
To: vladimir.alexiev; +Cc: emacs-orgmode
Hello,
"Vladimir Alexiev" <vladimir.alexiev@ontotext.com> writes:
> It would be nice to allow multiline BINDs. I'd much rather write this
> than put it all on one line:
This was suggested already for other keywords, e.g., MACRO. and CALL
(http://permalink.gmane.org/gmane.emacs.orgmode/69326).
> The usual continuation syntax of backslash before the EOL can be used.
This can be an option. What would be needed is an unambiguous syntax
(e.g., what happens to lines ending with a backslash, without meaning
a continuation?). Bonus points if it is elegant, too.
> Or else, a new keyword #+BIND1: for each continuation line.
No, BIND1 is also a valid keyword name. This could introduce a clash.
> The function to fix is ox.el::org-export--list-bound-variables
No, keyword parsing happens in `org-element-keyword-parser' and
`org-element-babel-call-parser' for the special #+CALL: keyword.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-07-31 9:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-30 11:33 allow multiline #+BIND Vladimir Alexiev
2014-07-30 18:10 ` Sebastien Vauban
2014-07-31 9:36 ` Nicolas Goaziou
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.