summaryrefslogtreecommitdiff
path: root/lisp/buff-menu.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/buff-menu.el')
-rw-r--r--lisp/buff-menu.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/buff-menu.el b/lisp/buff-menu.el
index e9288d528ec..490d59a92c0 100644
--- a/lisp/buff-menu.el
+++ b/lisp/buff-menu.el
@@ -518,10 +518,10 @@ The current window remains selected."
"Toggle read-only status of buffer on this line.
This behaves like invoking \\[toggle-read-only] in that buffer."
(interactive)
- (let (read-only)
- (with-current-buffer (Buffer-menu-buffer t)
- (toggle-read-only)
- (setq read-only buffer-read-only))
+ (let ((read-only
+ (with-current-buffer (Buffer-menu-buffer t)
+ (call-interactively 'toggle-read-only)
+ buffer-read-only)))
(tabulated-list-set-col 1 (if read-only "%" " ") t)))
(defun Buffer-menu-bury ()