diff options
| author | Stefan Monnier | 2010-03-30 22:53:53 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2010-03-30 22:53:53 -0400 |
| commit | 85626eefd2b3cd63d3b3a24a9831bb0a1a7380b6 (patch) | |
| tree | 24bc8aa7f71fce821f8d6297c815ad9db079cb88 | |
| parent | 857387516c3cea919953b39ab170b1ff40f77934 (diff) | |
| download | emacs-85626eefd2b3cd63d3b3a24a9831bb0a1a7380b6.tar.gz emacs-85626eefd2b3cd63d3b3a24a9831bb0a1a7380b6.zip | |
* simple.el (append-to-buffer): Simplify.
| -rw-r--r-- | lisp/ChangeLog | 53 | ||||
| -rw-r--r-- | lisp/simple.el | 24 |
2 files changed, 41 insertions, 36 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e98ea81ee12..09879e7913b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * simple.el (append-to-buffer): Simplify. | ||
| 4 | |||
| 1 | 2010-03-31 Tomas Abrahamsson <tab@lysator.liu.se> | 5 | 2010-03-31 Tomas Abrahamsson <tab@lysator.liu.se> |
| 2 | 6 | ||
| 3 | * textmodes/artist.el (artist-mode): Fix typo in docstring. | 7 | * textmodes/artist.el (artist-mode): Fix typo in docstring. |
| @@ -10,7 +14,7 @@ | |||
| 10 | 14 | ||
| 11 | * language/indian.el (devanagari-composable-pattern) | 15 | * language/indian.el (devanagari-composable-pattern) |
| 12 | (tamil-composable-pattern, kannada-composable-pattern) | 16 | (tamil-composable-pattern, kannada-composable-pattern) |
| 13 | (malayalam-composable-pattern): Adjusted for the new Unicode | 17 | (malayalam-composable-pattern): Adjust for the new Unicode |
| 14 | specification. | 18 | specification. |
| 15 | (bengali-composable-pattern, gurmukhi-composable-pattern) | 19 | (bengali-composable-pattern, gurmukhi-composable-pattern) |
| 16 | (gujarati-composable-pattern, oriya-composable-pattern) | 20 | (gujarati-composable-pattern, oriya-composable-pattern) |
| @@ -103,8 +107,8 @@ | |||
| 103 | Chong Yidong <cyd@stupidchicken.com> | 107 | Chong Yidong <cyd@stupidchicken.com> |
| 104 | 108 | ||
| 105 | * subr.el: Extend progress reporters to perform "spinning". | 109 | * subr.el: Extend progress reporters to perform "spinning". |
| 106 | (progress-reporter-update, progress-reporter-do-update): Handle | 110 | (progress-reporter-update, progress-reporter-do-update): |
| 107 | non-numeric value arguments. | 111 | Handle non-numeric value arguments. |
| 108 | (progress-reporter--pulse-characters): New var. | 112 | (progress-reporter--pulse-characters): New var. |
| 109 | 113 | ||
| 110 | 2010-03-28 Chong Yidong <cyd@stupidchicken.com> | 114 | 2010-03-28 Chong Yidong <cyd@stupidchicken.com> |
| @@ -119,9 +123,9 @@ | |||
| 119 | 2010-03-27 Nick Roberts <nickrob@snap.net.nz> | 123 | 2010-03-27 Nick Roberts <nickrob@snap.net.nz> |
| 120 | 124 | ||
| 121 | Restore GDB/MI fuctionality removed by 2009-12-29T07:15:34Z!nickrob@snap.net.nz. | 125 | Restore GDB/MI fuctionality removed by 2009-12-29T07:15:34Z!nickrob@snap.net.nz. |
| 122 | * lisp/progmodes/gdb-mi.el: Restored. | 126 | * lisp/progmodes/gdb-mi.el: Restore. |
| 123 | * lisp/progmodes/gdb-ui.el: Removed. | 127 | * lisp/progmodes/gdb-ui.el: Remove. |
| 124 | * lisp/progmodes/gud.el: Re-accommodated for gdb-mi.el. | 128 | * lisp/progmodes/gud.el: Re-accommodate for gdb-mi.el. |
| 125 | 129 | ||
| 126 | 2010-03-25 Glenn Morris <rgm@gnu.org> | 130 | 2010-03-25 Glenn Morris <rgm@gnu.org> |
| 127 | 131 | ||
| @@ -436,11 +440,13 @@ | |||
| 436 | 440 | ||
| 437 | * vc-bzr.el (vc-bzr-checkin): Pass extra arguments to the commit | 441 | * vc-bzr.el (vc-bzr-checkin): Pass extra arguments to the commit |
| 438 | command. | 442 | command. |
| 439 | (log-edit-extra-flags, log-edit-before-checkin-process): New declarations. | 443 | (log-edit-extra-flags, log-edit-before-checkin-process): |
| 444 | New declarations. | ||
| 440 | 445 | ||
| 441 | * vc-hg.el (vc-hg-checkin): Pass extra arguments to the commit | 446 | * vc-hg.el (vc-hg-checkin): Pass extra arguments to the commit |
| 442 | command. | 447 | command. |
| 443 | (log-edit-extra-flags, log-edit-before-checkin-process): New declarations. | 448 | (log-edit-extra-flags, log-edit-before-checkin-process): |
| 449 | New declarations. | ||
| 444 | (vc-hg-log-edit-mode): New derived mode. | 450 | (vc-hg-log-edit-mode): New derived mode. |
| 445 | 451 | ||
| 446 | * vc-arch.el (vc-arch-checkin): | 452 | * vc-arch.el (vc-arch-checkin): |
| @@ -539,8 +545,8 @@ | |||
| 539 | (widget-field-value-set): New fun. | 545 | (widget-field-value-set): New fun. |
| 540 | (editable-field): Use it. | 546 | (editable-field): Use it. |
| 541 | (widget-field-value-get): Clean up unused var. | 547 | (widget-field-value-get): Clean up unused var. |
| 542 | (widget-color-value-create, widget-color--choose-action): New | 548 | (widget-color-value-create, widget-color--choose-action): |
| 543 | funs. Allow using list-colors-display to choose color. | 549 | New funs. Allow using list-colors-display to choose color. |
| 544 | 550 | ||
| 545 | 2010-03-12 Chong Yidong <cyd@stupidchicken.com> | 551 | 2010-03-12 Chong Yidong <cyd@stupidchicken.com> |
| 546 | 552 | ||
| @@ -551,8 +557,7 @@ | |||
| 551 | (custom-buffer-create-internal): Add custom-apropos search field. | 557 | (custom-buffer-create-internal): Add custom-apropos search field. |
| 552 | (custom-add-parent-links): Don't display parent doc. | 558 | (custom-add-parent-links): Don't display parent doc. |
| 553 | (custom-group-value-create): Don't sort top-level custom group. | 559 | (custom-group-value-create): Don't sort top-level custom group. |
| 554 | (custom-magic-value-create): Show visibility button before option | 560 | (custom-magic-value-create): Show visibility button before option name. |
| 555 | name. | ||
| 556 | 561 | ||
| 557 | (custom-variable-state): New fun, from custom-variable-state-set. | 562 | (custom-variable-state): New fun, from custom-variable-state-set. |
| 558 | (custom-variable-state-set): Use it. | 563 | (custom-variable-state-set): Use it. |
| @@ -690,8 +695,8 @@ | |||
| 690 | 695 | ||
| 691 | 2010-03-07 Štěpán Němec <stepnem@gmail.com> (tiny change) | 696 | 2010-03-07 Štěpán Němec <stepnem@gmail.com> (tiny change) |
| 692 | 697 | ||
| 693 | * vc-git.el (vc-git-annotate-extract-revision-at-line): Use | 698 | * vc-git.el (vc-git-annotate-extract-revision-at-line): |
| 694 | vc-git-root as default directory for revision path (Bug#5657). | 699 | Use vc-git-root as default directory for revision path (Bug#5657). |
| 695 | 700 | ||
| 696 | 2010-03-06 Chong Yidong <cyd@stupidchicken.com> | 701 | 2010-03-06 Chong Yidong <cyd@stupidchicken.com> |
| 697 | 702 | ||
| @@ -780,8 +785,8 @@ | |||
| 780 | 2010-02-28 Michael Albinus <michael.albinus@gmx.de> | 785 | 2010-02-28 Michael Albinus <michael.albinus@gmx.de> |
| 781 | 786 | ||
| 782 | * net/dbus.el (dbus-introspect, dbus-get-property) | 787 | * net/dbus.el (dbus-introspect, dbus-get-property) |
| 783 | (dbus-set-property, dbus-get-all-properties): Use | 788 | (dbus-set-property, dbus-get-all-properties): |
| 784 | `dbus-call-method' when noninteractive. (Bug#5645) | 789 | Use `dbus-call-method' when noninteractive. (Bug#5645) |
| 785 | 790 | ||
| 786 | 2010-02-28 Chong Yidong <cyd@stupidchicken.com> | 791 | 2010-02-28 Chong Yidong <cyd@stupidchicken.com> |
| 787 | 792 | ||
| @@ -2166,9 +2171,9 @@ | |||
| 2166 | 2171 | ||
| 2167 | 2009-12-18 Ulf Jasper <ulf.jasper@web.de> | 2172 | 2009-12-18 Ulf Jasper <ulf.jasper@web.de> |
| 2168 | 2173 | ||
| 2169 | * calendar/icalendar.el (icalendar--convert-tz-offset): Fixed | 2174 | * calendar/icalendar.el (icalendar--convert-tz-offset): |
| 2170 | timezone names. | 2175 | Fix timezone names. |
| 2171 | (icalendar--convert-tz-offset): Fixed the "last-day-problem". | 2176 | (icalendar--convert-tz-offset): Fix the "last-day-problem". |
| 2172 | (icalendar--add-diary-entry): Remove the trailing blank that | 2177 | (icalendar--add-diary-entry): Remove the trailing blank that |
| 2173 | diary-make-entry inserts. | 2178 | diary-make-entry inserts. |
| 2174 | 2179 | ||
| @@ -2185,7 +2190,7 @@ | |||
| 2185 | (tramp-advice-file-expand-wildcards): Remove it. | 2190 | (tramp-advice-file-expand-wildcards): Remove it. |
| 2186 | 2191 | ||
| 2187 | * net/tramp-compat.el (top): Autoload `tramp-handle-file-remote-p'. | 2192 | * net/tramp-compat.el (top): Autoload `tramp-handle-file-remote-p'. |
| 2188 | (tramp-advice-file-expand-wildcards): Moved from tramp.el. | 2193 | (tramp-advice-file-expand-wildcards): Move from tramp.el. |
| 2189 | Activate advice for older GNU Emacs versions. (Bug#5237) | 2194 | Activate advice for older GNU Emacs versions. (Bug#5237) |
| 2190 | 2195 | ||
| 2191 | 2009-12-17 Juanma Barranquero <lekktu@gmail.com> | 2196 | 2009-12-17 Juanma Barranquero <lekktu@gmail.com> |
| @@ -2202,12 +2207,12 @@ | |||
| 2202 | 2207 | ||
| 2203 | * files.el (hack-local-variables-filter): While ignoring duplicates, | 2208 | * files.el (hack-local-variables-filter): While ignoring duplicates, |
| 2204 | don't take `mode' into account. | 2209 | don't take `mode' into account. |
| 2205 | (hack-local-variables-filter, hack-dir-local-variables): Don't | 2210 | (hack-local-variables-filter, hack-dir-local-variables): |
| 2206 | remove duplicate `mode' from local-variables-alist (like `eval'). | 2211 | Don't remove duplicate `mode' from local-variables-alist (like `eval'). |
| 2207 | 2212 | ||
| 2208 | 2009-12-17 Juri Linkov <juri@jurta.org> | 2213 | 2009-12-17 Juri Linkov <juri@jurta.org> |
| 2209 | 2214 | ||
| 2210 | Make `dired-diff' more safe. (Bug#5225) | 2215 | Make `dired-diff' safer. (Bug#5225) |
| 2211 | 2216 | ||
| 2212 | * dired-aux.el (dired-diff): Signal an error when `file' equals to | 2217 | * dired-aux.el (dired-diff): Signal an error when `file' equals to |
| 2213 | `current' or when `file' is a directory of the `current' file. | 2218 | `current' or when `file' is a directory of the `current' file. |
| @@ -2404,7 +2409,7 @@ | |||
| 2404 | 2409 | ||
| 2405 | 2009-12-09 Vivek Dasmohapatra <vivek@etla.org> | 2410 | 2009-12-09 Vivek Dasmohapatra <vivek@etla.org> |
| 2406 | 2411 | ||
| 2407 | Drop some properties to avoid surprises. | 2412 | Drop some properties to avoid surprises (bug#5002). |
| 2408 | * htmlfontify.el (hfy-ignored-properties): New defcustom. | 2413 | * htmlfontify.el (hfy-ignored-properties): New defcustom. |
| 2409 | (hfy-fontify-buffer): Use it. | 2414 | (hfy-fontify-buffer): Use it. |
| 2410 | 2415 | ||
diff --git a/lisp/simple.el b/lisp/simple.el index 35001a694df..ea70e6cbd06 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -3468,18 +3468,18 @@ START and END specify the portion of the current buffer to be copied." | |||
| 3468 | (interactive | 3468 | (interactive |
| 3469 | (list (read-buffer "Append to buffer: " (other-buffer (current-buffer) t)) | 3469 | (list (read-buffer "Append to buffer: " (other-buffer (current-buffer) t)) |
| 3470 | (region-beginning) (region-end))) | 3470 | (region-beginning) (region-end))) |
| 3471 | (let ((oldbuf (current-buffer))) | 3471 | (let* ((oldbuf (current-buffer)) |
| 3472 | (let* ((append-to (get-buffer-create buffer)) | 3472 | (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 | (save-excursion | 3475 | (save-excursion |
| 3476 | (with-current-buffer append-to | 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) |
| 3480 | (dolist (window windows) | 3480 | (dolist (window windows) |
| 3481 | (when (= (window-point window) point) | 3481 | (when (= (window-point window) point) |
| 3482 | (set-window-point window (point))))))))) | 3482 | (set-window-point window (point)))))))) |
| 3483 | 3483 | ||
| 3484 | (defun prepend-to-buffer (buffer start end) | 3484 | (defun prepend-to-buffer (buffer start end) |
| 3485 | "Prepend to specified buffer the text of the region. | 3485 | "Prepend to specified buffer the text of the region. |