From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [PATCH] org-src.el: Unescape source block on edit Date: Fri, 22 May 2015 21:04:10 +0200 Message-ID: <87bnhc3045.fsf@nicolasgoaziou.fr> References: <87617lgqsh.fsf@kmlap.domain.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60848) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YvsDX-00025N-7w for emacs-orgmode@gnu.org; Fri, 22 May 2015 15:02:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YvsDW-0002jr-D9 for emacs-orgmode@gnu.org; Fri, 22 May 2015 15:02:47 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:60027) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YvsDW-0002jU-7G for emacs-orgmode@gnu.org; Fri, 22 May 2015 15:02:46 -0400 In-Reply-To: <87617lgqsh.fsf@kmlap.domain.org> (Kyle Meyer's message of "Fri, 22 May 2015 00:49:34 -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: Kyle Meyer Cc: Org-mode Hello, Kyle Meyer writes: > org-edit-src-code doesn't seem to be unescaping correctly. For > example, calling org-edit-src-code on > > #+begin_src org > ,* h > #+end_src > > puts ",* h", not "* h", in the source buffer. When exiting, ",*" is > escaped again, resulting in > > #+begin_src org > ,,* h > #+end_src > > The attached patch moves the unescaping call from org-edit-src-code to > org-src--edit-element so that the source string is unescaped > regardless of whether it was passed as an argument or extracted > directly from the buffer. Thanks. However, this wouldn't work as `org-src--edit-element' is called on elements that doesn't need escaping, e.g., a footnote definition. Anyway, it is fixed in 71641bc3a0882bb16fb2b62ebef8ebc98ba0e3d8. Regards, -- Nicolas Goaziou