mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
desktop.el (desktop-kill): ask-if-new: Ask if desktop file exists,
but we aren't using it.
This commit is contained in:
parent
62fe59e783
commit
7dd7fbb975
2 changed files with 9 additions and 1 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2010-04-27 Jan Djärv <jan.h.d@swipnet.se>
|
||||
|
||||
* desktop.el (desktop-kill): ask-if-new: Ask if desktop file exists,
|
||||
but we aren't using it.
|
||||
|
||||
2010-04-25 Jan Djärv <jan.h.d@swipnet.se>
|
||||
|
||||
* tool-bar.el (tool-bar-local-item-from-menu): Revert unintended
|
||||
|
|
|
|||
|
|
@ -620,7 +620,10 @@ is nil, ask the user where to save the desktop."
|
|||
(when (and desktop-save-mode
|
||||
(let ((exists (file-exists-p (desktop-full-file-name))))
|
||||
(or (eq desktop-save t)
|
||||
(and exists (memq desktop-save '(ask-if-new if-exists)))
|
||||
(and exists (eq desktop-save 'if-exists))
|
||||
;; If it exists, but we aren't using it, we are going
|
||||
;; to ask for a new directory below.
|
||||
(and exists desktop-dirname (eq desktop-save 'ask-if-new))
|
||||
(and
|
||||
(or (memq desktop-save '(ask ask-if-new))
|
||||
(and exists (eq desktop-save 'ask-if-exists)))
|
||||
|
|
|
|||
Loading…
Reference in a new issue