diff options
| author | Dave Love | 2001-02-07 23:51:21 +0000 |
|---|---|---|
| committer | Dave Love | 2001-02-07 23:51:21 +0000 |
| commit | b2639d518af26c56058fc84cd4b8242f3b87ced9 (patch) | |
| tree | c305f34ed92a3f9d3f341651e10d556e9e991819 | |
| parent | 942a1d58ad4511df8e92bc5ca91a4c21c4537076 (diff) | |
| download | emacs-b2639d518af26c56058fc84cd4b8242f3b87ced9.tar.gz emacs-b2639d518af26c56058fc84cd4b8242f3b87ced9.zip | |
(recentf-menu-filter): Fix :type.
| -rw-r--r-- | lisp/recentf.el | 47 |
1 files changed, 31 insertions, 16 deletions
diff --git a/lisp/recentf.el b/lisp/recentf.el index 16450de6ba2..b1a141eb7a8 100644 --- a/lisp/recentf.el +++ b/lisp/recentf.el | |||
| @@ -137,26 +137,41 @@ list of recently opened files." | |||
| 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 |
| @@ -550,7 +565,7 @@ defined." | |||
| 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!") |