From: Bastien Guerry Date: Mon, 11 Feb 2013 15:22:19 +0000 (+0100) Subject: org.el (org-edit-special): Don't allow to edit when buffer is read only X-Git-Tag: release_8.0-pre~389 X-Git-Url: https://repo.or.cz/w/org-mode.git/commitdiff_plain/7963c0b69cdcf23948bf976865228bfa098b5165 org.el (org-edit-special): Don't allow to edit when buffer is read only * org.el (org-edit-special): Don't allow to edit when buffer is read only. Thanks to Greg Minshall for reporting this. --- diff --git a/lisp/org.el b/lisp/org.el index 83cfc014f..22579a0d6 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -19521,6 +19521,8 @@ On a link, call `ffap' to visit the link at point. Otherwise, return a user error." (interactive) (let ((element (org-element-at-point))) + (assert (not buffer-read-only) nil + "Buffer is read-only: %s" (buffer-name)) (case (org-element-type element) (src-block (if (not arg) (org-edit-src-code)