diff options
| author | Juanma Barranquero | 2008-02-29 02:59:43 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2008-02-29 02:59:43 +0000 |
| commit | 67aa22cb2b64e3727070aa749b9199bce1218127 (patch) | |
| tree | 87185f172db6685929a29564f331241dd211b9f4 | |
| parent | 79fd61680608307ec1be4c53705b542d8d383778 (diff) | |
| download | emacs-67aa22cb2b64e3727070aa749b9199bce1218127.tar.gz emacs-67aa22cb2b64e3727070aa749b9199bce1218127.zip | |
(desktop-save): Save the buffer name if the uniquified base name is empty.
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/desktop.el | 5 |
2 files changed, 9 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 438e2b5f52a..eb80e96e331 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2008-02-29 Juanma Barranquero <lekktu@gmail.com> | ||
| 2 | |||
| 3 | * desktop.el (desktop-save): Save the buffer name if the | ||
| 4 | uniquified base name is empty. | ||
| 5 | |||
| 1 | 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 7 | ||
| 3 | * diff-mode.el (diff-sanity-check-hunk): Only accept an empty line if | 8 | * diff-mode.el (diff-sanity-check-hunk): Only accept an empty line if |
| @@ -6,7 +11,7 @@ | |||
| 6 | 2008-02-28 Juri Linkov <juri@jurta.org> | 11 | 2008-02-28 Juri Linkov <juri@jurta.org> |
| 7 | 12 | ||
| 8 | * startup.el (normal-splash-screen): Add argument `concise'. | 13 | * startup.el (normal-splash-screen): Add argument `concise'. |
| 9 | Remove unused binding `prev-buffer'. Let-bind `splash-buffer' | 14 | Remove unused binding `prev-buffer'. Let-bind `splash-buffer' |
| 10 | to the created buffer. If `concise' is non-nil, call | 15 | to the created buffer. If `concise' is non-nil, call |
| 11 | `display-buffer', otherwise `switch-to-buffer'. Doc fix. | 16 | `display-buffer', otherwise `switch-to-buffer'. Doc fix. |
| 12 | (display-startup-screen): Add argument `concise' to the call to | 17 | (display-startup-screen): Add argument `concise' to the call to |
diff --git a/lisp/desktop.el b/lisp/desktop.el index 8be86571f13..fbf9ed5c044 100644 --- a/lisp/desktop.el +++ b/lisp/desktop.el | |||
| @@ -895,8 +895,9 @@ See also `desktop-base-file-name'." | |||
| 895 | "desktop-append-buffer-args") | 895 | "desktop-append-buffer-args") |
| 896 | " " | 896 | " " |
| 897 | desktop-file-version) | 897 | desktop-file-version) |
| 898 | ;; If the base name is non-nil, we save it instead of the buffer name | 898 | ;; If there's a non-empty base name, we save it instead of the buffer name |
| 899 | (when base (setcar (nthcdr 1 l) base)) | 899 | (when (and base (not (string= base ""))) |
| 900 | (setcar (nthcdr 1 l) base)) | ||
| 900 | (dolist (e l) | 901 | (dolist (e l) |
| 901 | (insert "\n " (desktop-value-to-string e))) | 902 | (insert "\n " (desktop-value-to-string e))) |
| 902 | (insert ")\n\n")))) | 903 | (insert ")\n\n")))) |