diff options
| author | Juanma Barranquero | 2012-04-19 18:50:07 +0200 |
|---|---|---|
| committer | Juanma Barranquero | 2012-04-19 18:50:07 +0200 |
| commit | 376cbaccd90fe54837eb452f5d6c1cda42e0e8fc (patch) | |
| tree | 9a3e9686d588842965c9440cbed91ef05a1106c1 /lisp/progmodes/python.el | |
| parent | a6b92a4a56a8afec8d91882611c1e17d18d55572 (diff) | |
| download | emacs-376cbaccd90fe54837eb452f5d6c1cda42e0e8fc.tar.gz 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/python.el')
| -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." | |||
| 1768 | ;; allow C-c C-f in help buffer. | 1768 | ;; allow C-c C-f in help buffer. |
| 1769 | (let ((temp-buffer-show-hook ; avoid xref stuff | 1769 | (let ((temp-buffer-show-hook ; avoid xref stuff |
| 1770 | (lambda () | 1770 | (lambda () |
| 1771 | (toggle-read-only 1) | 1771 | (setq buffer-read-only t) |
| 1772 | (setq view-return-to-alist | 1772 | (setq view-return-to-alist |
| 1773 | (list (cons (selected-window) help-return-method)))))) | 1773 | (list (cons (selected-window) help-return-method)))))) |
| 1774 | (with-output-to-temp-buffer (help-buffer) | 1774 | (with-output-to-temp-buffer (help-buffer) |