From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Prepare release 8.2.6 Date: Sat, 05 Apr 2014 21:18:24 +0200 Message-ID: <87y4zj60vz.fsf@gmail.com> References: <87ha6adikd.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35408) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WWW6N-0004aJ-MQ for emacs-orgmode@gnu.org; Sat, 05 Apr 2014 15:18:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WWW6I-00078V-7q for emacs-orgmode@gnu.org; Sat, 05 Apr 2014 15:18:03 -0400 In-Reply-To: (R. Michael Weylandt's message of "Sat, 5 Apr 2014 12:41:25 -0400") 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: "R. Michael Weylandt" Cc: Bastien , "emacs-orgmode@gnu.org" Hello, "R. Michael Weylandt" writes: >> 1) Tell Emacs not to break inline source blocks when filling paragraphs: >> >> http://lists.gnu.org/archive/html/emacs-orgmode/2014-03/msg01310.html > > Small patch in support: Thank you. > +(defun org-in-inline-src-block-p () > + "Test if within an inline src block." > + (org-in-regexp org-babel-inline-src-block-regexp)) I suggest not to use `org-in-regexp' here but `org-element-context'. > - org-fill-paragraph-with-timestamp-nobreak-p))))) > + org-fill-paragraph-with-timestamp-nobreak-p > + org-in-inline-src-block-p))))) Besides inline source blocks, ISTR there was other places where filling was inappropriate (verbatim, code, export snippet, macro...). A single `org-element-context' will find them all. Another option for the problem at hand is to simply remove newline characters in inline source blocks before executing them. Regards, -- Nicolas Goaziou