diff options
| author | Chong Yidong | 2010-03-25 01:53:30 -0400 |
|---|---|---|
| committer | Chong Yidong | 2010-03-25 01:53:30 -0400 |
| commit | 9d30a9f45e3c9b60b2e5c6816ba26d1ee0de718e (patch) | |
| tree | 3f4687243f77887be4c08ec43b682903aef2db67 | |
| parent | f79a01db3876557cde3112ca87381164ceac7741 (diff) | |
| download | emacs-9d30a9f45e3c9b60b2e5c6816ba26d1ee0de718e.tar.gz emacs-9d30a9f45e3c9b60b2e5c6816ba26d1ee0de718e.zip | |
* simple.el (append-to-buffer): Fix last change.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/simple.el | 4 |
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 @@ | |||
| 1 | 2010-03-25 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * simple.el (append-to-buffer): Fix last change. | ||
| 4 | |||
| 1 | 2010-03-24 Chong Yidong <cyd@stupidchicken.com> | 5 | 2010-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) |