[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/desktop.el,v
From: |
Juanma Barranquero |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/desktop.el,v |
Date: |
Fri, 29 Feb 2008 03:02:25 +0000 |
CVSROOT: /cvsroot/emacs
Module name: emacs
Changes by: Juanma Barranquero <lektu> 08/02/29 03:02:25
Index: desktop.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/desktop.el,v
retrieving revision 1.123
retrieving revision 1.124
diff -u -b -r1.123 -r1.124
--- desktop.el 14 Feb 2008 14:34:59 -0000 1.123
+++ desktop.el 29 Feb 2008 03:02:25 -0000 1.124
@@ -897,8 +897,9 @@
"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"))))