From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: verbatim/code text and line breaks with auto fill mode Date: Mon, 10 Mar 2014 13:13:45 +0100 Message-ID: <87lhwi8d52.fsf@gmail.com> References: <87y50l91i7.fsf@alphaville.bos.redhat.com> <86siqqfgz3.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39942) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WMz5a-0004gk-W5 for emacs-orgmode@gnu.org; Mon, 10 Mar 2014 08:14:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WMz5Q-0004xV-CG for emacs-orgmode@gnu.org; Mon, 10 Mar 2014 08:13:50 -0400 Received: from plane.gmane.org ([80.91.229.3]:38596) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WMz5Q-0004x1-5e for emacs-orgmode@gnu.org; Mon, 10 Mar 2014 08:13:40 -0400 Received: from public by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WMz5N-00080x-9o for emacs-orgmode@gnu.org; Mon, 10 Mar 2014 13:13:37 +0100 In-Reply-To: <86siqqfgz3.fsf@somewhere.org> (Sebastien Vauban's message of "Mon, 10 Mar 2014 12:09:04 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Sebastien Vauban Cc: public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org 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 'fill-nobreak-predicate 'org-in-verbatim-emphasis))) >> #+end_src >> >> All the pieces were already there, it just took me a while to put them >> together ;-) > > Shouldn't this be standard in Org, as it breaks LaTeX compilation > otherwise? This is not an Org problem, as verbatim objects can span over lines. OTOH, `latex' back-end could remove newline characters from verbatim and code contents. Regards, -- Nicolas Goaziou