From: Roland Winkler Date: Mon, 25 Feb 2008 20:07:28 +0000 (+0000) Subject: (ibuffer-do-toggle-read-only): New optional arg as in X-Git-Tag: emacs-pretest-23.0.90~7659 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=92be491c2585b757f2d2b43bf7b64d5b52d02fd6;p=emacs.git (ibuffer-do-toggle-read-only): New optional arg as in toggle-read-only. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 89fd026d647..ed0b3fcc7e5 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2008-02-25 Roland Winkler + + * ibuffer.el (ibuffer-do-toggle-read-only): New optional arg as in + toggle-read-only. + 2008-02-25 Stefan Monnier * doc-view.el (doc-view-conversion-buffer): Give it an internal name. diff --git a/lisp/ibuffer.el b/lisp/ibuffer.el index 59f8c96af2e..e3cd51af373 100644 --- a/lisp/ibuffer.el +++ b/lisp/ibuffer.el @@ -1257,11 +1257,13 @@ a new window in the current frame, splitting vertically." :modifier-p t) (set-buffer-modified-p (not (buffer-modified-p)))) -(define-ibuffer-op ibuffer-do-toggle-read-only () - "Toggle read only status in marked buffers." +(define-ibuffer-op ibuffer-do-toggle-read-only (&optional arg) + "Toggle read only status in marked buffers. +With ARG, set read-only iff arg is positive." (:opstring "toggled read only status in" + :interactive "P" :modifier-p t) - (toggle-read-only)) + (toggle-read-only arg)) (define-ibuffer-op ibuffer-do-delete () "Kill marked buffers as with `kill-this-buffer'."