aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorGlenn Morris2014-06-08 00:41:27 -0700
committerGlenn Morris2014-06-08 00:41:27 -0700
commit99d8aedf0d6ab3fff025f72daf1f9bd28b07a8d2 (patch)
tree98f15969887d9453ae88fd66eb4d1d1fa3eafa01 /lisp
parentb6542afeae56abe6b20019df63b76539728fca54 (diff)
downloademacs-99d8aedf0d6ab3fff025f72daf1f9bd28b07a8d2.tar.gz
emacs-99d8aedf0d6ab3fff025f72daf1f9bd28b07a8d2.zip
Doc edits re uniquify
* doc/emacs/buffers.texi (Uniquify): Copyedits. * doc/emacs/files.texi (Visiting): Update for uniquify changes. * doc/lispref/files.texi (Subroutines of Visiting): Mention uniquify. * doc/misc/vip.texi (Files): Defer to Emacs manual for uniquify details. * lisp/bookmark.el (bookmark-load): Doc fix. * lisp/uniquify.el (uniquify-buffer-name-style): Doc fix. * lisp/files.el: Comment. * etc/NEWS: Related edit.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/bookmark.el3
-rw-r--r--lisp/files.el2
-rw-r--r--lisp/uniquify.el30
4 files changed, 25 insertions, 15 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 6e89afc6715..66afe67a614 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12014-06-08 Glenn Morris <rgm@gnu.org>
2
3 * bookmark.el (bookmark-load):
4 * uniquify.el (uniquify-buffer-name-style): Doc fixes.
5
12014-06-06 Juri Linkov <juri@jurta.org> 62014-06-06 Juri Linkov <juri@jurta.org>
2 7
3 * desktop.el: Activate auto-saving on window configuration changes. 8 * desktop.el: Activate auto-saving on window configuration changes.
diff --git a/lisp/bookmark.el b/lisp/bookmark.el
index 5307cada0ac..eab2ea7144f 100644
--- a/lisp/bookmark.el
+++ b/lisp/bookmark.el
@@ -1420,8 +1420,7 @@ explicitly.
1420 1420
1421If you load a file containing bookmarks with the same names as 1421If you load a file containing bookmarks with the same names as
1422bookmarks already present in your Emacs, the new bookmarks will get 1422bookmarks already present in your Emacs, the new bookmarks will get
1423unique numeric suffixes \"<2>\", \"<3>\", ... following the same 1423unique numeric suffixes \"<2>\", \"<3>\", etc."
1424method buffers use to resolve name collisions."
1425 (interactive 1424 (interactive
1426 (list (read-file-name 1425 (list (read-file-name
1427 (format "Load bookmarks from: (%s) " 1426 (format "Load bookmarks from: (%s) "
diff --git a/lisp/files.el b/lisp/files.el
index 2e66a303dc6..718421b1899 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -1654,6 +1654,8 @@ killed."
1654 (let (kill-buffer-query-functions kill-buffer-hook) 1654 (let (kill-buffer-query-functions kill-buffer-hook)
1655 (kill-buffer obuf)))))) 1655 (kill-buffer obuf))))))
1656 1656
1657;; FIXME we really need to fold the uniquify stuff in here by default,
1658;; not using advice, and add it to the doc string.
1657(defun create-file-buffer (filename) 1659(defun create-file-buffer (filename)
1658 "Create a suitably named buffer for visiting FILENAME, and return it. 1660 "Create a suitably named buffer for visiting FILENAME, and return it.
1659FILENAME (sans directory) is used unchanged if that name is free; 1661FILENAME (sans directory) is used unchanged if that name is free;
diff --git a/lisp/uniquify.el b/lisp/uniquify.el
index 5d973c72897..f0e86dc544f 100644
--- a/lisp/uniquify.el
+++ b/lisp/uniquify.el
@@ -26,7 +26,7 @@
26 26
27;;; Commentary: 27;;; Commentary:
28 28
29;; Emacs's standard method for making buffer names unique adds <2>, <3>, 29;; Emacs's traditional method for making buffer names unique adds <2>, <3>,
30;; etc. to the end of (all but one of) the buffers. This file replaces 30;; etc. to the end of (all but one of) the buffers. This file replaces
31;; that behavior, for buffers visiting files and dired buffers, with a 31;; that behavior, for buffers visiting files and dired buffers, with a
32;; uniquification that adds parts of the file name until the buffer names 32;; uniquification that adds parts of the file name until the buffer names
@@ -94,23 +94,27 @@
94 94
95 95
96(defcustom uniquify-buffer-name-style 'post-forward-angle-brackets 96(defcustom uniquify-buffer-name-style 'post-forward-angle-brackets
97 "If non-nil, buffer names are uniquified with parts of directory name. 97 "How to construct unique buffer names for files with the same base name.
98The value determines the buffer name style and is one of `forward', 98The value can be one of: `forward', `reverse', `post-forward',
99`reverse', `post-forward', or `post-forward-angle-brackets'. 99`post-forward-angle-brackets', or nil.
100For example, files `/foo/bar/mumble/name' and `/baz/quux/mumble/name' 100
101For example, the files `/foo/bar/mumble/name' and `/baz/quux/mumble/name'
101would have the following buffer names in the various styles: 102would have the following buffer names in the various styles:
102 forward bar/mumble/name quux/mumble/name 103
103 reverse name\\mumble\\bar name\\mumble\\quux 104 forward bar/mumble/name quux/mumble/name
104 post-forward name|bar/mumble name|quux/mumble 105 reverse name\\mumble\\bar name\\mumble\\quux
105 post-forward-angle-brackets name<bar/mumble> name<quux/mumble> 106 post-forward name|bar/mumble name|quux/mumble
106 nil name name<2> 107 post-forward-angle-brackets name<bar/mumble> name<quux/mumble>
107Of course, the \"mumble\" part may be stripped as well, depending on the setting 108 nil name name<2>
108of `uniquify-strip-common-suffix'." 109
110The \"mumble\" part may be stripped as well, depending on the
111setting of `uniquify-strip-common-suffix'. For more options that
112you can set, browse the `uniquify' custom group."
109 :type '(radio (const forward) 113 :type '(radio (const forward)
110 (const reverse) 114 (const reverse)
111 (const post-forward) 115 (const post-forward)
112 (const post-forward-angle-brackets) 116 (const post-forward-angle-brackets)
113 (const :tag "standard Emacs behavior (nil)" nil)) 117 (const :tag "numeric suffixes" nil))
114 :version "24.4" 118 :version "24.4"
115 :require 'uniquify 119 :require 'uniquify
116 :group 'uniquify) 120 :group 'uniquify)