Re: [O] Macro question

2015-10-25 Thread Eric S Fraga
On Sunday, 25 Oct 2015 at 10:45, Fabrice Popineau wrote: [...] > In this case, the parameter that has to be made easily editable > is the width of the column. (Thinking about a common interface for > beamer and reveal) Column mode is great for editing such things. However, we would need (as has

Re: [O] Macro question

2015-10-25 Thread Fabrice Popineau
2015-10-24 19:02 GMT+02:00 Eric S Fraga : > On Saturday, 24 Oct 2015 at 13:37, Fabrice Popineau wrote: > > [...] > > > I find that using headers as in beamer is not pleasant (maybe that is > just > > me ?) > > Just to help you understand the positive aspect of headlines for > structure in beamer,

Re: [O] Macro question

2015-10-24 Thread Eric S Fraga
On Saturday, 24 Oct 2015 at 13:37, Fabrice Popineau wrote: [...] > I find that using headers as in beamer is not pleasant (maybe that is just > me ?) Just to help you understand the positive aspect of headlines for structure in beamer, the use of headlines makes it incredibly easy to switch colu

Re: [O] Macro question

2015-10-24 Thread Nicolas Goaziou
Fabrice Popineau writes: > Ok for a new line, but I was looking for a way to get 2 columns on a slide, > independently of the backend, beamer or reveal. > > One easy way would have been to write : > > {{{beginColumns}}} > > {{{nextColumn}}} > > {{{endColumns}}} > > I find that using headers as in

Re: [O] Macro question

2015-10-24 Thread Fabrice Popineau
> > > I don't get it. > > What about simply writing > > Some other text. > \\ > > ? > > Ok for a new line, but I was looking for a way to get 2 columns on a slide, independently of the backend, beamer or reveal. One easy way would have been to write : {{{beginColumns}}} {{{nextColumn}}} {{{

Re: [O] Macro question

2015-10-24 Thread Nicolas Goaziou
Fabrice Popineau writes: > Well, thinking about it, "raw inline html" needs to be clarified for > me, because even a mere : > > @@html:@@ > > is surrounded by a paragraph. > > My point is that what can be achieved by macros depends on the backend, > which defeats part of the purpose of having a h

Re: [O] Macro question

2015-10-24 Thread Fabrice Popineau
2015-10-24 0:18 GMT+02:00 Nicolas Goaziou : > Fabrice Popineau writes: > > > I agree that raw html can be output by macros, but it can easily break > > too. > > I think you are missing the "inline part". You cannot use macros to > generate, or even replace a block element in HTML (e.g., a paragra

Re: [O] Macro question

2015-10-23 Thread Nicolas Goaziou
Fabrice Popineau writes: > I agree that raw html can be output by macros, but it can easily break > too. I think you are missing the "inline part". You cannot use macros to generate, or even replace a block element in HTML (e.g., a paragraph). Regards,

Re: [O] Macro question

2015-10-23 Thread Fabrice Popineau
Hello Nicolas, 2015-10-23 22:37 GMT+02:00 Nicolas Goaziou : > Hello, > > Fabrice Popineau writes: > > > I was wondering if macros could be used to output raw html code, but that > > doesn't seem to be the case. > > > > Namely: > > > > #+macro: bfoo @@html:@@ > > #+macro: efoo @@html:@@ > > > > T

Re: [O] Macro question

2015-10-23 Thread Nicolas Goaziou
Hello, Fabrice Popineau writes: > I was wondering if macros could be used to output raw html code, but that > doesn't seem to be the case. > > Namely: > > #+macro: bfoo @@html:@@ > #+macro: efoo @@html:@@ > > The macros {{{bfoo}}} and {{{efoo}}} are expanded surrounded by ... > . Macros can ou

Re: [O] Macro question with new texinfo exporter

2013-02-16 Thread Thomas S. Dye
Nick Dokos writes: > Bastien wrote: > >> PS: I wonder if *any* of the menu item is used... as I don't use the >> menu myself, it's hard to tell. >> > > I do: there are many things I use rarely[fn:1] (e.g. archiving, drawers, > properties, even marking TODOs outside the agenda: was that C-c t or

Re: [O] Macro question with new texinfo exporter

2013-02-16 Thread Nick Dokos
Nick Dokos wrote: > Eric Abrahamsen wrote: > > > Achim Gratz writes: > > > > > Bastien writes: > > >> PS: I wonder if *any* of the menu item is used... as I don't use the > > >> menu myself, it's hard to tell. > > > > > > These days I only ever use it for "Show All" which does have a menu > >

Re: [O] Macro question with new texinfo exporter

2013-02-16 Thread Nick Dokos
Eric Abrahamsen wrote: > Achim Gratz writes: > > > Bastien writes: > >> PS: I wonder if *any* of the menu item is used... as I don't use the > >> menu myself, it's hard to tell. > > > > These days I only ever use it for "Show All" which does have a menu > > entry, but no key binding. But befor

Re: [O] Macro question with new texinfo exporter

2013-02-16 Thread Nick Dokos
Bastien wrote: > PS: I wonder if *any* of the menu item is used... as I don't use the > menu myself, it's hard to tell. > I do: there are many things I use rarely[fn:1] (e.g. archiving, drawers, properties, even marking TODOs outside the agenda: was that C-c t or C-c C-t now?) that I have not g

Re: [O] Macro question with new texinfo exporter

2013-02-16 Thread Eric Abrahamsen
Achim Gratz writes: > Bastien writes: >> PS: I wonder if *any* of the menu item is used... as I don't use the >> menu myself, it's hard to tell. > > These days I only ever use it for "Show All" which does have a menu > entry, but no key binding. But before I got used to where the keys are > I of

Re: [O] Macro question with new texinfo exporter

2013-02-16 Thread Achim Gratz
Bastien writes: > PS: I wonder if *any* of the menu item is used... as I don't use the > menu myself, it's hard to tell. These days I only ever use it for "Show All" which does have a menu entry, but no key binding. But before I got used to where the keys are I often used the menu to do things in

Re: [O] Macro question with new texinfo exporter

2013-02-16 Thread Bastien
Achim Gratz writes: > Bastien writes: >>> Reloading uncompiled is only useful for when you want to >>> create backtraces. >> >> ... which is why I always want, but users don't, I agree. > > We could provide org-reload-uncompiled that calls org-reload with a > prefix argument, which would allow

Re: [O] Macro question with new texinfo exporter

2013-02-16 Thread Achim Gratz
Bastien writes: >> Reloading uncompiled is only useful for when you want to >> create backtraces. > > ... which is why I always want, but users don't, I agree. We could provide org-reload-uncompiled that calls org-reload with a prefix argument, which would allow anyone so inclined to map "C-c C-

Re: [O] Macro question with new texinfo exporter

2013-02-16 Thread Bastien
Hi Achim, Achim Gratz writes: > I don't see the relation to the original problem, which is caused by a > switch from master to maint. Yes, I realized this. > I think that the current default, which has been in place for years, is > just fine. Fair enough. > Reloading uncompiled is only use

Re: [O] Macro question with new texinfo exporter

2013-02-04 Thread Thomas S. Dye
Aloha Achim, Achim Gratz writes: > > What were those messages? And since the presence of both features > indicates that you were previously on master, why did you switch to > maint at all (everything on maint should have been merged into master)? > >> Org-mode version 7.9.3e (7.9.3e @ /Users/dk/

Re: [O] Macro question with new texinfo exporter

2013-02-04 Thread Achim Gratz
Bastien writes: > You need to reload uncompiled files with C-u M-x org-reload RET I don't see the relation to the original problem, which is caused by a switch from master to maint. This will not work without at least unloading Org or better, restarting Emacs. > BTW, I think it should be the def

Re: [O] Macro question with new texinfo exporter

2013-02-04 Thread Thomas S. Dye
Nicolas Goaziou writes: > > I pushed the fix to maint because it was about Elements, not directly > the exporter. Oh, I see now. You pushed the fix to maint, then merged branch 'maint' with master, so the fix is there as well. I didn't understand the workflow, so the reference to maint confuse

Re: [O] Macro question with new texinfo exporter

2013-02-04 Thread Achim Gratz
Thomas S. Dye writes: > Then, I checkout maint: > > git checkout maint I'm not sure what your starting point is, but you'd almost certainly will want to create the correct autoloads. In fact, you'd have a much better chance of this working correctly if you took the time (just once) to set up an i

Re: [O] Macro question with new texinfo exporter

2013-02-04 Thread Nicolas Goaziou
Hello, t...@tsdye.com (Thomas S. Dye) writes: > Nicolas Goaziou writes: > >> Bastien writes: >> >>> Now back to the issue at hand, what about simply allowing to escape >>> the , and " characters? This was Thomas first try, and a natural one >>> I'd say. >> >> I have pushed a fix in maint for t

Re: [O] Macro question with new texinfo exporter

2013-02-04 Thread Bastien
Hi Thomas, t...@tsdye.com (Thomas S. Dye) writes: > I'm stymied here. I'd like to be able to use the new macro code with > the new exporter. How is that possible? You need to reload uncompiled files with C-u M-x org-reload RET BTW, I think it should be the defaut behavior of org-reload. Achi

Re: [O] Macro question with new texinfo exporter

2013-02-04 Thread Thomas S. Dye
Nicolas Goaziou writes: > Bastien writes: > >> Now back to the issue at hand, what about simply allowing to escape >> the , and " characters? This was Thomas first try, and a natural one >> I'd say. > > I have pushed a fix in maint for that. It should now be possible to use > {{{kbd(C-\,)}}} to

Re: [O] Macro question with new texinfo exporter

2013-01-31 Thread Nicolas Goaziou
Bastien writes: > Now back to the issue at hand, what about simply allowing to escape > the , and " characters? This was Thomas first try, and a natural one > I'd say. I have pushed a fix in maint for that. It should now be possible to use {{{kbd(C-\,)}}} to get "C-," as argument. Regards, -

Re: [O] Macro question with new texinfo exporter

2013-01-31 Thread Nicolas Goaziou
Bastien writes: > Now back to the issue at hand, what about simply allowing to escape > the , and " characters? This was Thomas first try, and a natural one > I'd say. > > What do you think? In this case, there's no point in allowing to escape quotation marks. The current syntax handles them fi

Re: [O] Macro question with new texinfo exporter

2013-01-31 Thread Bastien
Hi Nicolas, Nicolas Goaziou writes: > OTOH, the change will happen during a major release. Moreover macros > belong to an export framework which have been totally rewritten. Must we > cope with backward compatibility in this case ? I'd say "as much as we can", yes. But if an incompatible chang

Re: [O] Macro question with new texinfo exporter

2013-01-30 Thread Thomas S. Dye
Nicolas Goaziou writes: > Bastien writes: > >> Nicolas Goaziou writes: >> >>> Supporting old syntax is a bit tricky. Perhaps something like: >>> >>> - Find the first one to appear between comma and quote: >>> - if it is a comma, use old syntax >>> - in any other case, use new syntax.

Re: [O] Macro question with new texinfo exporter

2013-01-30 Thread Nicolas Goaziou
Bastien writes: > Nicolas Goaziou writes: > >> Supporting old syntax is a bit tricky. Perhaps something like: >> >> - Find the first one to appear between comma and quote: >> - if it is a comma, use old syntax >> - in any other case, use new syntax. > > Sounds good to me. OTOH, the ch

Re: [O] Macro question with new texinfo exporter

2013-01-30 Thread Bastien
Hi Nicolas, Nicolas Goaziou writes: > Supporting old syntax is a bit tricky. Perhaps something like: > > - Find the first one to appear between comma and quote: > - if it is a comma, use old syntax > - in any other case, use new syntax. Sounds good to me. >> The reason why I prefer t

Re: [O] Macro question with new texinfo exporter

2013-01-30 Thread Nicolas Goaziou
Hello, Bastien writes: > FWIW I'm all for a variation of this > > {{{name(arg1 "arg2 with space" "arg3 \"with\" quote")}}} > > if we can also support the old syntax. Supporting old syntax is a bit tricky. Perhaps something like: - Find the first one to appear between comma and quote: - i

Re: [O] Macro question with new texinfo exporter

2013-01-30 Thread Bastien
Hi Nicolas, Nicolas Goaziou writes: > We ought to modify it. Perhaps something like: > > {{{name arg1 "arg2 with space" "arg3 \"with\" quote"}}} FWIW I'm all for a variation of this {{{name(arg1 "arg2 with space" "arg3 \"with\" quote")}}} if we can also support the old syntax. The reason w

Re: [O] Macro question with new texinfo exporter

2013-01-29 Thread Thomas S. Dye
Nicolas Goaziou writes: > > I didn't try it, but it probably comes from the syntax of macros, which > is a bit brittle wrt commas. > > We ought to modify it. Perhaps something like: > > {{{name arg1 "arg2 with space" "arg3 \"with\" quote"}}} So, with the modification, I'd write {{{kbd("C-,")}}

Re: [O] Macro question with new texinfo exporter

2013-01-29 Thread Nicolas Goaziou
Hello, t...@tsdye.com (Thomas S. Dye) writes: > I have the following two macros: > > #+MACRO: markup @@info:@$1{@@$2@@info:}@@ > #+MACRO: kbd {{{markup(kbd,$1)}}} > > When I export to texinfo using the new exporter, the following macro > call triggers an error (byte-code: Wrong type argument: con