diff options
| author | Juri Linkov | 2013-12-12 02:42:16 +0200 |
|---|---|---|
| committer | Juri Linkov | 2013-12-12 02:42:16 +0200 |
| commit | d5ccb7be025ddc5a6ac8c5291d89596b78d9745c (patch) | |
| tree | 6294a8832e9953b8ce72f30be4d396daf0255c31 | |
| parent | 7204a2e666b34d8b309b7b8568c88032468e207e (diff) | |
| download | emacs-d5ccb7be025ddc5a6ac8c5291d89596b78d9745c.tar.gz emacs-d5ccb7be025ddc5a6ac8c5291d89596b78d9745c.zip | |
* 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
| -rw-r--r-- | doc/emacs/buffers.texi | 3 | ||||
| -rw-r--r-- | etc/NEWS | 2 | ||||
| -rw-r--r-- | lisp/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/menu-bar.el | 3 | ||||
| -rw-r--r-- | lisp/uniquify.el | 3 |
5 files changed, 13 insertions, 6 deletions
diff --git a/doc/emacs/buffers.texi b/doc/emacs/buffers.texi index 2fadb7b4910..a62f2bdac8d 100644 --- a/doc/emacs/buffers.texi +++ b/doc/emacs/buffers.texi | |||
| @@ -614,8 +614,7 @@ names (all but one of them). | |||
| 614 | 614 | ||
| 615 | @vindex uniquify-buffer-name-style | 615 | @vindex uniquify-buffer-name-style |
| 616 | Other methods work by adding parts of each file's directory to the | 616 | Other methods work by adding parts of each file's directory to the |
| 617 | buffer name. To select one, load the library @file{uniquify} (e.g., | 617 | buffer name. To select one, customize the variable |
| 618 | using @code{(require 'uniquify)}), and customize the variable | ||
| 619 | @code{uniquify-buffer-name-style} (@pxref{Easy Customization}). | 618 | @code{uniquify-buffer-name-style} (@pxref{Easy Customization}). |
| 620 | 619 | ||
| 621 | To begin with, the @code{forward} naming method includes part of the | 620 | To begin with, the @code{forward} naming method includes part of the |
| @@ -205,7 +205,7 @@ Czech typography rules. To globally enable this feature, evaluate: | |||
| 205 | 205 | ||
| 206 | ** `electric-indent-mode' is enabled by default. | 206 | ** `electric-indent-mode' is enabled by default. |
| 207 | 207 | ||
| 208 | ** Uniquify is enabled by default. | 208 | ** Uniquify is enabled by default with post-forward-angle-brackets style. |
| 209 | 209 | ||
| 210 | ** Command `rectangle-mark-mode' bound to C-x SPC makes a rectangular region. | 210 | ** Command `rectangle-mark-mode' bound to C-x SPC makes a rectangular region. |
| 211 | Most commands are still unaware of it, but kill/yank do work on the rectangle. | 211 | Most commands are still unaware of it, but kill/yank do work on the rectangle. |
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7db22e734cc..7ec6750720b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2013-12-12 Juri Linkov <juri@jurta.org> | ||
| 2 | |||
| 3 | * uniquify.el (uniquify-buffer-name-style): Change default to | ||
| 4 | `post-forward-angle-brackets'. | ||
| 5 | |||
| 6 | * menu-bar.el (menu-bar-options-menu): Don't require preloaded | ||
| 7 | `uniquify'. Change default to `post-forward-angle-brackets'. | ||
| 8 | |||
| 1 | 2013-12-11 Glenn Morris <rgm@gnu.org> | 9 | 2013-12-11 Glenn Morris <rgm@gnu.org> |
| 2 | 10 | ||
| 3 | * emacs-lisp/package.el (finder-list-matches): | 11 | * emacs-lisp/package.el (finder-list-matches): |
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el index 9e267d26c9b..1f9d66f3738 100644 --- a/lisp/menu-bar.el +++ b/lisp/menu-bar.el | |||
| @@ -1223,10 +1223,9 @@ mail status in mode line")) | |||
| 1223 | "Use Directory Names in Buffer Names" | 1223 | "Use Directory Names in Buffer Names" |
| 1224 | "Directory name in buffer names (uniquify) %s" | 1224 | "Directory name in buffer names (uniquify) %s" |
| 1225 | "Uniquify buffer names by adding parent directory names" | 1225 | "Uniquify buffer names by adding parent directory names" |
| 1226 | (require 'uniquify) | ||
| 1227 | (setq uniquify-buffer-name-style | 1226 | (setq uniquify-buffer-name-style |
| 1228 | (if (not uniquify-buffer-name-style) | 1227 | (if (not uniquify-buffer-name-style) |
| 1229 | 'forward)))) | 1228 | 'post-forward-angle-brackets)))) |
| 1230 | 1229 | ||
| 1231 | (bindings--define-key menu [edit-options-separator] | 1230 | (bindings--define-key menu [edit-options-separator] |
| 1232 | menu-bar-separator) | 1231 | menu-bar-separator) |
diff --git a/lisp/uniquify.el b/lisp/uniquify.el index b7bb4c73879..a52ed613941 100644 --- a/lisp/uniquify.el +++ b/lisp/uniquify.el | |||
| @@ -93,7 +93,7 @@ | |||
| 93 | :group 'files) | 93 | :group 'files) |
| 94 | 94 | ||
| 95 | 95 | ||
| 96 | (defcustom uniquify-buffer-name-style 'post-forward | 96 | (defcustom uniquify-buffer-name-style 'post-forward-angle-brackets |
| 97 | "If non-nil, buffer names are uniquified with parts of directory name. | 97 | "If non-nil, buffer names are uniquified with parts of directory name. |
| 98 | The value determines the buffer name style and is one of `forward', | 98 | The value determines the buffer name style and is one of `forward', |
| 99 | `reverse', `post-forward', or `post-forward-angle-brackets'. | 99 | `reverse', `post-forward', or `post-forward-angle-brackets'. |
| @@ -111,6 +111,7 @@ of `uniquify-strip-common-suffix'." | |||
| 111 | (const post-forward) | 111 | (const post-forward) |
| 112 | (const post-forward-angle-brackets) | 112 | (const post-forward-angle-brackets) |
| 113 | (const :tag "standard Emacs behavior (nil)" nil)) | 113 | (const :tag "standard Emacs behavior (nil)" nil)) |
| 114 | :version "24.4" | ||
| 114 | :require 'uniquify | 115 | :require 'uniquify |
| 115 | :group 'uniquify) | 116 | :group 'uniquify) |
| 116 | 117 | ||