65 |
|
|
66 |
(defcustom recentf-max-saved-items 20 |
(defcustom recentf-max-saved-items 20 |
67 |
"*Maximum number of items of the recent list that will be saved. |
"*Maximum number of items of the recent list that will be saved. |
68 |
nil means to save the whole list. |
A nil value means to save the whole list. |
69 |
See the command `recentf-save-list'." |
See the command `recentf-save-list'." |
70 |
:group 'recentf |
:group 'recentf |
71 |
:type 'integer) |
:type 'integer) |
145 |
|
|
146 |
(defcustom recentf-menu-filter nil |
(defcustom recentf-menu-filter nil |
147 |
"*Function used to filter files displayed in the recentf menu. |
"*Function used to filter files displayed in the recentf menu. |
148 |
nil means no filter. The following functions are predefined: |
A nil value means no filter. The following functions are predefined: |
149 |
|
|
150 |
- `recentf-sort-ascending' |
- `recentf-sort-ascending' |
151 |
Sort menu items in ascending order. |
Sort menu items in ascending order. |
199 |
:set 'recentf-menu-customization-changed) |
:set 'recentf-menu-customization-changed) |
200 |
|
|
201 |
(defcustom recentf-menu-append-commands-flag t |
(defcustom recentf-menu-append-commands-flag t |
202 |
"*non-nil means to append command items to the menu." |
"*Non-nil means to append command items to the menu." |
203 |
:group 'recentf |
:group 'recentf |
204 |
:type 'boolean |
:type 'boolean |
205 |
:set 'recentf-menu-customization-changed) |
:set 'recentf-menu-customization-changed) |
206 |
|
|
207 |
(defvaralias 'recentf-menu-append-commands-p |
(define-obsolete-variable-alias 'recentf-menu-append-commands-p |
208 |
'recentf-menu-append-commands-flag) |
'recentf-menu-append-commands-flag |
209 |
(make-obsolete-variable 'recentf-menu-append-commands-p |
"22.1") |
|
'recentf-menu-append-commands-flag |
|
|
"22.1") |
|
210 |
|
|
211 |
(defcustom recentf-auto-cleanup 'mode |
(defcustom recentf-auto-cleanup 'mode |
212 |
"*Define when to automatically cleanup the recent list. |
"*Define when to automatically cleanup the recent list. |
242 |
(recentf-auto-cleanup)))) |
(recentf-auto-cleanup)))) |
243 |
|
|
244 |
(defcustom recentf-initialize-file-name-history t |
(defcustom recentf-initialize-file-name-history t |
245 |
"*non-nil means to initialize `file-name-history' with the recent list. |
"*Non-nil means to initialize `file-name-history' with the recent list. |
246 |
If `file-name-history' is not empty, do nothing." |
If `file-name-history' is not empty, do nothing." |
247 |
:group 'recentf |
:group 'recentf |
248 |
:type 'boolean) |
:type 'boolean) |
348 |
(defsubst recentf-expand-file-name (name) |
(defsubst recentf-expand-file-name (name) |
349 |
"Convert filename NAME to absolute, and canonicalize it. |
"Convert filename NAME to absolute, and canonicalize it. |
350 |
See also the function `expand-file-name'. |
See also the function `expand-file-name'. |
351 |
If defined, call the function `recentf-filename-handler' to post |
If defined, call the function `recentf-filename-handler' |
352 |
process the canonical name." |
to postprocess the canonical name." |
353 |
(let* ((filename (expand-file-name name))) |
(let* ((filename (expand-file-name name))) |
354 |
(or (and recentf-filename-handler |
(or (and recentf-filename-handler |
355 |
(funcall recentf-filename-handler filename)) |
(funcall recentf-filename-handler filename)) |
555 |
|
|
556 |
(defun recentf-clear-data () |
(defun recentf-clear-data () |
557 |
"Clear data used to build the recentf menu. |
"Clear data used to build the recentf menu. |
558 |
This force a rebuild of the menu." |
This forces a rebuild of the menu." |
559 |
(easy-menu-remove-item (recentf-menu-bar) |
(easy-menu-remove-item (recentf-menu-bar) |
560 |
recentf-menu-path recentf-menu-title) |
recentf-menu-path recentf-menu-title) |
561 |
(setq recentf-data-cache nil)) |
(setq recentf-data-cache nil)) |
701 |
|
|
702 |
(defcustom recentf-arrange-by-rule-subfilter nil |
(defcustom recentf-arrange-by-rule-subfilter nil |
703 |
"*Function called by a rule based filter to filter sub-menu elements. |
"*Function called by a rule based filter to filter sub-menu elements. |
704 |
nil means no filter. See also `recentf-menu-filter'. |
A nil value means no filter. See also `recentf-menu-filter'. |
705 |
You can't use another rule based filter here." |
You can't use another rule based filter here." |
706 |
:group 'recentf-filters |
:group 'recentf-filters |
707 |
:type '(choice (const nil) function) |
:type '(choice (const nil) function) |