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:
parent
e246133d75
commit
a39c35fcd9
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user