Mercurial > emacs
changeset 59162:ced0821d5f7c
(buffer-disable-undo): Fix previous change.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 28 Dec 2004 05:11:03 +0000 |
parents | 0d5e992b6c18 |
children | a88c62585e76 |
files | lisp/simple.el |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/simple.el Tue Dec 28 05:10:37 2004 +0000 +++ b/lisp/simple.el Tue Dec 28 05:11:03 2004 +0000 @@ -1328,7 +1328,7 @@ "Make BUFFER stop keeping undo information. No argument or nil as argument means do this for the current buffer." (interactive) - (with-current-buffer (get-buffer buffer) + (with-current-buffer (if buffer (get-buffer buffer) (current-buffer)) (setq buffer-undo-list t undo-list-saved nil)))