[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [PATCH] org-src.el: Unescape source block on edit

From: Nicolas Goaziou
Subject: Re: [O] [PATCH] org-src.el: Unescape source block on edit
Date: Fri, 22 May 2015 21:04:10 +0200


Kyle Meyer <address@hidden> 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.


Nicolas Goaziou

reply via email to

[Prev in Thread] Current Thread [Next in Thread]