emacs-orgmode
[Top][All Lists]
Advanced

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

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


From: Kyle Meyer
Subject: [O] [PATCH] org-src.el: Unescape source block on edit
Date: Fri, 22 May 2015 00:49:34 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

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.

Attachment: 0001-org-src.el-Unescape-source-block-on-edit.patch
Description: Text Data

--
Kyle

reply via email to

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