Ensure org-export-handle-comments protects its insertions
commit56cb9cff34ac352221316f597e97a12a314b4d8b
authorLawrence Mitchell <wence@gmx.li>
Mon, 28 Mar 2011 20:20:47 +0000 (28 20:20 +0000)
committerCarsten Dominik <carsten.dominik@gmail.com>
Wed, 6 Apr 2011 08:42:57 +0000 (6 10:42 +0200)
tree65262bd0668b8f4615e9c0addb019beced807caa
parent5259210cfb2d9910d67bc4d63f0d531b0dbb3bf6
Ensure org-export-handle-comments protects its insertions

* lisp/org-exp.el (org-export-handle-comments): Add the org-protected
property to the replacement string.

Although org-export-handle-comments adds the org-protected property to
the matched string, the subsequent `replace-match' call to change the
comment character does not add this property to the entire format
string.  Fix this by propertizing the entirety of the newtext argument
to replace-match.
lisp/org-exp.el