diff options
| author | Jan Djärv | 2010-04-27 08:45:43 +0200 |
|---|---|---|
| committer | Jan Djärv | 2010-04-27 08:45:43 +0200 |
| commit | 7dd7fbb97528d964a25566a55b590a5a5774809b (patch) | |
| tree | 87633a2565ca227be7f79ecb988fc6d0e0f6898d /lisp | |
| parent | 62fe59e783e94ffd25130a37391999fd4f918b3f (diff) | |
| download | emacs-7dd7fbb97528d964a25566a55b590a5a5774809b.tar.gz emacs-7dd7fbb97528d964a25566a55b590a5a5774809b.zip | |
desktop.el (desktop-kill): ask-if-new: Ask if desktop file exists,
but we aren't using it.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/desktop.el | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e6e8dcabadb..fce9ebf350f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-04-27 Jan Djärv <jan.h.d@swipnet.se> | ||
| 2 | |||
| 3 | * desktop.el (desktop-kill): ask-if-new: Ask if desktop file exists, | ||
| 4 | but we aren't using it. | ||
| 5 | |||
| 1 | 2010-04-25 Jan Djärv <jan.h.d@swipnet.se> | 6 | 2010-04-25 Jan Djärv <jan.h.d@swipnet.se> |
| 2 | 7 | ||
| 3 | * tool-bar.el (tool-bar-local-item-from-menu): Revert unintended | 8 | * tool-bar.el (tool-bar-local-item-from-menu): Revert unintended |
diff --git a/lisp/desktop.el b/lisp/desktop.el index 0e6153cfe47..5c2e6d9b2f5 100644 --- a/lisp/desktop.el +++ b/lisp/desktop.el | |||
| @@ -620,7 +620,10 @@ is nil, ask the user where to save the desktop." | |||
| 620 | (when (and desktop-save-mode | 620 | (when (and desktop-save-mode |
| 621 | (let ((exists (file-exists-p (desktop-full-file-name)))) | 621 | (let ((exists (file-exists-p (desktop-full-file-name)))) |
| 622 | (or (eq desktop-save t) | 622 | (or (eq desktop-save t) |
| 623 | (and exists (memq desktop-save '(ask-if-new if-exists))) | 623 | (and exists (eq desktop-save 'if-exists)) |
| 624 | ;; If it exists, but we aren't using it, we are going | ||
| 625 | ;; to ask for a new directory below. | ||
| 626 | (and exists desktop-dirname (eq desktop-save 'ask-if-new)) | ||
| 624 | (and | 627 | (and |
| 625 | (or (memq desktop-save '(ask ask-if-new)) | 628 | (or (memq desktop-save '(ask ask-if-new)) |
| 626 | (and exists (eq desktop-save 'ask-if-exists))) | 629 | (and exists (eq desktop-save 'ask-if-exists))) |