diff options
| author | Glenn Morris | 2013-10-09 21:03:11 -0400 |
|---|---|---|
| committer | Glenn Morris | 2013-10-09 21:03:11 -0400 |
| commit | 9271e90e7349a9fa03edebe72e6baa5fd5a0e624 (patch) | |
| tree | d3bdaf727081ae9559c42a3312551667d90d422e | |
| parent | f3606ef766bcec86789316a05949f1e67a51e7c1 (diff) | |
| download | emacs-9271e90e7349a9fa03edebe72e6baa5fd5a0e624.tar.gz emacs-9271e90e7349a9fa03edebe72e6baa5fd5a0e624.zip | |
* lisp/desktop.el (desktop-save): Default to saving in .emacs.d,
since PWD is no longer in desktop-path by default.
Fixes: debbugs:15319
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/desktop.el | 11 |
2 files changed, 11 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index fa3319c7a67..c939b9f6f89 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2013-10-10 Glenn Morris <rgm@gnu.org> | 1 | 2013-10-10 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * desktop.el (desktop-save): Default to saving in .emacs.d, | ||
| 4 | since PWD is no longer in desktop-path by default. (Bug#15319) | ||
| 5 | |||
| 3 | * menu-bar.el (menu-bar-options-menu): Remove text-mode auto-fill, | 6 | * menu-bar.el (menu-bar-options-menu): Remove text-mode auto-fill, |
| 4 | now that text mode has a menu with the same entry. | 7 | now that text mode has a menu with the same entry. |
| 5 | (menu-bar-text-mode-auto-fill): Remove now unused func. | 8 | (menu-bar-text-mode-auto-fill): Remove now unused func. |
diff --git a/lisp/desktop.el b/lisp/desktop.el index 1bbc33cb244..79c06f15fb6 100644 --- a/lisp/desktop.el +++ b/lisp/desktop.el | |||
| @@ -1,7 +1,6 @@ | |||
| 1 | ;;; desktop.el --- save partial status of Emacs when killed -*- lexical-binding: t -*- | 1 | ;;; desktop.el --- save partial status of Emacs when killed -*- lexical-binding: t -*- |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1993-1995, 1997, 2000-2013 Free Software Foundation, | 3 | ;; Copyright (C) 1993-1995, 1997, 2000-2013 Free Software Foundation, Inc. |
| 4 | ;; Inc. | ||
| 5 | 4 | ||
| 6 | ;; Author: Morten Welinder <terra@diku.dk> | 5 | ;; Author: Morten Welinder <terra@diku.dk> |
| 7 | ;; Keywords: convenience | 6 | ;; Keywords: convenience |
| @@ -922,7 +921,13 @@ Parameter DIRNAME specifies where to save the desktop file. | |||
| 922 | Optional parameter RELEASE says whether we're done with this desktop. | 921 | Optional parameter RELEASE says whether we're done with this desktop. |
| 923 | If AUTO-SAVE is non-nil, compare the saved contents to the one last saved, | 922 | If AUTO-SAVE is non-nil, compare the saved contents to the one last saved, |
| 924 | and don't save the buffer if they are the same." | 923 | and don't save the buffer if they are the same." |
| 925 | (interactive "DDirectory to save desktop file in: ") | 924 | (interactive (list |
| 925 | ;; Or should we just use (car desktop-path)? | ||
| 926 | (let ((default (if (member "." desktop-path) | ||
| 927 | default-directory | ||
| 928 | user-emacs-directory))) | ||
| 929 | (read-directory-name "Directory to save desktop file in: " | ||
| 930 | default default t)))) | ||
| 926 | (setq desktop-dirname (file-name-as-directory (expand-file-name dirname))) | 931 | (setq desktop-dirname (file-name-as-directory (expand-file-name dirname))) |
| 927 | (save-excursion | 932 | (save-excursion |
| 928 | (let ((eager desktop-restore-eager) | 933 | (let ((eager desktop-restore-eager) |