Re: [O] verbatim/code text and line breaks with auto fill mode

2014-03-24 Thread Michael Weylandt
On Mar 18, 2014, at 18:35, "Michael Weylandt" wrote: > > On Mar 8, 2014, at 7:12, Alan Schmitt wrote: >> >> I've continued looking into this, and it seems that what I want is use >> `fill-nobreak-predicate'. This is what I ended up doing: >> >> #+begin_src emacs-lisp >> (add-hook 'org-mode-h

Re: [O] verbatim/code text and line breaks with auto fill mode

2014-03-21 Thread Alan Schmitt
Resending this as it did not make it to the list. (Is there a way to make sure that mail that makes it to the list through gmail gets a reply address to the list?) Alan Schmitt writes: > Bastien writes: > >>> If it does, what backends do not support it? >> >> Only the LaTeX backend. >> >> I fix

Re: [O] verbatim/code text and line breaks with auto fill mode

2014-03-21 Thread Bastien
Hi Nicolas and Alan, Nicolas Goaziou writes: > We first need to know what is the problem. Does Org allow newline > characters in verbatim objects? I'd say it should, yes. Otherwise it creates an exception that is hard to justify, since this exception is linked to only one export backend. >

Re: [O] verbatim/code text and line breaks with auto fill mode

2014-03-18 Thread R. Michael Weylandt
On Mar 8, 2014, at 7:12, Alan Schmitt wrote: > Nick Dokos writes: > >> Alan Schmitt writes: >> >>> Hello, >>> >>> Is there a way to disable line breaks inside verbatim or code text when >>> using auto fill? For instance, if I type the following: >>> >>> This is an example of a long line w

Re: [O] verbatim/code text and line breaks with auto fill mode

2014-03-14 Thread Alan Schmitt
I'm resending this to the list (somehow it was addressed to gmane instead of the list.) Alan Schmitt writes: > Nicolas Goaziou writes: > >> Does Org allow newline characters in verbatim objects? > > If I understand org-emphasis-regexp-components correctly, it explicitly > allows newlines (the d

Re: [O] verbatim/code text and line breaks with auto fill mode

2014-03-13 Thread Nicolas Goaziou
Hello, Bastien writes: > Hi Nicolas, > Nicolas Goaziou writes: > >> OTOH, `latex' back-end could remove newline characters from verbatim and >> code contents. > > Is it only for the LaTeX backend? No idea. > Or something we can add to `org-export-before-processing-hook'. Hook are usually f

Re: [O] verbatim/code text and line breaks with auto fill mode

2014-03-13 Thread Bastien
Hi Nicolas, Nicolas Goaziou writes: > OTOH, `latex' back-end could remove newline characters from verbatim and > code contents. Is it only for the LaTeX backend? Or something we can add to `org-export-before-processing-hook'. In any case, yes, would be great if you could fix this somehow.

Re: [O] verbatim/code text and line breaks with auto fill mode

2014-03-10 Thread Nicolas Goaziou
Hello, Sebastien Vauban writes: > Alan Schmitt wrote: >> I've continued looking into this, and it seems that what I want is use >> `fill-nobreak-predicate'. This is what I ended up doing: >> >> #+begin_src emacs-lisp >> (add-hook 'org-mode-hook >> (lambda () >> (add-hook

Re: [O] verbatim/code text and line breaks with auto fill mode

2014-03-10 Thread Sebastien Vauban
Alan Schmitt wrote: > I've continued looking into this, and it seems that what I want is use > `fill-nobreak-predicate'. This is what I ended up doing: > > #+begin_src emacs-lisp > (add-hook 'org-mode-hook > (lambda () > (add-hook 'fill-nobreak-predicate 'org-in-verbatim-empha

Re: [O] verbatim/code text and line breaks with auto fill mode

2014-03-08 Thread Alan Schmitt
Nick Dokos writes: > Alan Schmitt writes: > >> Hello, >> >> Is there a way to disable line breaks inside verbatim or code text when >> using auto fill? For instance, if I type the following: >> >> This is an example of a long line when some stuff is code: ~1 + 2 + 3 = >> 6~. >> > > Untested, but

Re: [O] verbatim/code text and line breaks with auto fill mode

2014-03-07 Thread Alan Schmitt
Nick Dokos writes: > Alan Schmitt writes: > >> Hello, >> >> Is there a way to disable line breaks inside verbatim or code text when >> using auto fill? For instance, if I type the following: >> >> This is an example of a long line when some stuff is code: ~1 + 2 + 3 = >> 6~. >> > > Untested, but

Re: [O] verbatim/code text and line breaks with auto fill mode

2014-03-07 Thread Nick Dokos
Alan Schmitt writes: > Hello, > > Is there a way to disable line breaks inside verbatim or code text when > using auto fill? For instance, if I type the following: > > This is an example of a long line when some stuff is code: ~1 + 2 + 3 = > 6~. > Untested, but you might be able to do something