diff options
author | Richard M. Stallman <rms@gnu.org> | 1994-07-11 04:46:24 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1994-07-11 04:46:24 +0000 |
commit | 47fe9c19b1b3b9d85e53b56ee9b7503913ea37f1 (patch) | |
tree | d4fe036002de3eeba663c748b7648f73e0c4b029 /lisp | |
parent | 1c3d1b1c800bb766f14edaf84af5394d53e4000a (diff) | |
download | emacs-47fe9c19b1b3b9d85e53b56ee9b7503913ea37f1.tar.gz |
(Buffer-menu-not-modified): Make `Buffer-menu-not-modified' handle an
argument like `not-modified'.
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/buff-menu.el | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/buff-menu.el b/lisp/buff-menu.el index db8060e9e26..db6da4427d8 100644 --- a/lisp/buff-menu.el +++ b/lisp/buff-menu.el @@ -242,19 +242,19 @@ and then move up one line" (insert ?S) (forward-line 1)))) -(defun Buffer-menu-not-modified () +(defun Buffer-menu-not-modified (&optional arg) "Mark buffer on this line as unmodified (no changes to save)." - (interactive) + (interactive "P") (save-excursion (set-buffer (Buffer-menu-buffer t)) - (set-buffer-modified-p nil)) + (set-buffer-modified-p arg)) (save-excursion (beginning-of-line) (forward-char 1) - (if (looking-at "\\*") + (if (= (char-after (point)) (if arg ? ?*)) (let ((buffer-read-only nil)) (delete-char 1) - (insert ? ))))) + (insert (if arg ?* ? )))))) (defun Buffer-menu-execute () "Save and/or delete buffers marked with \\<Buffer-menu-mode-map>\\[Buffer-menu-save] or \\<Buffer-menu-mode-map>\\[Buffer-menu-delete] commands." |