* lisp/uniquify.el (uniquify-buffer-name-style): Change default to `post-forward-angle-brackets'.

* lisp/menu-bar.el (menu-bar-options-menu): Don't require preloaded `uniquify'.
Change default to `post-forward-angle-brackets'.

http://lists.gnu.org/archive/html/emacs-devel/2013-12/msg00317.html
This commit is contained in:
Juri Linkov 2013-12-12 02:42:16 +02:00
parent 7204a2e666
commit d5ccb7be02
5 changed files with 13 additions and 6 deletions

View file

@ -614,8 +614,7 @@ names (all but one of them).
@vindex uniquify-buffer-name-style @vindex uniquify-buffer-name-style
Other methods work by adding parts of each file's directory to the Other methods work by adding parts of each file's directory to the
buffer name. To select one, load the library @file{uniquify} (e.g., buffer name. To select one, customize the variable
using @code{(require 'uniquify)}), and customize the variable
@code{uniquify-buffer-name-style} (@pxref{Easy Customization}). @code{uniquify-buffer-name-style} (@pxref{Easy Customization}).
To begin with, the @code{forward} naming method includes part of the To begin with, the @code{forward} naming method includes part of the

View file

@ -205,7 +205,7 @@ Czech typography rules. To globally enable this feature, evaluate:
** `electric-indent-mode' is enabled by default. ** `electric-indent-mode' is enabled by default.
** Uniquify is enabled by default. ** Uniquify is enabled by default with post-forward-angle-brackets style.
** Command `rectangle-mark-mode' bound to C-x SPC makes a rectangular region. ** Command `rectangle-mark-mode' bound to C-x SPC makes a rectangular region.
Most commands are still unaware of it, but kill/yank do work on the rectangle. Most commands are still unaware of it, but kill/yank do work on the rectangle.

View file

@ -1,3 +1,11 @@
2013-12-12 Juri Linkov <juri@jurta.org>
* uniquify.el (uniquify-buffer-name-style): Change default to
`post-forward-angle-brackets'.
* menu-bar.el (menu-bar-options-menu): Don't require preloaded
`uniquify'. Change default to `post-forward-angle-brackets'.
2013-12-11 Glenn Morris <rgm@gnu.org> 2013-12-11 Glenn Morris <rgm@gnu.org>
* emacs-lisp/package.el (finder-list-matches): * emacs-lisp/package.el (finder-list-matches):

View file

@ -1223,10 +1223,9 @@ mail status in mode line"))
"Use Directory Names in Buffer Names" "Use Directory Names in Buffer Names"
"Directory name in buffer names (uniquify) %s" "Directory name in buffer names (uniquify) %s"
"Uniquify buffer names by adding parent directory names" "Uniquify buffer names by adding parent directory names"
(require 'uniquify)
(setq uniquify-buffer-name-style (setq uniquify-buffer-name-style
(if (not uniquify-buffer-name-style) (if (not uniquify-buffer-name-style)
'forward)))) 'post-forward-angle-brackets))))
(bindings--define-key menu [edit-options-separator] (bindings--define-key menu [edit-options-separator]
menu-bar-separator) menu-bar-separator)

View file

@ -93,7 +93,7 @@
:group 'files) :group 'files)
(defcustom uniquify-buffer-name-style 'post-forward (defcustom uniquify-buffer-name-style 'post-forward-angle-brackets
"If non-nil, buffer names are uniquified with parts of directory name. "If non-nil, buffer names are uniquified with parts of directory name.
The value determines the buffer name style and is one of `forward', The value determines the buffer name style and is one of `forward',
`reverse', `post-forward', or `post-forward-angle-brackets'. `reverse', `post-forward', or `post-forward-angle-brackets'.
@ -111,6 +111,7 @@ of `uniquify-strip-common-suffix'."
(const post-forward) (const post-forward)
(const post-forward-angle-brackets) (const post-forward-angle-brackets)
(const :tag "standard Emacs behavior (nil)" nil)) (const :tag "standard Emacs behavior (nil)" nil))
:version "24.4"
:require 'uniquify :require 'uniquify
:group 'uniquify) :group 'uniquify)