From a39c35fcd96467223142d7b3a1542a2405eaf2cf Mon Sep 17 00:00:00 2001 From: Bastien Guerry Date: Tue, 4 Jan 2011 17:03:14 +0100 Subject: [PATCH] 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. --- lisp/org-exp.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/org-exp.el b/lisp/org-exp.el index 9dca4f57b..4d2e1454a 100644 --- a/lisp/org-exp.el +++ b/lisp/org-exp.el @@ -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) -- 2.11.4.GIT