diff options
| author | Juanma Barranquero | 2007-06-20 10:12:44 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2007-06-20 10:12:44 +0000 |
| commit | 794855cae23e94965b648d7ef559296bfa9282f7 (patch) | |
| tree | d681c805c3857c2094f46ae99241da9a0c7f8d90 | |
| parent | d7504a3f57b763d2957f79979e416e0fdabccd88 (diff) | |
| download | emacs-794855cae23e94965b648d7ef559296bfa9282f7.tar.gz emacs-794855cae23e94965b648d7ef559296bfa9282f7.zip | |
(desktop-read): Run `desktop-not-loaded-hook' in the directory
where the desktop file was found, as the docstring says.
(desktop-kill): Use `read-directory-name'.
| -rw-r--r-- | lisp/ChangeLog | 20 | ||||
| -rw-r--r-- | lisp/desktop.el | 6 |
2 files changed, 15 insertions, 11 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 0e0631a07ce..f644b355137 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,9 +1,15 @@ | |||
| 1 | 2007-06-20 Juanma Barranquero <lekktu@gmail.com> | ||
| 2 | |||
| 3 | * desktop.el (desktop-read): Run `desktop-not-loaded-hook' in the | ||
| 4 | directory where the desktop file was found, as the docstring says. | ||
| 5 | (desktop-kill): Use `read-directory-name'. | ||
| 6 | |||
| 1 | 2007-06-20 Alan Mackenzie <acm@muc.de> | 7 | 2007-06-20 Alan Mackenzie <acm@muc.de> |
| 2 | 8 | ||
| 3 | * progmodes/cc-mode.el (c-remove-any-local-eval-or-mode-variables): | 9 | * progmodes/cc-mode.el (c-remove-any-local-eval-or-mode-variables): |
| 4 | When removing lines, also remove the \n. Correction of patch of | 10 | When removing lines, also remove the \n. Correction of patch of |
| 5 | 2007-04-21. | 11 | 2007-04-21. |
| 6 | 12 | ||
| 7 | 2007-06-20 Martin Rudalics <rudalics@gmx.at> | 13 | 2007-06-20 Martin Rudalics <rudalics@gmx.at> |
| 8 | 14 | ||
| 9 | * mouse.el (mouse-drag-mode-line-1): Quit mouse tracking when | 15 | * mouse.el (mouse-drag-mode-line-1): Quit mouse tracking when |
| @@ -35,11 +41,11 @@ | |||
| 35 | (vc-hg-register): New function. | 41 | (vc-hg-register): New function. |
| 36 | (vc-hg-checkout): Likewise. | 42 | (vc-hg-checkout): Likewise. |
| 37 | 43 | ||
| 38 | 2007-06-20 Reto Zimmermann <reto@gnu.org> | 44 | 2007-06-20 Reto Zimmermann <reto@gnu.org> |
| 39 | 45 | ||
| 40 | * progmodes/vera-mode.el: New file. | 46 | * progmodes/vera-mode.el: New file. |
| 41 | 47 | ||
| 42 | 2007-06-19 Ivan Kanis <apple@kanis.eu> | 48 | 2007-06-19 Ivan Kanis <apple@kanis.eu> |
| 43 | 49 | ||
| 44 | * vc-hg.el: New file. | 50 | * vc-hg.el: New file. |
| 45 | 51 | ||
| @@ -122,8 +128,8 @@ | |||
| 122 | 2007-06-14 Michael Kifer <kifer@cs.stonybrook.edu> | 128 | 2007-06-14 Michael Kifer <kifer@cs.stonybrook.edu> |
| 123 | 129 | ||
| 124 | * viper.el (viper-describe-key-ad, viper-describe-key-briefly-ad): | 130 | * viper.el (viper-describe-key-ad, viper-describe-key-briefly-ad): |
| 125 | different advices for Emacs and XEmacs. Compile them conditionally. | 131 | Different advices for Emacs and XEmacs. Compile them conditionally. |
| 126 | (viper-version): belated version change. | 132 | (viper-version): Belated version change. |
| 127 | 133 | ||
| 128 | 2007-06-14 Juanma Barranquero <lekktu@gmail.com> | 134 | 2007-06-14 Juanma Barranquero <lekktu@gmail.com> |
| 129 | 135 | ||
| @@ -327,7 +333,7 @@ | |||
| 327 | (desktop-kill): Tell `desktop-save' that this is the last save. | 333 | (desktop-kill): Tell `desktop-save' that this is the last save. |
| 328 | Release the lock afterwards. | 334 | Release the lock afterwards. |
| 329 | (desktop-buffer-info): New function. | 335 | (desktop-buffer-info): New function. |
| 330 | (desktop-save): Use it. Run `desktop-save-hook' where the doc | 336 | (desktop-save): Use it. Run `desktop-save-hook' where the doc |
| 331 | says to. Detect conflicts, and manage the lock. | 337 | says to. Detect conflicts, and manage the lock. |
| 332 | (desktop-read): Detect conflicts. Manage the lock. | 338 | (desktop-read): Detect conflicts. Manage the lock. |
| 333 | 339 | ||
| @@ -337,7 +343,7 @@ | |||
| 337 | 343 | ||
| 338 | * emulation/tpu-edt.el (tpu-gold-map): Rename from GOLD-map. | 344 | * emulation/tpu-edt.el (tpu-gold-map): Rename from GOLD-map. |
| 339 | (tpu-lucid-emacs-p): Remove. Use (featurep 'xemacs) instead. | 345 | (tpu-lucid-emacs-p): Remove. Use (featurep 'xemacs) instead. |
| 340 | (CSI-map, GOLD-CSI-map, GOLD-SS3-map, SS3-map): Delete vars. | 346 | (CSI-map, GOLD-CSI-map, GOLD-SS3-map, SS3-map): Delete vars. |
| 341 | (tpu-gold-map, tpu-global-map): Add all the SS3 and CSI bindings, using | 347 | (tpu-gold-map, tpu-global-map): Add all the SS3 and CSI bindings, using |
| 342 | keysyms rather than byte sequences. | 348 | keysyms rather than byte sequences. |
| 343 | (tpu-copy-keyfile): Don't force the user to use tpu-mapper.el. | 349 | (tpu-copy-keyfile): Don't force the user to use tpu-mapper.el. |
diff --git a/lisp/desktop.el b/lisp/desktop.el index 191d1dbc291..e709a6394e3 100644 --- a/lisp/desktop.el +++ b/lisp/desktop.el | |||
| @@ -626,9 +626,7 @@ is nil, ask the user where to save the desktop." | |||
| 626 | (setq desktop-dirname | 626 | (setq desktop-dirname |
| 627 | (file-name-as-directory | 627 | (file-name-as-directory |
| 628 | (expand-file-name | 628 | (expand-file-name |
| 629 | (call-interactively | 629 | (read-directory-name "Directory for desktop file: " nil nil t))))) |
| 630 | (lambda (dir) | ||
| 631 | (interactive "DDirectory for desktop file: ") dir)))))) | ||
| 632 | (condition-case err | 630 | (condition-case err |
| 633 | (desktop-save desktop-dirname t) | 631 | (desktop-save desktop-dirname t) |
| 634 | (file-error | 632 | (file-error |
| @@ -964,9 +962,9 @@ It returns t if a desktop file was loaded, nil otherwise." | |||
| 964 | (not (y-or-n-p (format "Warning: desktop file appears to be in use by PID %s.\n\ | 962 | (not (y-or-n-p (format "Warning: desktop file appears to be in use by PID %s.\n\ |
| 965 | Using it may cause conflicts. Use it anyway? " owner))))) | 963 | Using it may cause conflicts. Use it anyway? " owner))))) |
| 966 | (progn | 964 | (progn |
| 967 | (setq desktop-dirname nil) | ||
| 968 | (let ((default-directory desktop-dirname)) | 965 | (let ((default-directory desktop-dirname)) |
| 969 | (run-hooks 'desktop-not-loaded-hook)) | 966 | (run-hooks 'desktop-not-loaded-hook)) |
| 967 | (setq desktop-dirname nil) | ||
| 970 | (message "Desktop file in use; not loaded.")) | 968 | (message "Desktop file in use; not loaded.")) |
| 971 | (desktop-lazy-abort) | 969 | (desktop-lazy-abort) |
| 972 | ;; Evaluate desktop buffer and remember when it was modified. | 970 | ;; Evaluate desktop buffer and remember when it was modified. |