aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorJuanma Barranquero2012-04-19 18:50:07 +0200
committerJuanma Barranquero2012-04-19 18:50:07 +0200
commit376cbaccd90fe54837eb452f5d6c1cda42e0e8fc (patch)
tree9a3e9686d588842965c9440cbed91ef05a1106c1 /lisp
parenta6b92a4a56a8afec8d91882611c1e17d18d55572 (diff)
downloademacs-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')
-rw-r--r--lisp/bs.el2
-rw-r--r--lisp/descr-text.el2
-rw-r--r--lisp/progmodes/python.el2
3 files changed, 3 insertions, 3 deletions
diff --git a/lisp/bs.el b/lisp/bs.el
index 64c1183b64d..08d05a946e3 100644
--- a/lisp/bs.el
+++ b/lisp/bs.el
@@ -964,7 +964,7 @@ Default is `bs--current-sort-function'."
964Uses function `toggle-read-only'." 964Uses function `toggle-read-only'."
965 (interactive) 965 (interactive)
966 (with-current-buffer (bs--current-buffer) 966 (with-current-buffer (bs--current-buffer)
967 (toggle-read-only)) 967 (call-interactively 'toggle-read-only))
968 (bs--update-current-line)) 968 (bs--update-current-line))
969 969
970(defun bs-clear-modified () 970(defun bs-clear-modified ()
diff --git a/lisp/descr-text.el b/lisp/descr-text.el
index d2995ab790d..50b32fc8f2e 100644
--- a/lisp/descr-text.el
+++ b/lisp/descr-text.el
@@ -806,7 +806,7 @@ relevant to POS."
806 (format " %s: %s\n" elt val))))))) 806 (format " %s: %s\n" elt val)))))))
807 807
808 (if text-props-desc (insert text-props-desc)) 808 (if text-props-desc (insert text-props-desc))
809 (toggle-read-only 1)))))) 809 (setq buffer-read-only t))))))
810 810
811(define-obsolete-function-alias 'describe-char-after 'describe-char "22.1") 811(define-obsolete-function-alias 'describe-char-after 'describe-char "22.1")
812 812
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)