summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2011-11-09 21:17:45 -0500
committerGlenn Morris <rgm@gnu.org>2011-11-09 21:17:45 -0500
commitb2621720c318257be0d4100d695b62986db88b4f (patch)
treeea4147a75f38b69ff7abb4ee550433e562ecaac3 /lisp/emacs-lisp
parentc4e7c63af11781a1c79c119ef4a2b8c2b74637d6 (diff)
downloademacs-b2621720c318257be0d4100d695b62986db88b4f.tar.gz
emacs-b2621720c318257be0d4100d695b62986db88b4f.tar.bz2
emacs-b2621720c318257be0d4100d695b62986db88b4f.zip
toggle-read-only fixes for bugs#7292, 10006.
* doc/lispref/buffers.texi (Read Only Buffers): Expand a bit on why toggle-read-only should only be used interactively. * lisp/files.el (toggle-read-only): Mention that it should only be used interactively. * lisp/emacs-lisp/bytecomp.el (byte-compile-interactive-only-functions): Add toggle-read-only.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/bytecomp.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index fae402d4215..84aaf8718ed 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -355,7 +355,7 @@ else the global value will be modified."
(defvar byte-compile-interactive-only-functions
'(beginning-of-buffer end-of-buffer replace-string replace-regexp
insert-file insert-buffer insert-file-literally previous-line next-line
- goto-line comint-run delete-backward-char)
+ goto-line comint-run delete-backward-char toggle-read-only)
"List of commands that are not meant to be called from Lisp.")
(defvar byte-compile-not-obsolete-vars nil