diff options
| author | Juanma Barranquero | 2007-07-12 22:40:00 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2007-07-12 22:40:00 +0000 |
| commit | 9e29c91ca36289e7aee08b739fcaf3877b63d82f (patch) | |
| tree | 33e535665e0fec32bd24d2468a4359d3603db762 | |
| parent | 9c0a6042d2d9ad43dc2bc1f66f969ca35963003d (diff) | |
| download | emacs-9e29c91ca36289e7aee08b739fcaf3877b63d82f.tar.gz emacs-9e29c91ca36289e7aee08b739fcaf3877b63d82f.zip | |
(desktop-buffer-info, desktop-save): Use `desktop-dirname' instead of `dirname'.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/desktop.el | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 0792291a4a3..2e3d60d70e1 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2007-07-12 Davis Herring <herring@lanl.gov> | ||
| 2 | |||
| 3 | * desktop.el (desktop-buffer-info, desktop-save): | ||
| 4 | Use `desktop-dirname' instead of `dirname'. | ||
| 5 | |||
| 1 | 2007-07-12 Paul Pogonyshev <pogonyshev@gmx.net> | 6 | 2007-07-12 Paul Pogonyshev <pogonyshev@gmx.net> |
| 2 | 7 | ||
| 3 | * progmodes/which-func.el (which-func-modes): Add `python-mode'. | 8 | * progmodes/which-func.el (which-func-modes): Add `python-mode'. |
| @@ -94,7 +99,6 @@ | |||
| 94 | * emacs-lisp/autoload.el (autoload-generate-file-autoloads): Be careful | 99 | * emacs-lisp/autoload.el (autoload-generate-file-autoloads): Be careful |
| 95 | with EOLs when generating MD5 checksums. | 100 | with EOLs when generating MD5 checksums. |
| 96 | 101 | ||
| 97 | |||
| 98 | * follow.el: Don't change the global map from the follow-mode-map | 102 | * follow.el: Don't change the global map from the follow-mode-map |
| 99 | defvar, but from the toplevel. Use easy-menu to unify the Emacs and | 103 | defvar, but from the toplevel. Use easy-menu to unify the Emacs and |
| 100 | XEmacs code. | 104 | XEmacs code. |
diff --git a/lisp/desktop.el b/lisp/desktop.el index e709a6394e3..4ee378adb06 100644 --- a/lisp/desktop.el +++ b/lisp/desktop.el | |||
| @@ -652,7 +652,7 @@ is nil, ask the user where to save the desktop." | |||
| 652 | (set-buffer buffer) | 652 | (set-buffer buffer) |
| 653 | (list | 653 | (list |
| 654 | ;; basic information | 654 | ;; basic information |
| 655 | (desktop-file-name (buffer-file-name) dirname) | 655 | (desktop-file-name (buffer-file-name) desktop-dirname) |
| 656 | (buffer-name) | 656 | (buffer-name) |
| 657 | major-mode | 657 | major-mode |
| 658 | ;; minor modes | 658 | ;; minor modes |
| @@ -673,7 +673,7 @@ is nil, ask the user where to save the desktop." | |||
| 673 | buffer-read-only | 673 | buffer-read-only |
| 674 | ;; auxiliary information | 674 | ;; auxiliary information |
| 675 | (when (functionp desktop-save-buffer) | 675 | (when (functionp desktop-save-buffer) |
| 676 | (funcall desktop-save-buffer dirname)) | 676 | (funcall desktop-save-buffer desktop-dirname)) |
| 677 | ;; local variables | 677 | ;; local variables |
| 678 | (let ((locals desktop-locals-to-save) | 678 | (let ((locals desktop-locals-to-save) |
| 679 | (loclist (buffer-local-variables)) | 679 | (loclist (buffer-local-variables)) |
| @@ -896,7 +896,7 @@ See also `desktop-base-file-name'." | |||
| 896 | (insert "\n " (desktop-value-to-string e))) | 896 | (insert "\n " (desktop-value-to-string e))) |
| 897 | (insert ")\n\n"))) | 897 | (insert ")\n\n"))) |
| 898 | 898 | ||
| 899 | (setq default-directory dirname) | 899 | (setq default-directory desktop-dirname) |
| 900 | (let ((coding-system-for-write 'emacs-mule)) | 900 | (let ((coding-system-for-write 'emacs-mule)) |
| 901 | (write-region (point-min) (point-max) (desktop-full-file-name) nil 'nomessage)) | 901 | (write-region (point-min) (point-max) (desktop-full-file-name) nil 'nomessage)) |
| 902 | ;; We remember when it was modified (which is presumably just now). | 902 | ;; We remember when it was modified (which is presumably just now). |