Commit 67aa22cb authored by Juanma Barranquero's avatar Juanma Barranquero
Browse files

(desktop-save): Save the buffer name if the uniquified base name is empty.

parent 79fd6168
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 Stefan Monnier <monnier@iro.umontreal.ca> 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
   
* diff-mode.el (diff-sanity-check-hunk): Only accept an empty line if * diff-mode.el (diff-sanity-check-hunk): Only accept an empty line if
...@@ -6,7 +11,7 @@ ...@@ -6,7 +11,7 @@
2008-02-28 Juri Linkov <juri@jurta.org> 2008-02-28 Juri Linkov <juri@jurta.org>
   
* startup.el (normal-splash-screen): Add argument `concise'. * startup.el (normal-splash-screen): Add argument `concise'.
Remove unused binding `prev-buffer'. Let-bind `splash-buffer' Remove unused binding `prev-buffer'. Let-bind `splash-buffer'
to the created buffer. If `concise' is non-nil, call to the created buffer. If `concise' is non-nil, call
`display-buffer', otherwise `switch-to-buffer'. Doc fix. `display-buffer', otherwise `switch-to-buffer'. Doc fix.
(display-startup-screen): Add argument `concise' to the call to (display-startup-screen): Add argument `concise' to the call to
...@@ -895,8 +895,9 @@ See also `desktop-base-file-name'." ...@@ -895,8 +895,9 @@ See also `desktop-base-file-name'."
"desktop-append-buffer-args") "desktop-append-buffer-args")
" " " "
desktop-file-version) desktop-file-version)
;; If the base name is non-nil, we save it instead of the buffer name ;; If there's a non-empty base name, we save it instead of the buffer name
(when base (setcar (nthcdr 1 l) base)) (when (and base (not (string= base "")))
(setcar (nthcdr 1 l) base))
(dolist (e l) (dolist (e l)
(insert "\n " (desktop-value-to-string e))) (insert "\n " (desktop-value-to-string e)))
(insert ")\n\n")))) (insert ")\n\n"))))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment