aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTassilo Horn2013-12-20 16:18:50 +0100
committerTassilo Horn2013-12-20 16:18:50 +0100
commit2cd12d2869d4b084b299269afff16afbec351a74 (patch)
tree99431892a36fb92d2bc3b6f7f352d23aa160fe6b
parent75a1e0347184743a79d96c01cb83cb681700cead (diff)
downloademacs-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/ChangeLog4
-rw-r--r--doc/emacs/buffers.texi32
-rw-r--r--etc/NEWS1
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 @@
12013-12-20 Tassilo Horn <tsdh@gnu.org> 12013-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
611the buffers distinct names. The usual method for making buffer names 611the buffers distinct names. The default method
612unique adds @samp{<2>}, @samp{<3>}, etc. to the end of the buffer 612(@code{uniquify-buffer-name-style} set to
613names (all but one of them). 613@code{post-forward-angle-brackets}) for making buffer names unique
614adds @samp{<dir1>}, @samp{<dir2>}, etc. to the end of the buffer
615names.
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
617buffer name. To select one, customize the variable 619one, 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
621file's directory name at the beginning of the buffer name; using this 623directory name at the beginning of the buffer name; using this method,
622method, buffers visiting the files @file{/u/rms/tmp/Makefile} and 624buffers 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}.
625of @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
628buffers @samp{Makefile|tmp} and @samp{Makefile|zaphod}, and the 629buffers @samp{Makefile|tmp} and @samp{Makefile|zaphod}. The default
630method @code{post-forward-angle-brackets} is like @code{post-forward}
631except 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
632name is not enough to distinguish two files; then @code{reverse} puts 635name is not enough to distinguish two files; then @code{reverse} puts
633the directory names in reverse order, so that @file{/top/middle/file} 636the directory names in reverse order, so that @file{/top/middle/file}
634becomes @samp{file\middle\top}, while @code{post-forward} puts them in 637becomes @samp{file\middle\top}, while @code{post-forward} puts them in
635forward order after the file name, as in @samp{file|top/middle}. 638forward 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
640names simply get a @samp{<2>} etc. prepended. This used to be the
641default 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
638name is not very important if you are going to @emph{look} at the 644name is not very important if you are going to @emph{look} at the
diff --git a/etc/NEWS b/etc/NEWS
index f6c3e9cc052..6693c986201 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -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.