aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2008-02-29 03:03:57 +0000
committerJuanma Barranquero2008-02-29 03:03:57 +0000
commitae4370a83c3ceb25f832d5cc19a4b4edfd56cd65 (patch)
treefc7f09aa25441f30a3c407a9772e5396d2ff7471
parent10cbc34ff812bbfd8abf174a6e88eb306114fa57 (diff)
downloademacs-ae4370a83c3ceb25f832d5cc19a4b4edfd56cd65.tar.gz
emacs-ae4370a83c3ceb25f832d5cc19a4b4edfd56cd65.zip
(desktop-save): Save the buffer name if the uniquified base name is empty.
-rw-r--r--lisp/ChangeLog10
-rw-r--r--lisp/desktop.el5
2 files changed, 10 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index aed4be7a1d9..34a15ce44d1 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,8 +1,12 @@
12008-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
12008-02-29 Nick Roberts <nickrob@snap.net.nz> 62008-02-29 Nick Roberts <nickrob@snap.net.nz>
2 7
3 * progmodes/gdb-ui.el (gdb-info-stack-custom): Apply 8 * progmodes/gdb-ui.el (gdb-info-stack-custom): Apply function-name-face
4 function-name-face correctly when user has 9 correctly when user has "set print address off".
5 "set print address off".
6 10
72008-02-28 Juanma Barranquero <lekktu@gmail.com> 112008-02-28 Juanma Barranquero <lekktu@gmail.com>
8 12
diff --git a/lisp/desktop.el b/lisp/desktop.el
index f65c68ec4e6..ce10b19894f 100644
--- a/lisp/desktop.el
+++ b/lisp/desktop.el
@@ -897,8 +897,9 @@ See also `desktop-base-file-name'."
897 "desktop-append-buffer-args") 897 "desktop-append-buffer-args")
898 " " 898 " "
899 desktop-file-version) 899 desktop-file-version)
900 ;; If the base name is non-nil, we save it instead of the buffer name 900 ;; If there's a non-empty base name, we save it instead of the buffer name
901 (when base (setcar (nthcdr 1 l) base)) 901 (when (and base (not (string= base "")))
902 (setcar (nthcdr 1 l) base))
902 (dolist (e l) 903 (dolist (e l)
903 (insert "\n " (desktop-value-to-string e))) 904 (insert "\n " (desktop-value-to-string e)))
904 (insert ")\n\n")))) 905 (insert ")\n\n"))))