1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-12-02 08:22:16 +00:00

org-exp.el: Inhibit read-only when grabbing the title from a subtree.

Eric S. Fraga found this problem while trying to export a subtree from
a read-only file.
This commit is contained in:
Bastien Guerry 2011-01-04 17:03:14 +01:00
parent e246133d75
commit a39c35fcd9

View File

@ -1949,7 +1949,8 @@ can work correctly."
(defun org-export-get-title-from-subtree ()
"Return subtree title and exclude it from export."
(let (title (rbeg (region-beginning)) (rend (region-end)))
(let ((rbeg (region-beginning)) (rend (region-end))
(inhibit-read-only t) title)
(save-excursion
(goto-char rbeg)
(when (and (org-at-heading-p)