emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Inconsistent defaults for uniquify


From: Matthias Meulien
Subject: [PATCH] Inconsistent defaults for uniquify
Date: Sun, 08 Dec 2013 23:20:36 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

After:

  emacs -q

in the Options menu I can see that `Use Directory Names in Buffer Names' is checked. Then:

  M-! mkdir a; mkdir b; touch a/test; touch b/test
  C-xC-f a/test
  C-xC-f b/test

Then there are two buffers named `test|a' and `test|b'. Uncheck `Use...' in the Options menu and check again `Use...' in the Options menu. Now buffers are named `a/test' and `b/test'. The buffer name style has changed!!

Line 12227 of `menu-bar.el' and line 96 of uniquify.el define different defaults for `uniquify-buffer-name-style'.

diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el
index 13c4c36..38fe5ab 100644
--- a/lisp/menu-bar.el
+++ b/lisp/menu-bar.el
@@ -1226,7 +1226,7 @@ mail status in mode line"))
       (require 'uniquify)
       (setq uniquify-buffer-name-style
             (if (not uniquify-buffer-name-style)
-                'forward))))
+                'post-forward))))

    (bindings--define-key menu [edit-options-separator]
      menu-bar-separator)

--
Matthias



reply via email to

[Prev in Thread] Current Thread [Next in Thread]