Commit 376cbacc authored by Juanma Barranquero's avatar Juanma Barranquero
Browse files

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'.
parent a6b92a4a
......@@ -964,7 +964,7 @@ Default is `bs--current-sort-function'."
Uses function `toggle-read-only'."
(with-current-buffer (bs--current-buffer)
(call-interactively 'toggle-read-only))
(defun bs-clear-modified ()
......@@ -806,7 +806,7 @@ relevant to POS."
(format " %s: %s\n" elt val)))))))
(if text-props-desc (insert text-props-desc))
(toggle-read-only 1))))))
(setq buffer-read-only t))))))
(define-obsolete-function-alias 'describe-char-after 'describe-char "22.1")
......@@ -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)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment