diff options
| author | Tassilo Horn | 2013-12-20 16:18:50 +0100 |
|---|---|---|
| committer | Tassilo Horn | 2013-12-20 16:18:50 +0100 |
| commit | 2cd12d2869d4b084b299269afff16afbec351a74 (patch) | |
| tree | 99431892a36fb92d2bc3b6f7f352d23aa160fe6b | |
| parent | 75a1e0347184743a79d96c01cb83cb681700cead (diff) | |
| download | emacs-2cd12d2869d4b084b299269afff16afbec351a74.tar.gz emacs-2cd12d2869d4b084b299269afff16afbec351a74.zip | |
Document buffer name uniquification changes.
* doc/emacs/buffers.texi: Document buffer name uniquification changes.
| -rw-r--r-- | doc/emacs/ChangeLog | 4 | ||||
| -rw-r--r-- | doc/emacs/buffers.texi | 32 | ||||
| -rw-r--r-- | etc/NEWS | 1 |
3 files changed, 23 insertions, 14 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index f63f2f5fa69..0eddd0d1954 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog | |||
| @@ -1,11 +1,13 @@ | |||
| 1 | 2013-12-20 Tassilo Horn <tsdh@gnu.org> | 1 | 2013-12-20 Tassilo Horn <tsdh@gnu.org> |
| 2 | 2 | ||
| 3 | * buffers.texi: Document buffer name uniquification changes. | ||
| 4 | |||
| 3 | * indent.texi: Document that `electric-indent-mode' is enabled by | 5 | * indent.texi: Document that `electric-indent-mode' is enabled by |
| 4 | default. | 6 | default. |
| 5 | 7 | ||
| 6 | * display.texi (Cursor Display): Document `blink-cursor-blinks'. | 8 | * display.texi (Cursor Display): Document `blink-cursor-blinks'. |
| 7 | 9 | ||
| 8 | * buffers.texi: Update list-buffers "screeshop" to show Messages | 10 | * buffers.texi: Update list-buffers "screeshot" to show Messages |
| 9 | as major-mode. | 11 | as major-mode. |
| 10 | 12 | ||
| 11 | * entering.texi: Document `initial-buffer-choice' changes. | 13 | * entering.texi: Document `initial-buffer-choice' changes. |
diff --git a/doc/emacs/buffers.texi b/doc/emacs/buffers.texi index 9e5f996aae0..516eedca772 100644 --- a/doc/emacs/buffers.texi +++ b/doc/emacs/buffers.texi | |||
| @@ -608,31 +608,37 @@ convenient to switch between buffers. | |||
| 608 | @cindex unique buffer names | 608 | @cindex unique buffer names |
| 609 | @cindex directories in buffer names | 609 | @cindex directories in buffer names |
| 610 | When several buffers visit identically-named files, Emacs must give | 610 | When several buffers visit identically-named files, Emacs must give |
| 611 | the buffers distinct names. The usual method for making buffer names | 611 | the buffers distinct names. The default method |
| 612 | unique adds @samp{<2>}, @samp{<3>}, etc. to the end of the buffer | 612 | (@code{uniquify-buffer-name-style} set to |
| 613 | names (all but one of them). | 613 | @code{post-forward-angle-brackets}) for making buffer names unique |
| 614 | adds @samp{<dir1>}, @samp{<dir2>}, etc. to the end of the buffer | ||
| 615 | names. | ||
| 614 | 616 | ||
| 615 | @vindex uniquify-buffer-name-style | 617 | @vindex uniquify-buffer-name-style |
| 616 | Other methods work by adding parts of each file's directory to the | 618 | There are several styles to make buffer names unique. To select |
| 617 | buffer name. To select one, customize the variable | 619 | one, customize the variable @code{uniquify-buffer-name-style} |
| 618 | @code{uniquify-buffer-name-style} (@pxref{Easy Customization}). | 620 | (@pxref{Easy Customization}). |
| 619 | 621 | ||
| 620 | To begin with, the @code{forward} naming method includes part of the | 622 | The @code{forward} naming method includes part of the file's |
| 621 | file's directory name at the beginning of the buffer name; using this | 623 | directory name at the beginning of the buffer name; using this method, |
| 622 | method, buffers visiting the files @file{/u/rms/tmp/Makefile} and | 624 | buffers visiting the files @file{/u/rms/tmp/Makefile} and |
| 623 | @file{/usr/projects/zaphod/Makefile} would be named | 625 | @file{/usr/projects/zaphod/Makefile} would be named |
| 624 | @samp{tmp/Makefile} and @samp{zaphod/Makefile}, respectively (instead | 626 | @samp{tmp/Makefile} and @samp{zaphod/Makefile}. |
| 625 | of @samp{Makefile} and @samp{Makefile<2>}). | ||
| 626 | 627 | ||
| 627 | In contrast, the @code{post-forward} naming method would call the | 628 | In contrast, the @code{post-forward} naming method would call the |
| 628 | buffers @samp{Makefile|tmp} and @samp{Makefile|zaphod}, and the | 629 | buffers @samp{Makefile|tmp} and @samp{Makefile|zaphod}. The default |
| 630 | method @code{post-forward-angle-brackets} is like @code{post-forward} | ||
| 631 | except that it prepends the unique path in angle brackets. The | ||
| 629 | @code{reverse} naming method would call them @samp{Makefile\tmp} and | 632 | @code{reverse} naming method would call them @samp{Makefile\tmp} and |
| 630 | @samp{Makefile\zaphod}. The nontrivial difference between | 633 | @samp{Makefile\zaphod}. The nontrivial difference between |
| 631 | @code{post-forward} and @code{reverse} occurs when just one directory | 634 | @code{post-forward} and @code{reverse} occurs when just one directory |
| 632 | name is not enough to distinguish two files; then @code{reverse} puts | 635 | name is not enough to distinguish two files; then @code{reverse} puts |
| 633 | the directory names in reverse order, so that @file{/top/middle/file} | 636 | the directory names in reverse order, so that @file{/top/middle/file} |
| 634 | becomes @samp{file\middle\top}, while @code{post-forward} puts them in | 637 | becomes @samp{file\middle\top}, while @code{post-forward} puts them in |
| 635 | forward order after the file name, as in @samp{file|top/middle}. | 638 | forward order after the file name, as in @samp{file|top/middle}. If |
| 639 | @code{uniquify-buffer-name-style} is set to @code{nil}, the buffer | ||
| 640 | names simply get a @samp{<2>} etc. prepended. This used to be the | ||
| 641 | default behavior in Emacs versions up to 24.4. | ||
| 636 | 642 | ||
| 637 | Which rule to follow for putting the directory names in the buffer | 643 | Which rule to follow for putting the directory names in the buffer |
| 638 | name is not very important if you are going to @emph{look} at the | 644 | name is not very important if you are going to @emph{look} at the |
| @@ -225,6 +225,7 @@ Czech typography rules. To globally enable this feature, evaluate: | |||
| 225 | +++ | 225 | +++ |
| 226 | ** `electric-indent-mode' is enabled by default. | 226 | ** `electric-indent-mode' is enabled by default. |
| 227 | 227 | ||
| 228 | +++ | ||
| 228 | ** Uniquify is enabled by default with post-forward-angle-brackets style. | 229 | ** Uniquify is enabled by default with post-forward-angle-brackets style. |
| 229 | 230 | ||
| 230 | ** Command `rectangle-mark-mode' bound to C-x SPC makes a rectangular region. | 231 | ** Command `rectangle-mark-mode' bound to C-x SPC makes a rectangular region. |