Mercurial > emacs
comparison lisp/uniquify.el @ 62531:c905fcf5e3d9
Specify missing group (and type, if simple) in defcustom.
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Thu, 19 May 2005 19:06:19 +0000 |
parents | 77618102ddc4 |
children | c101699af337 f042e7c0fe20 |
comparison
equal
deleted
inserted
replaced
62530:eb9babbd0025 | 62531:c905fcf5e3d9 |
---|---|
108 :type '(radio (const forward) | 108 :type '(radio (const forward) |
109 (const reverse) | 109 (const reverse) |
110 (const post-forward) | 110 (const post-forward) |
111 (const post-forward-angle-brackets) | 111 (const post-forward-angle-brackets) |
112 (const :tag "standard Emacs behavior (nil)" nil)) | 112 (const :tag "standard Emacs behavior (nil)" nil)) |
113 :require 'uniquify) | 113 :require 'uniquify |
114 :group 'uniquify) | |
114 | 115 |
115 (defcustom uniquify-after-kill-buffer-p t | 116 (defcustom uniquify-after-kill-buffer-p t |
116 "If non-nil, rerationalize buffer names after a buffer has been killed." | 117 "If non-nil, rerationalize buffer names after a buffer has been killed." |
117 :type 'boolean) | 118 :type 'boolean |
119 :group 'uniquify) | |
118 | 120 |
119 (defcustom uniquify-ask-about-buffer-names-p nil | 121 (defcustom uniquify-ask-about-buffer-names-p nil |
120 "*If non-nil, permit user to choose names for buffers with same base file. | 122 "*If non-nil, permit user to choose names for buffers with same base file. |
121 If the user chooses to name a buffer, uniquification is preempted and no | 123 If the user chooses to name a buffer, uniquification is preempted and no |
122 other buffer names are changed." | 124 other buffer names are changed." |
123 :type 'boolean) | 125 :type 'boolean |
126 :group 'uniquify) | |
124 | 127 |
125 ;; The default value matches certain Gnus buffers. | 128 ;; The default value matches certain Gnus buffers. |
126 (defcustom uniquify-ignore-buffers-re nil | 129 (defcustom uniquify-ignore-buffers-re nil |
127 "*Regular expression matching buffer names that should not be uniquified. | 130 "*Regular expression matching buffer names that should not be uniquified. |
128 For instance, set this to \"^draft-[0-9]+$\" to avoid having uniquify rename | 131 For instance, set this to \"^draft-[0-9]+$\" to avoid having uniquify rename |
129 draft buffers even if `uniquify-after-kill-buffer-p' is non-nil and the | 132 draft buffers even if `uniquify-after-kill-buffer-p' is non-nil and the |
130 visited file name isn't the same as that of the buffer." | 133 visited file name isn't the same as that of the buffer." |
131 :type '(choice (const :tag "Uniquify all buffers" nil) regexp)) | 134 :type '(choice (const :tag "Uniquify all buffers" nil) regexp) |
135 :group 'uniquify) | |
132 | 136 |
133 (defcustom uniquify-min-dir-content 0 | 137 (defcustom uniquify-min-dir-content 0 |
134 "*Minimum number of directory name components included in buffer name." | 138 "*Minimum number of directory name components included in buffer name." |
135 :type 'integer) | 139 :type 'integer |
140 :group 'uniquify) | |
136 | 141 |
137 (defcustom uniquify-separator nil | 142 (defcustom uniquify-separator nil |
138 "*String separator for buffer name components. | 143 "*String separator for buffer name components. |
139 When `uniquify-buffer-name-style' is `post-forward', separates | 144 When `uniquify-buffer-name-style' is `post-forward', separates |
140 base file name from directory part in buffer names (default \"|\"). | 145 base file name from directory part in buffer names (default \"|\"). |
141 When `uniquify-buffer-name-style' is `reverse', separates all | 146 When `uniquify-buffer-name-style' is `reverse', separates all |
142 file name components (default \"\\\")." | 147 file name components (default \"\\\")." |
143 :type '(choice (const nil) string)) | 148 :type '(choice (const nil) string) |
149 :group 'uniquify) | |
144 | 150 |
145 (defcustom uniquify-trailing-separator-p nil | 151 (defcustom uniquify-trailing-separator-p nil |
146 "*If non-nil, add a file name separator to dired buffer names. | 152 "*If non-nil, add a file name separator to dired buffer names. |
147 If `uniquify-buffer-name-style' is `forward', add the separator at the end; | 153 If `uniquify-buffer-name-style' is `forward', add the separator at the end; |
148 if it is `reverse', add the separator at the beginning; otherwise, this | 154 if it is `reverse', add the separator at the beginning; otherwise, this |
149 variable is ignored." | 155 variable is ignored." |
150 :type 'boolean) | 156 :type 'boolean |
157 :group 'uniquify) | |
151 | 158 |
152 (defcustom uniquify-strip-common-suffix | 159 (defcustom uniquify-strip-common-suffix |
153 ;; Using it when uniquify-min-dir-content>0 doesn't make much sense. | 160 ;; Using it when uniquify-min-dir-content>0 doesn't make much sense. |
154 (eq 0 uniquify-min-dir-content) | 161 (eq 0 uniquify-min-dir-content) |
155 "If non-nil, strip common directory suffixes of conflicting files. | 162 "If non-nil, strip common directory suffixes of conflicting files. |
156 E.g. if you open /a1/b/c/d and /a2/b/c/d, the buffer names will say | 163 E.g. if you open /a1/b/c/d and /a2/b/c/d, the buffer names will say |
157 \"d|a1\" and \"d|a2\" instead of \"d|a1/b/c\" and \"d|a2/b/c\". | 164 \"d|a1\" and \"d|a2\" instead of \"d|a1/b/c\" and \"d|a2/b/c\". |
158 This can be handy when you have deep parallel hierarchies." | 165 This can be handy when you have deep parallel hierarchies." |
159 :type 'boolean) | 166 :type 'boolean |
167 :group 'uniquify) | |
160 | 168 |
161 (defvar uniquify-list-buffers-directory-modes '(dired-mode cvs-mode) | 169 (defvar uniquify-list-buffers-directory-modes '(dired-mode cvs-mode) |
162 "List of modes for which uniquify should obey `list-buffers-directory'. | 170 "List of modes for which uniquify should obey `list-buffers-directory'. |
163 That means that when `buffer-file-name' is set to nil, `list-buffers-directory' | 171 That means that when `buffer-file-name' is set to nil, `list-buffers-directory' |
164 contains the name of the directory which the buffer is visiting.") | 172 contains the name of the directory which the buffer is visiting.") |