From mboxrd@z Thu Jan 1 00:00:00 1970 From: "R. Michael Weylandt " Subject: Re: verbatim/code text and line breaks with auto fill mode Date: Tue, 18 Mar 2014 18:35:14 -0400 Message-ID: References: <87y50l91i7.fsf@alphaville.bos.redhat.com> Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43652) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQ2bZ-00051v-EK for emacs-orgmode@gnu.org; Tue, 18 Mar 2014 18:35:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WQ2bT-0002Su-Mt for emacs-orgmode@gnu.org; Tue, 18 Mar 2014 18:35:29 -0400 Received: from mail-qc0-x22a.google.com ([2607:f8b0:400d:c01::22a]:48423) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQ2bT-0002So-Jb for emacs-orgmode@gnu.org; Tue, 18 Mar 2014 18:35:23 -0400 Received: by mail-qc0-f170.google.com with SMTP id e9so8913772qcy.1 for ; Tue, 18 Mar 2014 15:35:22 -0700 (PDT) In-Reply-To: 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: Alan Schmitt Cc: Nick Dokos , "emacs-orgmode@gnu.org" On Mar 8, 2014, at 7:12, Alan Schmitt wrote= : > Nick Dokos writes: >=20 >> Alan Schmitt writes: >>=20 >>> Hello, >>>=20 >>> Is there a way to disable line breaks inside verbatim or code text when >>> using auto fill? For instance, if I type the following: >>>=20 >>> This is an example of a long line when some stuff is code: ~1 + 2 + 3 =3D= >>> 6~. >>=20 >> Untested, but you might be able to do something with >> auto-fill-inhibit-regexp. >=20 > 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: >=20 > #+begin_src emacs-lisp > (add-hook 'org-mode-hook > (lambda () > (add-hook 'fill-nobreak-predicate 'org-in-verbatim-emphasis))) > #+end_src >=20 Is there an analogue like org-in-inline-src-p? I find the auto-fill breaks i= nline (src_python{.......}) blocks.=20 E.g., src_python{ 1 + 2 + 3 } works (is recognized as evaluate-able code) while src_python{1 + 2=20 +3} doesn't.=20 Michael=