]> git.eshelyaron.com Git - emacs.git/commitdiff
(desktop-save): Save the buffer name if the uniquified base name is empty.
authorJuanma Barranquero <lekktu@gmail.com>
Fri, 29 Feb 2008 03:03:57 +0000 (03:03 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Fri, 29 Feb 2008 03:03:57 +0000 (03:03 +0000)
lisp/ChangeLog
lisp/desktop.el

index aed4be7a1d93d323ea5a2784287450671659b57f..34a15ce44d14d38732db6f320905cac0d0f68297 100644 (file)
@@ -1,8 +1,12 @@
+2008-02-29  Juanma Barranquero  <lekktu@gmail.com>
+
+       * desktop.el (desktop-save): Save the buffer name if the
+       uniquified base name is empty.
+
 2008-02-29  Nick Roberts  <nickrob@snap.net.nz>
 
-       * progmodes/gdb-ui.el (gdb-info-stack-custom): Apply
-       function-name-face correctly when user has
-       "set print address off".
+       * progmodes/gdb-ui.el (gdb-info-stack-custom): Apply function-name-face
+       correctly when user has "set print address off".
 
 2008-02-28  Juanma Barranquero  <lekktu@gmail.com>
 
index f65c68ec4e6af8dd7f08101734060ad8c36a3d0e..ce10b19894f4503130c023c0a38c0a26c5de0c18 100644 (file)
@@ -897,8 +897,9 @@ See also `desktop-base-file-name'."
                          "desktop-append-buffer-args")
                        " "
                        desktop-file-version)
-               ;; If the base name is non-nil, we save it instead of the buffer name
-               (when base (setcar (nthcdr 1 l) base))
+               ;; If there's a non-empty base name, we save it instead of the buffer name
+               (when (and base (not (string= base "")))
+                 (setcar (nthcdr 1 l) base))
                (dolist (e l)
                  (insert "\n  " (desktop-value-to-string e)))
                (insert ")\n\n"))))