summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2004-12-28 05:11:26 +0000
committerRichard M. Stallman <rms@gnu.org>2004-12-28 05:11:26 +0000
commit0d808a6319780244f9a8ef8f58ef1070be0c551e (patch)
tree7e8bc9e0de884c07a420260172b427cdaf7d820d /lisp
parentf4170ea1f003d1638ba81d35d8771a85bd2054f1 (diff)
downloademacs-0d808a6319780244f9a8ef8f58ef1070be0c551e.tar.gz
emacs-0d808a6319780244f9a8ef8f58ef1070be0c551e.tar.bz2
emacs-0d808a6319780244f9a8ef8f58ef1070be0c551e.zip
(buffer-disable-undo): Fix previous change.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/simple.el2
2 files changed, 5 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index c69d9a8cec3..80edd505a9e 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
+2004-12-28 Richard M. Stallman <rms@gnu.org>
+
+ * simple.el (buffer-disable-undo): Fix previous change.
+
2004-12-27 Masatake YAMATO <jet@gyve.org>
* hexl.el (hexlify-buffer): Remove fontification here.
diff --git a/lisp/simple.el b/lisp/simple.el
index b2c6d9df866..65a667f482e 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -1328,7 +1328,7 @@ as an argument limits undo to changes within the current region."
"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)))