aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2010-03-25 01:53:30 -0400
committerChong Yidong2010-03-25 01:53:30 -0400
commit9d30a9f45e3c9b60b2e5c6816ba26d1ee0de718e (patch)
tree3f4687243f77887be4c08ec43b682903aef2db67
parentf79a01db3876557cde3112ca87381164ceac7741 (diff)
downloademacs-9d30a9f45e3c9b60b2e5c6816ba26d1ee0de718e.tar.gz
emacs-9d30a9f45e3c9b60b2e5c6816ba26d1ee0de718e.zip
* simple.el (append-to-buffer): Fix last change.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/simple.el4
2 files changed, 6 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 4cfb8549b46..715f6fccba2 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12010-03-25 Chong Yidong <cyd@stupidchicken.com>
2
3 * simple.el (append-to-buffer): Fix last change.
4
12010-03-24 Chong Yidong <cyd@stupidchicken.com> 52010-03-24 Chong Yidong <cyd@stupidchicken.com>
2 6
3 * simple.el (append-to-buffer): Ensure that point is preserved if 7 * simple.el (append-to-buffer): Ensure that point is preserved if
diff --git a/lisp/simple.el b/lisp/simple.el
index 2adf4756dca..35001a694df 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -3472,8 +3472,8 @@ START and END specify the portion of the current buffer to be copied."
3472 (let* ((append-to (get-buffer-create buffer)) 3472 (let* ((append-to (get-buffer-create buffer))
3473 (windows (get-buffer-window-list append-to t t)) 3473 (windows (get-buffer-window-list append-to t t))
3474 point) 3474 point)
3475 (with-current-buffer append-to 3475 (save-excursion
3476 (save-excursion 3476 (with-current-buffer append-to
3477 (setq point (point)) 3477 (setq point (point))
3478 (barf-if-buffer-read-only) 3478 (barf-if-buffer-read-only)
3479 (insert-buffer-substring oldbuf start end) 3479 (insert-buffer-substring oldbuf start end)