all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* uniquify
@ 2014-06-20 22:35 Dennis Yurichev
  2014-06-21  4:42 ` uniquify Alex Kost
       [not found] ` <mailman.4046.1403325770.1147.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 8+ messages in thread
From: Dennis Yurichev @ 2014-06-20 22:35 UTC (permalink / raw)
  To: help-gnu-emacs

Hi.

I added this to my .emacs:
===================================================
(require 'uniquify)
(setq uniquify-buffer-name-style 'forward)
===================================================
But nothing happens, buffer names still has <n> at the end.

What/where should I check? 
I've got GNU Emacs 24.3.1 (i386-mingw-nt6.1.7601).

-- 
-- http://yurichev.com


^ permalink raw reply	[flat|nested] 8+ messages in thread
* uniquify
@ 2010-02-14  3:20 Sean Sieger
  2010-02-14 15:22 ` uniquify Sean Sieger
  0 siblings, 1 reply; 8+ messages in thread
From: Sean Sieger @ 2010-02-14  3:20 UTC (permalink / raw)
  To: help-gnu-emacs

Huh.  I guess I would have thought that whether a buffer is a Dired one
or file one, uniquify would follow the rule that I have configured in
.emacs:  (setq uniquify-buffer-name-style 'forward).

I had inadvertantly visited a Dired buffer of the same name as the file
that I was on my way to visit, then visited the file, whose buffer name
had appended to it, `<2>'.

To sooth myself, I then visited two files of the same name in different
directories and the buffer names had the expected directory-difference
prepended to them.

Uh, my question is, does anyone else perceive this as a little clunky?
I could never perceive the <2>, <3> -thing as clarifying and was pleased
to get rid of it---or so I thought---with uniquify ... thanks.





^ permalink raw reply	[flat|nested] 8+ messages in thread
* Uniquify
@ 2003-05-09 13:36 Stefan Monnier
  0 siblings, 0 replies; 8+ messages in thread
From: Stefan Monnier @ 2003-05-09 13:36 UTC (permalink / raw)



OK, I think i'm finally done with my uniquify hacking and there's
two things still left for me to do:

- Revert the patch that made Gnus' "(un)sent" buffers unmanaged.  The new
  code should handle those buffers correctly: either they'll be unmanaged
  anyway (if Gnus never calls either `create-file-buffer' on them or
  `rename-buffer' with a non-nil `unique' argument) or they'll be managed
  but uniquify will still preserve their name.  I.e. if the buffer-file-name
  is ~/foo/drafts/7 and the buffer-name was "*unsent bar*", uniquify
  will at worst use a buffer-name of the form "*unsent bar*|foo/drafts"

- Change the default of uniquify-after-kill-buffer-p to t (we could
  also change its name, but I don't care enough to do it myself).
  The docstring of uniquify-after-kill-buffer-p used to say that it's
  a dangerous feature because it can change buffer names behind packages'
  backs and that if packages remember their buffers by name (rather
  than directly by buffer) there can be trouble.
  I removed that text because the text applies to the whole of uniquify
  rather than just to uniquify-after-kill-buffer-p.  OTOH, it is true
  that uniquify-after-kill-buffer-p made the problem slightly worse because
  it caused all buffer-names to be reconsidered after a kill-buffer,
  including buffers which had never been uniquified before.  This has
  now been fixed, so I think we can safely change the default.


	Stefan


--- uniquify.el.~1.49.~	Fri May  9 09:17:05 2003
+++ uniquify.el	Fri May  9 09:19:34 2003
@@ -111,7 +111,7 @@
 		(const :tag "standard Emacs behavior (nil)" nil))
   :require 'uniquify)
 
-(defcustom uniquify-after-kill-buffer-p nil
+(defcustom uniquify-after-kill-buffer-p t
   "If non-nil, rerationalize buffer names after a buffer has been killed."
   :type 'boolean)
 
@@ -122,7 +122,7 @@
   :type 'boolean)
 
 ;; The default value matches certain Gnus buffers.
-(defcustom uniquify-ignore-buffers-re "^\\*\\(un\\)?sent "
+(defcustom uniquify-ignore-buffers-re nil
   "*Regular expression matching buffer names that should not be uniquified.
 For instance, set this to \"^draft-[0-9]+$\" to avoid having uniquify rename
 draft buffers even if `uniquify-after-kill-buffer-p' is non-nil and the

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-06-21 22:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-20 22:35 uniquify Dennis Yurichev
2014-06-21  4:42 ` uniquify Alex Kost
     [not found] ` <mailman.4046.1403325770.1147.help-gnu-emacs@gnu.org>
2014-06-21  5:52   ` uniquify Dennis Yurichev
2014-06-21 20:04   ` uniquify Dennis Yurichev
2014-06-21 22:01   ` uniquify Dennis Yurichev
  -- strict thread matches above, loose matches on Subject: below --
2010-02-14  3:20 uniquify Sean Sieger
2010-02-14 15:22 ` uniquify Sean Sieger
2003-05-09 13:36 Uniquify Stefan Monnier

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.