aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTino Calancha2016-09-17 22:38:19 +0900
committerTino Calancha2016-09-17 22:38:19 +0900
commitee3daab0232189d51eef46e793aea087c271688c (patch)
treecd316277d36bba2cac627a2151b74a1365d55ff2
parent277e7b011d4131a1f0ecde38ecd48429d5fe388c (diff)
downloademacs-ee3daab0232189d51eef46e793aea087c271688c.tar.gz
emacs-ee3daab0232189d51eef46e793aea087c271688c.zip
ibuffer-do-toggle-read-only: Fix unused argument
* lisp/ibuffer.el (ibuffer-do-toggle-read-only): Call 'read-only-mode' with ARG when its an integer. Clarify the meaning of ARG in doc string.
-rw-r--r--lisp/ibuffer.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/ibuffer.el b/lisp/ibuffer.el
index 8e246297ff7..0336f1d41b1 100644
--- a/lisp/ibuffer.el
+++ b/lisp/ibuffer.el
@@ -1299,13 +1299,15 @@ a new window in the current frame, splitting vertically."
1299 :modifier-p t) 1299 :modifier-p t)
1300 (set-buffer-modified-p (not (buffer-modified-p)))) 1300 (set-buffer-modified-p (not (buffer-modified-p))))
1301 1301
1302(define-ibuffer-op ibuffer-do-toggle-read-only (&optional _arg);FIXME:arg unused! 1302(define-ibuffer-op ibuffer-do-toggle-read-only (&optional arg)
1303 "Toggle read only status in marked buffers. 1303 "Toggle read only status in marked buffers.
1304With optional ARG, make read-only only if ARG is not negative." 1304If optional ARG is a non-negative integer, make buffers read only.
1305If ARG is a negative integer or 0, make buffers writable.
1306Otherwise, toggle read only status."
1305 (:opstring "toggled read only status in" 1307 (:opstring "toggled read only status in"
1306 :interactive "P" 1308 :interactive "P"
1307 :modifier-p t) 1309 :modifier-p t)
1308 (read-only-mode 'toggle)) 1310 (read-only-mode (if (integerp arg) arg 'toggle)))
1309 1311
1310(define-ibuffer-op ibuffer-do-delete () 1312(define-ibuffer-op ibuffer-do-delete ()
1311 "Kill marked buffers as with `kill-this-buffer'." 1313 "Kill marked buffers as with `kill-this-buffer'."