diff options
author | Jimmy Aguilar Mena <spacibba@aol.com> | 2020-09-15 13:19:13 +0200 |
---|---|---|
committer | Jimmy Aguilar Mena <spacibba@aol.com> | 2020-09-15 16:12:54 +0200 |
commit | 32220b53fd4e4c8a630434eec008325121143236 (patch) | |
tree | 09cafcc101dd909b63cd2dc4ab94a9b033cfd976 /doc/emacs/buffers.texi | |
parent | 70003969244ffa28b17ba8a3da688bd701f74c80 (diff) | |
download | emacs-32220b53fd4e4c8a630434eec008325121143236.tar.gz emacs-32220b53fd4e4c8a630434eec008325121143236.tar.bz2 emacs-32220b53fd4e4c8a630434eec008325121143236.zip |
Document use of uniquify-buffer-name-style as a function.
Diffstat (limited to 'doc/emacs/buffers.texi')
-rw-r--r-- | doc/emacs/buffers.texi | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/emacs/buffers.texi b/doc/emacs/buffers.texi index 89ed470c055..537c6536085 100644 --- a/doc/emacs/buffers.texi +++ b/doc/emacs/buffers.texi @@ -697,6 +697,17 @@ forward order after the file name, as in @samp{file|top/middle}. If @code{uniquify-buffer-name-style} is set to @code{nil}, the buffer names simply get @samp{<2>}, @samp{<3>}, etc.@: appended. + The value of @code{uniquify-buffer-name-style} can be set to a +customized function with two arguments @var{base} and +@var{extra-strings} where @var{base} is a string and +@var{extra-strings} is a list of strings. For example the current +implementation for @code{post-forward-angle-brackets} could be: + +@example +(defun my-post-forward-angle-brackets (base extra-string) + (concat base \"<\" (mapconcat #'identity extra-string \"/\") \">\")) +@end example + Which rule to follow for putting the directory names in the buffer name is not very important if you are going to @emph{look} at the buffer names before you type one. But as an experienced user, if you |