unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Matthias Meulien <orontee@gmail.com>
To: emacs-devel@gnu.org
Subject: [PATCH] Inconsistent defaults for uniquify
Date: Sun, 08 Dec 2013 23:20:36 +0100	[thread overview]
Message-ID: <87wqjfugqz.fsf@gmail.com> (raw)

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	other threads:[~2013-12-08 22:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-08 22:20 Matthias Meulien [this message]
2013-12-10 23:52 ` Inconsistent defaults for uniquify Juri Linkov
2013-12-11  4:13   ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wqjfugqz.fsf@gmail.com \
    --to=orontee@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).