diff options
| author | Lars Hansen | 2004-11-26 17:37:58 +0000 |
|---|---|---|
| committer | Lars Hansen | 2004-11-26 17:37:58 +0000 |
| commit | 48aa4dfc27547f0cd3ac183bb2046d3e7b954ae7 (patch) | |
| tree | dd35b6b664f41a30f093d8cdfc7d7d1fff1441a0 | |
| parent | 5ffc01b6bb32aa9f20cd95d1fef345b1d038dcd6 (diff) | |
| download | emacs-48aa4dfc27547f0cd3ac183bb2046d3e7b954ae7.tar.gz emacs-48aa4dfc27547f0cd3ac183bb2046d3e7b954ae7.zip | |
(desktop-read): Replace mapcar with mapc.
(desktop-create-buffer): Replace mapcar with mapc. Remove redundant piece of code.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/desktop.el | 7 |
2 files changed, 9 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 6d72765fdb6..51fb165e182 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2004-11-26 Lars Hansen <larsh@math.ku.dk> | ||
| 2 | |||
| 3 | * desktop.el (desktop-read): Replace mapcar with mapc. | ||
| 4 | (desktop-create-buffer): Replace mapcar with mapc. Remove | ||
| 5 | redundant piece of code. | ||
| 6 | |||
| 1 | 2004-11-27 Nick Roberts <nickrob@snap.net.nz> | 7 | 2004-11-27 Nick Roberts <nickrob@snap.net.nz> |
| 2 | 8 | ||
| 3 | * progmodes/gud.el (gud-display-line): Use display-buffer | 9 | * progmodes/gud.el (gud-display-line): Use display-buffer |
diff --git a/lisp/desktop.el b/lisp/desktop.el index 55ebd662df6..1e4fa67d199 100644 --- a/lisp/desktop.el +++ b/lisp/desktop.el | |||
| @@ -711,8 +711,8 @@ It returns t if a desktop file was loaded, nil otherwise." | |||
| 711 | ;; `desktop-create-buffer' puts buffers at end of the buffer list. | 711 | ;; `desktop-create-buffer' puts buffers at end of the buffer list. |
| 712 | ;; We want buffers existing prior to evaluating the desktop (and not reused) | 712 | ;; We want buffers existing prior to evaluating the desktop (and not reused) |
| 713 | ;; to be placed at the end of the buffer list, so we move them here. | 713 | ;; to be placed at the end of the buffer list, so we move them here. |
| 714 | (mapcar 'bury-buffer | 714 | (mapc 'bury-buffer |
| 715 | (nreverse (cdr (memq desktop-first-buffer (nreverse (buffer-list)))))) | 715 | (nreverse (cdr (memq desktop-first-buffer (nreverse (buffer-list)))))) |
| 716 | (switch-to-buffer (car (buffer-list))) | 716 | (switch-to-buffer (car (buffer-list))) |
| 717 | (run-hooks 'desktop-delay-hook) | 717 | (run-hooks 'desktop-delay-hook) |
| 718 | (setq desktop-delay-hook nil) | 718 | (setq desktop-delay-hook nil) |
| @@ -855,11 +855,10 @@ directory DIRNAME." | |||
| 855 | (setq desktop-buffer-ok-count (1+ desktop-buffer-ok-count)) | 855 | (setq desktop-buffer-ok-count (1+ desktop-buffer-ok-count)) |
| 856 | (setq desktop-buffer-fail-count (1+ desktop-buffer-fail-count)) | 856 | (setq desktop-buffer-fail-count (1+ desktop-buffer-fail-count)) |
| 857 | (setq result nil)) | 857 | (setq result nil)) |
| 858 | (unless (bufferp result) (setq result nil)) | ||
| 859 | ;; Restore buffer list order with new buffer at end. Don't change | 858 | ;; Restore buffer list order with new buffer at end. Don't change |
| 860 | ;; the order for old desktop files (old desktop module behaviour). | 859 | ;; the order for old desktop files (old desktop module behaviour). |
| 861 | (unless (< desktop-file-version 206) | 860 | (unless (< desktop-file-version 206) |
| 862 | (mapcar 'bury-buffer buffer-list) | 861 | (mapc 'bury-buffer buffer-list) |
| 863 | (when result (bury-buffer result))) | 862 | (when result (bury-buffer result))) |
| 864 | (when result | 863 | (when result |
| 865 | (unless (or desktop-first-buffer (< desktop-file-version 206)) | 864 | (unless (or desktop-first-buffer (< desktop-file-version 206)) |