aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-06-21 23:59:11 +0000
committerRichard M. Stallman1997-06-21 23:59:11 +0000
commit4219b27be43fabe30000c38b9e0451264af41100 (patch)
tree00c4a928ca463d0436c852529d3e03d29078193f
parentd0acc4ea1e8480fb31748a571680dd5f1d84babe (diff)
downloademacs-4219b27be43fabe30000c38b9e0451264af41100.tar.gz
emacs-4219b27be43fabe30000c38b9e0451264af41100.zip
(delay-uniquify-rationalize-file-buffer-names): Remove this hook here,
if we won't call delayed-uniquify-rationalize-file-buffer-names. (uniquify-buffer-name-style): Default value is nil.
-rw-r--r--lisp/uniquify.el13
1 files changed, 8 insertions, 5 deletions
diff --git a/lisp/uniquify.el b/lisp/uniquify.el
index 4366f8d7ab3..1eb2dfeb418 100644
--- a/lisp/uniquify.el
+++ b/lisp/uniquify.el
@@ -34,8 +34,9 @@
34;; Makefile|zaphod, respectively (instead of Makefile and Makefile<2>). 34;; Makefile|zaphod, respectively (instead of Makefile and Makefile<2>).
35;; Other buffer name styles are also available. 35;; Other buffer name styles are also available.
36 36
37;; To use this file, just load it; or add (require 'uniquify) to your .emacs. 37;; To use this file, do (require 'uniquify)
38;; To disable it after loading, set variable uniquify-buffer-name-style to nil. 38;; and set uniquify-buffer-name-style to one of its non-nil alternative values.
39
39;; For other options, see "User-visible variables", below. 40;; For other options, see "User-visible variables", below.
40 41
41;; A version of uniquify.el that works under Emacs 18, Emacs 19, XEmacs, 42;; A version of uniquify.el that works under Emacs 18, Emacs 19, XEmacs,
@@ -89,7 +90,7 @@
89 :group 'applications) 90 :group 'applications)
90 91
91 92
92(defcustom uniquify-buffer-name-style 'post-forward 93(defcustom uniquify-buffer-name-style nil
93 "*If non-nil, buffer names are uniquified with parts of directory name. 94 "*If non-nil, buffer names are uniquified with parts of directory name.
94The value determines the buffer name style and is one of `forward', 95The value determines the buffer name style and is one of `forward',
95`reverse', `post-forward' (the default), or `post-forward-angle-brackets'. 96`reverse', `post-forward' (the default), or `post-forward-angle-brackets'.
@@ -104,7 +105,7 @@ would have the following buffer names in the various styles:
104 (const reverse) 105 (const reverse)
105 (const post-forward) 106 (const post-forward)
106 (const podt-forward-angle-brackets) 107 (const podt-forward-angle-brackets)
107 (const nil)) 108 (const :tag "standard Emacs behavior (nil)" nil))
108 :group 'uniquify) 109 :group 'uniquify)
109 110
110(defcustom uniquify-after-kill-buffer-p nil 111(defcustom uniquify-after-kill-buffer-p nil
@@ -412,7 +413,9 @@ For use on, eg, `kill-buffer-hook', to rationalize *after* buffer deletion."
412 (if (and uniquify-buffer-name-style 413 (if (and uniquify-buffer-name-style
413 uniquify-after-kill-buffer-p) 414 uniquify-after-kill-buffer-p)
414 (add-hook 'post-command-hook 415 (add-hook 'post-command-hook
415 'delayed-uniquify-rationalize-file-buffer-names))) 416 'delayed-uniquify-rationalize-file-buffer-names)
417 (remove-hook 'kill-buffer-hook
418 'delay-uniquify-rationalize-file-buffer-names)))
416 419
417(defun delayed-uniquify-rationalize-file-buffer-names () 420(defun delayed-uniquify-rationalize-file-buffer-names ()
418 "Rerationalize buffer names and remove self from `post-command-hook'. 421 "Rerationalize buffer names and remove self from `post-command-hook'.