Mercurial > emacs
comparison lisp/recentf.el @ 35971:6dd6fce1542a
(recentf-menu-filter): Fix :type.
author | Dave Love <fx@gnu.org> |
---|---|
date | Wed, 07 Feb 2001 23:51:21 +0000 |
parents | 4408efb1d628 |
children | b174db545cfd |
comparison
equal
deleted
inserted
replaced
35970:2357e03b072b | 35971:6dd6fce1542a |
---|---|
135 | 135 |
136 (defcustom recentf-menu-filter nil | 136 (defcustom recentf-menu-filter nil |
137 "*Function used to filter files displayed in the recentf menu. | 137 "*Function used to filter files displayed in the recentf menu. |
138 Nil means no filter. The following functions are predefined: | 138 Nil means no filter. The following functions are predefined: |
139 | 139 |
140 - - `recentf-sort-ascending' to sort menu items in ascending order. | 140 - `recentf-sort-ascending' to sort menu items in ascending order. |
141 - - `recentf-sort-descending' to sort menu items in descending order. | 141 - `recentf-sort-descending' to sort menu items in descending order. |
142 - - `recentf-sort-basenames-ascending' to sort file names in descending order. | 142 - `recentf-sort-basenames-ascending' to sort file names in descending order. |
143 - - `recentf-sort-basenames-descending' to sort file names in descending order. | 143 - `recentf-sort-basenames-descending' to sort file names in descending order. |
144 - - `recentf-sort-directories-ascending' to sort directories in ascending order. | 144 - `recentf-sort-directories-ascending' to sort directories in ascending order. |
145 - - `recentf-sort-directories-descending' to sort directories in descending order. | 145 - `recentf-sort-directories-descending' to sort directories in descending order. |
146 - - `recentf-show-basenames' to show file names (no directories) in menu items. | 146 - `recentf-show-basenames' to show file names (no directories) in menu items. |
147 - - `recentf-show-basenames-ascending' to show file names in ascending order. | 147 - `recentf-show-basenames-ascending' to show file names in ascending order. |
148 - - `recentf-show-basenames-descending' to show file names in descending order. | 148 - `recentf-show-basenames-descending' to show file names in descending order. |
149 - - `recentf-relative-filter' to show file names relative to `default-directory'. | 149 - `recentf-relative-filter' to show file names relative to `default-directory'. |
150 - - `recentf-arrange-by-rule' to show sub-menus following user defined rules. | 150 - `recentf-arrange-by-rule' to show sub-menus following user defined rules. |
151 - - `recentf-arrange-by-mode' to show a sub-menu for each major mode. | 151 - `recentf-arrange-by-mode' to show a sub-menu for each major mode. |
152 - - `recentf-arrange-by-dir' to show a sub-menu for each directory. | 152 - `recentf-arrange-by-dir' to show a sub-menu for each directory. |
153 - - `recentf-filter-changer' to manage a ring of filters. | 153 - `recentf-filter-changer' to manage a ring of filters. |
154 | 154 |
155 The filter function is called with one argument, the list of menu elements | 155 The filter function is called with one argument, the list of menu elements |
156 used to build the menu and must return a new list of menu elements (see | 156 used to build the menu and must return a new list of menu elements (see |
157 `recentf-make-menu-element' for menu element form)." | 157 `recentf-make-menu-element' for menu element form)." |
158 :group 'recentf | 158 :group 'recentf |
159 :type 'function | 159 :type '(radio (const nil) |
160 (function-item recentf-sort-ascending) | |
161 (function-item recentf-sort-descending) | |
162 (function-item recentf-sort-basenames-ascending) | |
163 (function-item recentf-sort-basenames-descending) | |
164 (function-item recentf-sort-directories-ascending) | |
165 (function-item recentf-sort-directories-descending) | |
166 (function-item recentf-show-basenames) | |
167 (function-item recentf-show-basenames-ascending) | |
168 (function-item recentf-show-basenames-descending) | |
169 (function-item recentf-relative-filter) | |
170 (function-item recentf-arrange-by-rule) | |
171 (function-item recentf-arrange-by-mode) | |
172 (function-item recentf-arrange-by-dir) | |
173 (function-item recentf-filter-changer) | |
174 function) | |
160 :set 'recentf-menu-customization-changed) | 175 :set 'recentf-menu-customization-changed) |
161 | 176 |
162 (defcustom recentf-menu-append-commands-p t | 177 (defcustom recentf-menu-append-commands-p t |
163 "*If not-nil command items are appended to the menu." | 178 "*If not-nil command items are appended to the menu." |
164 :group 'recentf | 179 :group 'recentf |
548 (defcustom recentf-arrange-by-rule-subfilter nil | 563 (defcustom recentf-arrange-by-rule-subfilter nil |
549 "*Function used by `recentf-arrange-by-rule' to filter sub-menu elements. | 564 "*Function used by `recentf-arrange-by-rule' to filter sub-menu elements. |
550 Nil means no filter. See also `recentf-menu-filter'. You can't use | 565 Nil means no filter. See also `recentf-menu-filter'. You can't use |
551 `recentf-arrange-by-rule' itself here!" | 566 `recentf-arrange-by-rule' itself here!" |
552 :group 'recentf-filters | 567 :group 'recentf-filters |
553 :type 'function | 568 :type '(choice (const nil) function) |
554 :set (lambda (sym val) | 569 :set (lambda (sym val) |
555 (if (eq val 'recentf-arrange-by-rule) | 570 (if (eq val 'recentf-arrange-by-rule) |
556 (error "Can't use `recentf-arrange-by-rule' itself here!") | 571 (error "Can't use `recentf-arrange-by-rule' itself here!") |
557 (recentf-menu-customization-changed sym val)))) | 572 (recentf-menu-customization-changed sym val)))) |
558 | 573 |