diff options
author | Juanma Barranquero <lekktu@gmail.com> | 2012-04-19 18:50:07 +0200 |
---|---|---|
committer | Juanma Barranquero <lekktu@gmail.com> | 2012-04-19 18:50:07 +0200 |
commit | 376cbaccd90fe54837eb452f5d6c1cda42e0e8fc (patch) | |
tree | 9a3e9686d588842965c9440cbed91ef05a1106c1 /lisp/progmodes | |
parent | a6b92a4a56a8afec8d91882611c1e17d18d55572 (diff) | |
download | emacs-376cbaccd90fe54837eb452f5d6c1cda42e0e8fc.tar.gz emacs-376cbaccd90fe54837eb452f5d6c1cda42e0e8fc.tar.bz2 emacs-376cbaccd90fe54837eb452f5d6c1cda42e0e8fc.zip |
Remove some `toggle-read-only' warnings.
* lisp/bs.el (bs-toggle-readonly): Call `toggle-read-only' interactively.
* lisp/descr-text.el (describe-char):
lisp/progmodes/python.el (python-describe-symbol):
Don't call `toggle-read-only', set `buffer-read-only'.
Diffstat (limited to 'lisp/progmodes')
-rw-r--r-- | lisp/progmodes/python.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 6f8758ebec1..2922330e6f9 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -1768,7 +1768,7 @@ will." ;; allow C-c C-f in help buffer. (let ((temp-buffer-show-hook ; avoid xref stuff (lambda () - (toggle-read-only 1) + (setq buffer-read-only t) (setq view-return-to-alist (list (cons (selected-window) help-return-method)))))) (with-output-to-temp-buffer (help-buffer) |