diff options
author | Miles Bader <miles@gnu.org> | 2007-11-11 00:56:44 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 2007-11-11 00:56:44 +0000 |
commit | f23d76bdefbd4c06e14d69e99e50d35ce91c8226 (patch) | |
tree | ded28d1da6df2d0135514bac83074f4ca1c9099a /lisp/desktop.el | |
parent | e2d092da5980a7d05a5428074f8eb4925fa801e8 (diff) | |
parent | a457417ee5ba797ab1c91d35ee957bb7a7f8d4b6 (diff) | |
download | emacs-f23d76bdefbd4c06e14d69e99e50d35ce91c8226.tar.gz |
Merge from emacs--devo--0
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-283
Diffstat (limited to 'lisp/desktop.el')
-rw-r--r-- | lisp/desktop.el | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/lisp/desktop.el b/lisp/desktop.el index dd0e6adac3f..6054099bb4d 100644 --- a/lisp/desktop.el +++ b/lisp/desktop.el @@ -135,6 +135,8 @@ ;;; Code: +(defvar uniquify-managed) + (defvar desktop-file-version "206" "Version number of desktop file format. Written into the desktop file and used at desktop read to provide @@ -204,7 +206,7 @@ the normal hook `desktop-not-loaded-hook' is run." (const :tag "Don't load" nil) (const :tag "Ask the user" ask)) :group 'desktop - :version "23.1") + :version "22.2") (defcustom desktop-base-file-name (convert-standard-filename ".emacs.desktop") @@ -219,7 +221,7 @@ the normal hook `desktop-not-loaded-hook' is run." "Name of lock file for Emacs desktop, excluding the directory part." :type 'file :group 'desktop - :version "23.1") + :version "22.2") (defcustom desktop-path '("." "~") "List of directories to search for the desktop file. @@ -253,7 +255,7 @@ May be used to deal with accidental multiple Emacs jobs." :type 'hook :group 'desktop :options '(desktop-save-mode-off save-buffers-kill-emacs) - :version "23.1") + :version "22.2") (defcustom desktop-after-read-hook nil "Normal hook run after a successful `desktop-read'. @@ -454,7 +456,8 @@ Furthermore the major mode function must be autoloaded.") (defcustom desktop-minor-mode-table '((auto-fill-function auto-fill-mode) (vc-mode nil) - (vc-dired-mode nil)) + (vc-dired-mode nil) + (erc-track-minor-mode nil)) "Table mapping minor mode variables to minor mode functions. Each entry has the form (NAME RESTORE-FUNCTION). NAME is the name of the buffer-local variable indicating that the minor @@ -653,7 +656,9 @@ is nil, ask the user where to save the desktop." (list ;; basic information (desktop-file-name (buffer-file-name) desktop-dirname) - (buffer-name) + (if (bound-and-true-p uniquify-managed) + (uniquify-item-base (car uniquify-managed)) + (buffer-name)) major-mode ;; minor modes (let (ret) @@ -1150,7 +1155,7 @@ directory DIRNAME." (setq desktop-first-buffer result)) (set-buffer result) (unless (equal (buffer-name) desktop-buffer-name) - (rename-buffer desktop-buffer-name)) + (rename-buffer desktop-buffer-name t)) ;; minor modes (cond ((equal '(t) desktop-buffer-minor-modes) ; backwards compatible (auto-fill-mode 1)) |