aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2005-07-28 13:00:18 +0000
committerJuanma Barranquero2005-07-28 13:00:18 +0000
commit8154a06e94b2c051a72655ee69f6cfd36aa9f528 (patch)
treeec4a3c67050a69a53fd0dfcb5aae437bc49527b2
parent0962822d9717cac83be675b8a76efae7b17997fe (diff)
downloademacs-8154a06e94b2c051a72655ee69f6cfd36aa9f528.tar.gz
emacs-8154a06e94b2c051a72655ee69f6cfd36aa9f528.zip
(recentf-menu-append-commands-p): Declare with `define-obsolete-variable-alias'.
(recentf-max-saved-items, recentf-menu-filter, recentf-arrange-by-rule-subfilter): Doc fixes. (recentf-menu-append-commands-flag, recentf-initialize-file-name-history, recentf-expand-file-name, recentf-clear-data): Fix typos in docstrings.
-rw-r--r--lisp/recentf.el24
1 files changed, 11 insertions, 13 deletions
diff --git a/lisp/recentf.el b/lisp/recentf.el
index 57280a7b4bc..dcb962c3f19 100644
--- a/lisp/recentf.el
+++ b/lisp/recentf.el
@@ -65,7 +65,7 @@ You should define the options of your own filters in this group."
65 65
66(defcustom recentf-max-saved-items 20 66(defcustom recentf-max-saved-items 20
67 "*Maximum number of items of the recent list that will be saved. 67 "*Maximum number of items of the recent list that will be saved.
68nil means to save the whole list. 68A nil value means to save the whole list.
69See the command `recentf-save-list'." 69See the command `recentf-save-list'."
70 :group 'recentf 70 :group 'recentf
71 :type 'integer) 71 :type 'integer)
@@ -145,7 +145,7 @@ The default is to call `find-file' to edit the selected file."
145 145
146(defcustom recentf-menu-filter nil 146(defcustom recentf-menu-filter nil
147 "*Function used to filter files displayed in the recentf menu. 147 "*Function used to filter files displayed in the recentf menu.
148nil means no filter. The following functions are predefined: 148A nil value means no filter. The following functions are predefined:
149 149
150- `recentf-sort-ascending' 150- `recentf-sort-ascending'
151 Sort menu items in ascending order. 151 Sort menu items in ascending order.
@@ -199,16 +199,14 @@ elements (see `recentf-make-menu-element' for menu element form)."
199 :set 'recentf-menu-customization-changed) 199 :set 'recentf-menu-customization-changed)
200 200
201(defcustom recentf-menu-append-commands-flag t 201(defcustom recentf-menu-append-commands-flag t
202 "*non-nil means to append command items to the menu." 202 "*Non-nil means to append command items to the menu."
203 :group 'recentf 203 :group 'recentf
204 :type 'boolean 204 :type 'boolean
205 :set 'recentf-menu-customization-changed) 205 :set 'recentf-menu-customization-changed)
206 206
207(defvaralias 'recentf-menu-append-commands-p 207(define-obsolete-variable-alias 'recentf-menu-append-commands-p
208 'recentf-menu-append-commands-flag) 208 'recentf-menu-append-commands-flag
209(make-obsolete-variable 'recentf-menu-append-commands-p 209 "22.1")
210 'recentf-menu-append-commands-flag
211 "22.1")
212 210
213(defcustom recentf-auto-cleanup 'mode 211(defcustom recentf-auto-cleanup 'mode
214 "*Define when to automatically cleanup the recent list. 212 "*Define when to automatically cleanup the recent list.
@@ -244,7 +242,7 @@ cleanup the list."
244 (recentf-auto-cleanup)))) 242 (recentf-auto-cleanup))))
245 243
246(defcustom recentf-initialize-file-name-history t 244(defcustom recentf-initialize-file-name-history t
247 "*non-nil means to initialize `file-name-history' with the recent list. 245 "*Non-nil means to initialize `file-name-history' with the recent list.
248If `file-name-history' is not empty, do nothing." 246If `file-name-history' is not empty, do nothing."
249 :group 'recentf 247 :group 'recentf
250 :type 'boolean) 248 :type 'boolean)
@@ -350,8 +348,8 @@ filenames."
350(defsubst recentf-expand-file-name (name) 348(defsubst recentf-expand-file-name (name)
351 "Convert filename NAME to absolute, and canonicalize it. 349 "Convert filename NAME to absolute, and canonicalize it.
352See also the function `expand-file-name'. 350See also the function `expand-file-name'.
353If defined, call the function `recentf-filename-handler' to post 351If defined, call the function `recentf-filename-handler'
354process the canonical name." 352to postprocess the canonical name."
355 (let* ((filename (expand-file-name name))) 353 (let* ((filename (expand-file-name name)))
356 (or (and recentf-filename-handler 354 (or (and recentf-filename-handler
357 (funcall recentf-filename-handler filename)) 355 (funcall recentf-filename-handler filename))
@@ -557,7 +555,7 @@ menu-elements (no sub-menu)."
557 555
558(defun recentf-clear-data () 556(defun recentf-clear-data ()
559 "Clear data used to build the recentf menu. 557 "Clear data used to build the recentf menu.
560This force a rebuild of the menu." 558This forces a rebuild of the menu."
561 (easy-menu-remove-item (recentf-menu-bar) 559 (easy-menu-remove-item (recentf-menu-bar)
562 recentf-menu-path recentf-menu-title) 560 recentf-menu-path recentf-menu-title)
563 (setq recentf-data-cache nil)) 561 (setq recentf-data-cache nil))
@@ -703,7 +701,7 @@ defined."
703 701
704(defcustom recentf-arrange-by-rule-subfilter nil 702(defcustom recentf-arrange-by-rule-subfilter nil
705 "*Function called by a rule based filter to filter sub-menu elements. 703 "*Function called by a rule based filter to filter sub-menu elements.
706nil means no filter. See also `recentf-menu-filter'. 704A nil value means no filter. See also `recentf-menu-filter'.
707You can't use another rule based filter here." 705You can't use another rule based filter here."
708 :group 'recentf-filters 706 :group 'recentf-filters
709 :type '(choice (const nil) function) 707 :type '(choice (const nil) function)