diff options
author | Richard M. Stallman <rms@gnu.org> | 1997-04-12 08:35:41 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1997-04-12 08:35:41 +0000 |
commit | c5292bc831ae97cd0d99234c039c9309c05af2a6 (patch) | |
tree | 18be7ff92d7fa0acf1b3b477bca4382427a72614 /lisp/uniquify.el | |
parent | fcad51995cb19634708db88b2efcbed581be979f (diff) | |
download | emacs-c5292bc831ae97cd0d99234c039c9309c05af2a6.tar.gz |
Add defgroup's; use defcustom for user vars.
Diffstat (limited to 'lisp/uniquify.el')
-rw-r--r-- | lisp/uniquify.el | 47 |
1 files changed, 34 insertions, 13 deletions
diff --git a/lisp/uniquify.el b/lisp/uniquify.el index 5d2f2107228..4366f8d7ab3 100644 --- a/lisp/uniquify.el +++ b/lisp/uniquify.el @@ -84,7 +84,12 @@ ;;; User-visible variables -(defvar uniquify-buffer-name-style 'post-forward +(defgroup uniquify nil + "Unique buffer names dependent on file name" + :group 'applications) + + +(defcustom uniquify-buffer-name-style 'post-forward "*If non-nil, buffer names are uniquified with parts of directory name. The value determines the buffer name style and is one of `forward', `reverse', `post-forward' (the default), or `post-forward-angle-brackets'. @@ -94,33 +99,49 @@ would have the following buffer names in the various styles: reverse name\\mumble\\bar name\\mumble\\quux post-forward name|bar/mumble name|quux/mumble post-forward-angle-brackets name<bar/mumble> name<quux/mumble> - nil name name<2>") - -(defvar uniquify-after-kill-buffer-p nil + nil name name<2>" + :type '(radio (const forward) + (const reverse) + (const post-forward) + (const podt-forward-angle-brackets) + (const nil)) + :group 'uniquify) + +(defcustom uniquify-after-kill-buffer-p nil "*If non-nil, rerationalize buffer names after a buffer has been killed. This can be dangerous if Emacs Lisp code is keeping track of buffers by their -names (rather than keeping pointers to the buffers themselves).") +names (rather than keeping pointers to the buffers themselves)." + :type 'boolean + :group 'uniquify) -(defconst uniquify-ask-about-buffer-names-p nil +(defcustom uniquify-ask-about-buffer-names-p nil "*If non-nil, permit user to choose names for buffers with same base file. If the user chooses to name a buffer, uniquification is preempted and no -other buffer names are changed.") +other buffer names are changed." + :type 'boolean + :group 'uniquify) -(defvar uniquify-min-dir-content 0 - "*Minimum parts of directory name included in buffer name.") +(defcustom uniquify-min-dir-content 0 + "*Minimum parts of directory name included in buffer name." + :type 'integer + :group 'uniquify) -(defvar uniquify-separator nil +(defcustom uniquify-separator nil "*String separator for buffer name components. When `uniquify-buffer-name-style' is `post-forward', separates base file name from directory part in buffer names (default \"|\"). When `uniquify-buffer-name-style' is `reverse', separates all -file name components (default \"\\\").") +file name components (default \"\\\")." + :type '(choice (const nil) string) + :group 'uniquify) -(defvar uniquify-trailing-separator-p nil +(defcustom uniquify-trailing-separator-p nil "*If non-nil, add a file name separator to dired buffer names. If `uniquify-buffer-name-style' is `forward', add the separator at the end; if it is `reverse', add the separator at the beginning; otherwise, this -variable is ignored.") +variable is ignored." + :type 'boolean + :group 'uniquify) ;;; Utilities |