;ELC ;;; Compiled by pot@pot.cnuce.cnr.it on Tue Mar 18 15:51:52 2003 ;;; from file /home/pot/gnu/emacs-pretest.new/lisp/recentf.el ;;; in Emacs version 21.3 ;;; with bytecomp version 2.85.4.1 ;;; with all optimizations. ;;; This file uses dynamic docstrings, first added in Emacs 19.29. (if (and (boundp 'emacs-version) (< (aref emacs-version (1- (length emacs-version))) ?A) (or (and (boundp 'epoch::version) epoch::version) (string-lessp emacs-version "19.29"))) (error "`recentf.el' was compiled for Emacs 19.29 or later")) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (byte-code "\300\301!\210\300\302!\207" [require easymenu wid-edit] 2) #@52 Header to be written into the `recentf-save-file'. (defconst recentf-save-file-header ";;; Automatically generated by `recentf' on %s.\n" (#$ . 687)) #@32 List of recently opened files. (defvar recentf-list nil (#$ . 843)) #@46 Non-nil if the recentf menu must be updated. (defvar recentf-update-menu-p t (#$ . 917)) #@41 Non-nil if recentf already initialized. (defvar recentf-initialized-p nil (#$ . 1012)) #@117 Function called when menu customization has changed. It removes the recentf menu and forces its complete redrawing. (defalias 'recentf-menu-customization-changed #[(sym val) "\203\304\305\306J\307J#\210\310\311\n \"\207" [recentf-initialized-p recentf-update-menu-p sym val easy-menu-remove-item nil recentf-menu-path recentf-menu-title t custom-set-default] 4 (#$ . 1106)]) (byte-code "\300\301\302\303\304\305\306\307&\210\300\310\302\311\306\301%\207" [custom-declare-group recentf nil "Maintain a menu of recently opened files." :version "21.1" :group files recentf-filters "Group to customize recentf menu filters.\nYou should define the options of your own filters in this group."] 8) #@56 *Maximum number of items saved to `recentf-save-file'. (custom-declare-variable 'recentf-max-saved-items '20 '(#$ . -1808) :group 'recentf :type 'integer) #@36 *File to save `recentf-list' into. (custom-declare-variable 'recentf-save-file '(expand-file-name "~/.recentf") '(#$ . -1969) :group 'recentf :type 'file) #@62 *List of regexps for filenames excluded from `recentf-list'. (custom-declare-variable 'recentf-exclude 'nil '(#$ . -2130) :group 'recentf :type '(repeat regexp)) #@28 *Name of the recentf menu. (custom-declare-variable 'recentf-menu-title '"Open Recent" '(#$ . -2298) :group 'recentf :type 'string :set 'recentf-menu-customization-changed) #@96 *Path where to add the recentf menu. If nil add it at top level (see also `easy-menu-change'). (custom-declare-variable 'recentf-menu-path ''("files") '(#$ . -2477) :group 'recentf :type '(choice (const :tag "Top Level" nil) (sexp :tag "Menu Path")) :set 'recentf-menu-customization-changed) #@124 *Name of the menu before which the recentf menu will be added. If nil add it at end of menu (see also `easy-menu-change'). (custom-declare-variable 'recentf-menu-before '"open-file" '(#$ . -2776) :group 'recentf :type '(choice (string :tag "Name") (const :tag "Last" nil)) :set 'recentf-menu-customization-changed) #@368 *Function to invoke with a filename item of the recentf menu. The default action `recentf-find-file' calls `find-file' to edit an existing file. If the file does not exist or is not readable, it is not edited and its name is removed from `recentf-list'. You can use `find-file' instead to open non-existing files and keep them in the list of recently opened files. (custom-declare-variable 'recentf-menu-action ''recentf-find-file '(#$ . -3098) :group 'recentf :type 'function :set 'recentf-menu-customization-changed) #@47 *Maximum number of items in the recentf menu. (custom-declare-variable 'recentf-max-menu-items '10 '(#$ . -3625) :group 'recentf :type 'integer :set 'recentf-menu-customization-changed) #@1353 *Function used to filter files displayed in the recentf menu. Nil means no filter. The following functions are predefined: - `recentf-sort-ascending' to sort menu items in ascending order. - `recentf-sort-descending' to sort menu items in descending order. - `recentf-sort-basenames-ascending' to sort file names in descending order. - `recentf-sort-basenames-descending' to sort file names in descending order. - `recentf-sort-directories-ascending' to sort directories in ascending order. - `recentf-sort-directories-descending' to sort directories in descending order. - `recentf-show-basenames' to show file names (no directories) in menu items. - `recentf-show-basenames-ascending' to show file names in ascending order. - `recentf-show-basenames-descending' to show file names in descending order. - `recentf-relative-filter' to show file names relative to `default-directory'. - `recentf-arrange-by-rule' to show sub-menus following user defined rules. - `recentf-arrange-by-mode' to show a sub-menu for each major mode. - `recentf-arrange-by-dir' to show a sub-menu for each directory. - `recentf-filter-changer' to manage a ring of filters. The filter function is called with one argument, the list of menu elements used to build the menu and must return a new list of menu elements (see `recentf-make-menu-element' for menu element form). (custom-declare-variable 'recentf-menu-filter 'nil '(#$ . -3819) :group 'recentf :type '(radio (const nil) (function-item recentf-sort-ascending) (function-item recentf-sort-descending) (function-item recentf-sort-basenames-ascending) (function-item recentf-sort-basenames-descending) (function-item recentf-sort-directories-ascending) (function-item recentf-sort-directories-descending) (function-item recentf-show-basenames) (function-item recentf-show-basenames-ascending) (function-item recentf-show-basenames-descending) (function-item recentf-relative-filter) (function-item recentf-arrange-by-rule) (function-item recentf-arrange-by-mode) (function-item recentf-arrange-by-dir) (function-item recentf-filter-changer) function) :set 'recentf-menu-customization-changed) #@53 *If not-nil command items are appended to the menu. (custom-declare-variable 'recentf-menu-append-commands-p 't '(#$ . -5953) :group 'recentf :type 'boolean :set 'recentf-menu-customization-changed) #@71 *If nil (default), non-readable files are not kept in `recentf-list'. (custom-declare-variable 'recentf-keep-non-readable-files-p 'nil '(#$ . -6158) :group 'recentf :type 'boolean :require 'recentf :initialize 'custom-initialize-default :set (lambda (sym val) (if val (remove-hook 'kill-buffer-hook 'recentf-remove-file-hook) (add-hook 'kill-buffer-hook 'recentf-remove-file-hook)) (custom-set-default sym val))) #@59 *Normal hook run at end of loading the `recentf' package. (custom-declare-variable 'recentf-load-hook 'nil '(#$ . -6577) :group 'recentf :type 'hook) #@61 Non-nil if recentf searches and matches should ignore case. (defconst recentf-case-fold-search (memq system-type '(vax-vms windows-nt)) (#$ . 6733)) #@67 Return t if FILENAME match none of the `recentf-exclude' regexps. (defalias 'recentf-include-p #[(filename) " \n\203\305\n@\f\"\204\nA\211\204\n*?\207" [recentf-case-fold-search recentf-exclude rl case-fold-search filename string-match] 4 (#$ . 6888)]) #@129 Add or move FILENAME at the beginning of `recentf-list'. Does nothing if FILENAME matches one of the `recentf-exclude' regexps. (defalias 'recentf-add-file #[(filename) "\303!\304!\205\305 \"B\306\211)\207" [filename recentf-list recentf-update-menu-p expand-file-name recentf-include-p delete t] 4 (#$ . 7158)]) #@54 Remove FILENAME from `recentf-list' if not readable. (defalias 'recentf-remove-if-non-readable #[(filename) "\303!?\205\304 \"\305\211\207" [filename recentf-list recentf-update-menu-p file-readable-p delete t] 3 (#$ . 7486)]) #@102 Edit file FILENAME using `find-file'. If FILENAME is not readable it is removed from `recentf-list'. (defalias 'recentf-find-file #[(filename) "\303!\203\n\304!\207\305\306\"\210\307 \"\310\211\207" [filename recentf-list recentf-update-menu-p file-readable-p find-file message "File `%s' not found." delete t] 3 (#$ . 7726)]) #@45 Return a list of the first N elements of L. (defalias 'recentf-trunc-list #[(l n) "\303 \203\n\304V\203 @B\nS A\211\204\237)\207" [lh l n nil 0] 3 (#$ . 8066)]) #@58 Return a list of the first N elements of `recentf-list'. (defalias 'recentf-elements #[(n) "\302 \"\207" [recentf-list n recentf-trunc-list] 3 (#$ . 8245)]) #@462 Create a new menu-element. A menu element is a pair (MENU-ITEM . MENU-VALUE) where: - - MENU-ITEM is the menu item string displayed. - - MENU-VALUE is the path used to open the file when the corresponding MENU-ITEM is selected. Or it is a pair (SUB-MENU-TITLE . MENU-ELEMENTS) where SUB-MENU-TITLE is a sub-menu title and MENU-ELEMENTS is the list of menu elements in the sub-menu. (defalias 'recentf-make-menu-element #[(menu-item menu-value) " B\207" [menu-item menu-value] 2 (#$ . 8410)]) #@45 Return the item part of the menu-element E. (defalias 'recentf-menu-element-item #[(e) "@\207" [e] 1 (#$ . 8988)]) #@46 Return the value part of the menu-element E. (defalias 'recentf-menu-element-value #[(e) "A\207" [e] 1 (#$ . 9110)]) #@49 Change the item part of menu-element E to ITEM. (defalias 'recentf-set-menu-element-item #[(e item) " \240\207" [e item] 2 (#$ . 9234)]) #@51 Change the value part of menu-element E to VALUE. (defalias 'recentf-set-menu-element-value #[(e value) " \241\207" [e value] 2 (#$ . 9378)]) #@54 Return non-nil if menu-element E defines a sub-menu. (defalias 'recentf-sub-menu-element-p #[(e) "\301!:\207" [e recentf-menu-element-value] 2 (#$ . 9527)]) #@194 Make a new default menu element (MENU-ITEM . MENU-VALUE). Do so for the given recent file path FILE-PATH. MENU-ITEM and MENU-VALUE are set to FILE-PATH. See also `recentf-make-menu-element'. (defalias 'recentf-make-default-menu-element #[(file-path) "\301\211\"\207" [file-path recentf-make-menu-element] 3 (#$ . 9692)]) #@119 Return a list of the first N default menu elements from `recentf-list'. See also `recentf-make-default-menu-element'. (defalias 'recentf-menu-elements #[(n) "\301\302\303!\"\207" [n mapcar recentf-make-default-menu-element recentf-elements] 4 (#$ . 10023)]) #@223 Apply function FILTER to the list of menu-elements L. It takes care of sub-menu elements in L and recursively apply FILTER to them. It is guaranteed that FILTER receives only a list of single menu-elements (no sub-menu). (defalias 'recentf-apply-menu-filter #[(filter l) "\306!\203` \203`\n\307\211\211\f \2032 @\310 !\203' \fB\202+ B A\211\204 \203; \237!\f\307 \203[ @\311 \312\313 !\"\"\210 \fB A\211\204C\f \244,\207 \207" [filter l recentf-case-fold-search single-elements sub-menu-elements menu-element functionp nil recentf-sub-menu-element-p recentf-set-menu-element-value recentf-apply-menu-filter recentf-menu-element-value case-fold-search] 7 (#$ . 10289)]) #@42 List of menu items for recentf commands. (defvar recentf-menu-items-for-commands (list ["Cleanup list" recentf-cleanup :help "Remove all non-readable and excluded files from the recent list" :active t] ["Edit list..." recentf-edit-list :help "Edit the files that are kept in the recent list" :active t] ["Save list now" recentf-save-list :help "Save the list of recently opened files now" :active t] ["Options..." (customize-group "recentf") :help "Customize recently opened files menu and options" :active t]) (#$ . 10993)) #@258 This variable can be used by menu filters to setup their own command menu. If non-nil it must contain a list of valid menu-items to be appended to the recent file list part of the menu. Before calling a menu filter function this variable is reset to nil. (defvar recentf-menu-filter-commands nil (#$ . 11525)) #@38 Make menu items from `recentf-list'. (defalias 'recentf-make-menu-items #[nil "\306\307\310\311 \312\n!\"\"\313 \206\314C\n\fGW\205\315C\205#\316B \205+\316B$)\207" [recentf-menu-filter-commands recentf-menu-filter recentf-max-menu-items file-items recentf-list recentf-menu-append-commands-p nil mapcar recentf-make-menu-item recentf-apply-menu-filter recentf-menu-elements append ["No files" t :help "No recent file to open" :active nil] ["More..." recentf-open-more-files :help "Open files that are not in the menu" :active t] "---" recentf-menu-items-for-commands] 6 (#$ . 11843)]) #@71 Make a menu item from MENU-ELEMENT (see `recentf-make-menu-element'). (defalias 'recentf-make-menu-item #[(menu-element) "\304!\305!\306!\203\n\307\310 \"B\202$\311\n D\312\313 P\314\315&*\207" [menu-element menu-value menu-item recentf-menu-action recentf-menu-element-item recentf-menu-element-value recentf-sub-menu-element-p mapcar recentf-make-menu-item vector :help "Open " :active t] 7 (#$ . 12447)]) #@107 Sort the list of menu elements L in ascending order. The MENU-ITEM part of each menu element is compared. (defalias 'recentf-sort-ascending #[(l) "\301\302!\303\"\207" [l sort copy-sequence #[(e1 e2) "\302!\302 !\231\207" [e1 e2 recentf-menu-element-item] 3]] 3 (#$ . 12872)]) #@108 Sort the list of menu elements L in descending order. The MENU-ITEM part of each menu element is compared. (defalias 'recentf-sort-descending #[(l) "\301\302!\303\"\207" [l sort copy-sequence #[(e1 e2) "\302!\302 !\231\207" [e2 e1 recentf-menu-element-item] 3]] 3 (#$ . 13158)]) #@106 Sort the list of menu elements L in ascending order. Only file names (without directories) are compared. (defalias 'recentf-sort-basenames-ascending #[(l) "\301\302!\303\"\207" [l sort copy-sequence #[(e1 e2) "\302\303!!\302\303 !!\231\207" [e1 e2 file-name-nondirectory recentf-menu-element-value] 4]] 3 (#$ . 13446)]) #@107 Sort the list of menu elements L in descending order. Only file names (without directories) are compared. (defalias 'recentf-sort-basenames-descending #[(l) "\301\302!\303\"\207" [l sort copy-sequence #[(e1 e2) "\302\303!!\302\303 !!\231\207" [e2 e1 file-name-nondirectory recentf-menu-element-value] 4]] 3 (#$ . 13775)]) #@94 Compare directories then filenames in paths P1 and P2. Return non-nil if P1 is less than P2. (defalias 'recentf-directory-compare #[(p1 p2) "\306!\307!\306 !\307 !\211 \230\203\f\n\231\202 \231,\207" [p1 p2 f2 d2 f1 d1 file-name-directory file-name-nondirectory] 6 (#$ . 14105)]) #@109 Sort the list of menu elements L in ascending order. Compares directories then filenames to order the list. (defalias 'recentf-sort-directories-ascending #[(l) "\301\302!\303\"\207" [l sort copy-sequence #[(e1 e2) "\302\303!\303 !\"\207" [e1 e2 recentf-directory-compare recentf-menu-element-value] 4]] 3 (#$ . 14403)]) #@110 Sort the list of menu elements L in descending order. Compares directories then filenames to order the list. (defalias 'recentf-sort-directories-descending #[(l) "\301\302!\303\"\207" [l sort copy-sequence #[(e1 e2) "\302\303!\303 !\"\207" [e2 e1 recentf-directory-compare recentf-menu-element-value] 4]] 3 (#$ . 14732)]) #@158 Filter the list of menu elements L to show only file names (no directories) in the menu. When file names are duplicated their directory component is added. (defalias 'recentf-show-basenames #[(l) "\306\307\"\306\310\"\306\311\"\312\313\211\211\203R@A\fT\314 \235\2048 \n\235\203C \315\f8\316R\202D \f 8\" B \nB\202 \237.\207" [l filtered-list filtered-items item pos pathes mapcar #[(item) "\301\302!!\207" [item file-name-nondirectory recentf-menu-element-value] 3] #[(item) "\301\302!!\207" [item file-name-directory recentf-menu-element-value] 3] recentf-menu-element-value -1 nil recentf-make-menu-element " (" ")" dirs names] 7 (#$ . 15063)]) #@197 Filter the list of menu elements L. Show only file names in the menu, sorted in ascending order. This filter combines the `recentf-sort-basenames-ascending' and `recentf-show-basenames' filters. (defalias 'recentf-show-basenames-ascending #[(l) "\301\302!!\207" [l recentf-show-basenames recentf-sort-basenames-ascending] 3 (#$ . 15756)]) #@199 Filter the list of menu elements L. Show only file names in the menu, sorted in descending order. This filter combines the `recentf-sort-basenames-descending' and `recentf-show-basenames' filters. (defalias 'recentf-show-basenames-descending #[(l) "\301\302!!\207" [l recentf-show-basenames recentf-sort-basenames-descending] 3 (#$ . 16104)]) #@95 Filter the list of `recentf-menu-elements' L. Show filenames relative to `default-directory'. (defalias 'recentf-relative-filter #[(l) "\302\303\304 \"\207" [recentf-update-menu-p l t mapcar #[(menu-element) "\303!\304 !\305\306\n\"\203\202\307\n \"*\207" [menu-element ful-path rel-path recentf-menu-element-value file-relative-name string-match "^\\.\\." recentf-make-menu-element] 3]] 3 (#$ . 16455)]) #@394 *List of rules used by `recentf-arrange-by-rule' to build sub-menus. A rule is a pair (SUB-MENU-TITLE . MATCHER). SUB-MENU-TITLE is the displayed title of the sub-menu where a '%d' `format' pattern is replaced by the number of items in the sub-menu. MATCHER is a regexp or a list of regexps. Items matching one of the regular expressions in MATCHER are added to the corresponding sub-menu. (custom-declare-variable 'recentf-arrange-rules ''(("Elisp files (%d)" ".\\.el$") ("Java files (%d)" ".\\.java$") ("C/C++ files (%d)" "c\\(pp\\)?$")) '(#$ . -16876) :group 'recentf-filters :type '(repeat (cons string (repeat regexp))) :set 'recentf-menu-customization-changed) #@299 *Title of the `recentf-arrange-by-rule' sub-menu. This is for the menu where items that don't match any `recentf-arrange-rules' are displayed. If nil these items are displayed in the main recent files menu. A '%d' `format' pattern in the title is replaced by the number of items in the sub-menu. (custom-declare-variable 'recentf-arrange-by-rule-others '"Other files (%d)" '(#$ . -17553) :group 'recentf-filters :type '(choice (const :tag "Main menu" nil) (string :tag "Title")) :set 'recentf-menu-customization-changed) #@269 *Minimum number of items in a `recentf-arrange-by-rule' sub-menu. If the number of items in a sub-menu is less than this value the corresponding sub-menu items are displayed in the main recent files menu or in the `recentf-arrange-by-rule-others' sub-menu if defined. (custom-declare-variable 'recentf-arrange-by-rules-min-items '0 '(#$ . -18083) :group 'recentf-filters :type 'number :set 'recentf-menu-customization-changed) #@182 *Function used by `recentf-arrange-by-rule' to filter sub-menu elements. Nil means no filter. See also `recentf-menu-filter'. You can't use `recentf-arrange-by-rule' itself here! (custom-declare-variable 'recentf-arrange-by-rule-subfilter 'nil '(#$ . -18517) :group 'recentf-filters :type '(choice (const nil) function) :set (lambda (sym val) (if (eq val 'recentf-arrange-by-rule) (error "Can't use `recentf-arrange-by-rule' itself here!") (recentf-menu-customization-changed sym val)))) #@118 Return non-nil if FILE-PATH match the rule specified by MATCHER. See `recentf-arrange-rules' for details on MATCHER. (defalias 'recentf-match-rule-p #[(matcher file-path) ";\203\n\302 \"\207:\203\302@ \"\204A\211\202 \207" [matcher file-path string-match] 4 (#$ . 19014)]) #@107 Filter the list of menu-elements L. Arrange them in sub-menus following rules in `recentf-arrange-rules'. (defalias 'recentf-arrange-by-rule #[(l) "G\211\306V\203\307\310\311\312\"\"\313\211\211\203{@\314!\313\306\204h\203h\315\211@A)\"\203] H\316\317\314!B\"\210) TA\202/\204r\fBA,\202\306\313\250\203\215\306]\202\216\306 W\203\353 H\320!\314!\211G\211\306V\203\344\nW\203\277\f\244\202\344\nY\203\344\321\322\"\"\210\317\323 \237\"\"\210B T,\202\217!;\203\f\f\203\f\324\322!\fG\"\323 \f\237\"\"B\237\202\237\323 \f\237\"\244,)\207" [recentf-arrange-rules sub-menus-number min-size index other-menu-elements sub-menus 0 apply vector mapcar #[(pair) "@C\207" [pair] 1] nil recentf-menu-element-value recentf-match-rule-p t recentf-set-menu-element-value recentf-menu-element-item recentf-set-menu-element-item format recentf-apply-menu-filter recentf-make-menu-element l menu-element file-path rules found x sub-menu recentf-arrange-by-rules-min-items sub-menu-title sub-menu-elements sub-menu-length recentf-arrange-by-rule-subfilter recentf-arrange-by-rule-others] 6 (#$ . 19307)]) #@62 Convert `auto-mode-alist' to `recentf-arrange-rules' format. (defalias 'recentf-build-mode-rules #[nil " \306\211\211\211\211\203f\211@@)\211@A)\2119\203]\307 !\310\311\f\"\203>\312\313\f\"\f\314P\315\f\n\"\211\203V  AB\241\210\202]\fD\nBA\211\204\n\237.\207" [recentf-case-fold-search auto-mode-alist rules rule rule-name mode nil symbol-name string-match "\\(.*\\)-mode$" match-string 1 " (%d)" assoc regexp modes case-fold-search x] 8 (#$ . 20540)]) #@76 Filter the list of menu-elements L to build sub-menus for each major mode. (defalias 'recentf-arrange-by-mode #[(l) "\303 \304\305\n!*\207" [recentf-arrange-by-rule-others recentf-arrange-rules l recentf-build-mode-rules "others (%d)" recentf-arrange-by-rule] 2 (#$ . 21044)]) #@84 Convert directories in menu-elements L to rules in `recentf-arrange-rules' format. (defalias 'recentf-build-dir-rules #[(l) "\302\303\304 \"\210\305\306\307\310\"\237\")\207" [dirs l nil mapc #[(e) "\303\304!!\211\n\235\206 \nB\211)\207" [e dir dirs file-name-directory recentf-menu-element-value] 4] mapcar #[(d) "\301P\302PB\207" [d " (%d)" "\\`"] 3] sort string-lessp] 5 (#$ . 21329)]) #@224 Filter the list of menu-elements L to show only filenames. This simplified version of `recentf-show-basenames' does not handle duplicates. It is used by `recentf-arrange-by-dir' as its `recentf-arrange-by-rule-subfilter'. (defalias 'recentf-file-name-nondir #[(l) "\301\302\"\207" [l mapcar #[(e) "\301\302\303!!\303!\"\207" [e recentf-make-menu-element file-name-nondirectory recentf-menu-element-value] 4]] 3 (#$ . 21734)]) #@75 Filter the list of menu-elements L to build sub-menus for each directory. (defalias 'recentf-arrange-by-dir #[(l) "\304!\305\306\307!\237+\207" [l recentf-arrange-by-rule-others recentf-arrange-by-rule-subfilter recentf-arrange-rules recentf-build-dir-rules recentf-file-name-nondir nil recentf-arrange-by-rule] 3 (#$ . 22170)]) #@53 Used by `recentf-filter-changer' to hold its state. (defvar recentf-filter-changer-state nil (#$ . 22510)) #@240 *List of filters managed by `recentf-filter-changer'. Each filter is defined by a pair (FILTER-FUN . FILTER-LBL) where: - - FILTER-FUN is the function that filters menu-elements - - FILTER-LBL is the menu item used to activate the filter (custom-declare-variable 'recentf-filter-changer-alist ''((recentf-arrange-by-mode . "*Files by Mode*") (recentf-arrange-by-dir . "*Files by Directory*") (recentf-arrange-by-rule . "*Files by User Rule*")) '(#$ . -22624) :group 'recentf-filters :type '(repeat (cons function string)) :set (lambda (sym val) (setq recentf-filter-changer-state nil) (recentf-menu-customization-changed sym val))) #@65 Go to the next filter available (see `recentf-filter-changer'). (defalias 'recentf-filter-changer-goto-next #[nil ":\203A\302\211\207" [recentf-filter-changer-state recentf-update-menu-p t] 2 (#$ . 23263)]) #@66 Get the current filter available (see `recentf-filter-changer'). (defalias 'recentf-filter-changer-get-current #[nil "\204 :\205 @\207" [recentf-filter-changer-state recentf-filter-changer-alist] 1 (#$ . 23482)]) #@63 Get the next filter available (see `recentf-filter-changer'). (defalias 'recentf-filter-changer-get-next #[nil "\211:\203 A\211\204\n\202\n\211:\203 A :\205$ @)\207" [recentf-filter-changer-state filters recentf-filter-changer-alist] 2 (#$ . 23708)]) #@306 Manage a ring of filters. `recentf-filter-changer-alist' defines the filters in the ring. Actual filtering of L is delegated to the current filter in the ring. A filter menu item is displayed allowing to dynamically activate the next filter in the ring. If the filter ring is empty L is left unchanged. (defalias 'recentf-filter-changer #[(l) "\304 \305 \211\203\306 @\n\"\203\307A\310\311\312$C\n*\207" [next-filter-item current-filter-item l recentf-menu-filter-commands recentf-filter-changer-get-current recentf-filter-changer-get-next recentf-apply-menu-filter vector (recentf-filter-changer-goto-next) :active t] 6 (#$ . 23981)]) #@90 Cancel the current dialog. Used by `recentf-edit-list' and `recentf-open-files' dialogs. (defalias 'recentf-cancel-dialog #[(&rest ignore) "\300p!\210\301\302!\207" [kill-buffer message "Dialog canceled."] 2 (#$ . 24635) nil]) #@31 `recentf-dialog-mode' keymap. (defvar recentf-dialog-mode-map nil (#$ . 24868)) (byte-code "\204\302 \303\304\305#\210\303\306\307#\210\310 \"\210\302\207" [recentf-dialog-mode-map widget-keymap make-sparse-keymap define-key "q" recentf-cancel-dialog [down-mouse-1] widget-button-click set-keymap-parent] 4) #@129 Major mode used in recentf dialogs. These are the special commands of `recentf-dialog-mode' mode: q -- cancel this dialog. (defalias 'recentf-dialog-mode #[nil "\303\304\305\n!\207" [major-mode mode-name recentf-dialog-mode-map recentf-dialog-mode "recentf-dialog" use-local-map] 2 (#$ . 25190) nil]) #@73 Insert the name of the file just opened or written into `recentf-list'. (defalias 'recentf-add-file-hook #[nil "\203\301!\210\302\207" [buffer-file-name recentf-add-file nil] 2 (#$ . 25504)]) #@73 When a buffer is killed remove a non readable file from `recentf-list'. (defalias 'recentf-remove-file-hook #[nil "\203\301!\210\302\207" [buffer-file-name recentf-remove-if-non-readable nil] 2 (#$ . 25706)]) #@58 Update the recentf menu from the current `recentf-list'. (defalias 'recentf-update-menu-hook #[nil "\205\301\302\303\217\207" [recentf-update-menu-p nil (byte-code "\304\305 \n\306 $\207" [recentf-update-menu-p recentf-menu-path recentf-menu-title recentf-menu-before nil easy-menu-change recentf-make-menu-items] 5) ((error))] 3 (#$ . 25925)]) #@166 Insert a "(setq VARIABLE value)" in the current buffer. Optional argument LIMIT specifies a maximum length when VARIABLE value is a list (default to the full list). (defalias 'recentf-dump-variable #[(variable &optional limit) "J\211<\203(\n\250\203\n\303V\203\304 \n\"\305\306\"c\210\307\310 \"\210\311c\202.\305\312 #c)\207" [variable value limit 0 recentf-trunc-list format "(setq %S '(" mapc #[(e) "\301\302\"c\207" [e format "\n%S"] 3] "))\n" "(setq %S %S)\n"] 5 (#$ . 26282)]) #@66 Save the current `recentf-list' to the file `recentf-save-file'. (defalias 'recentf-save-list #[nil "\304\305\306!!\307\216rq\210\310 \210\311 \312 \"c\210\313\314\n\"\210\313\315!\210\316 !\203+\317ed #\210\320p!\210+\321\207" [#1=#:temp-buffer recentf-save-file-header recentf-max-saved-items recentf-save-file get-buffer-create generate-new-buffer-name " *temp*" ((byte-code "\301!\203\n\302!\210\301\207" [#1# buffer-name kill-buffer] 2)) erase-buffer format current-time-string recentf-dump-variable recentf-list recentf-filter-changer-state file-writable-p write-region kill-buffer nil] 4 (#$ . 26783) nil]) #@85 Used by `recentf-edit-list'. Holds list of files to be deleted from `recentf-list'. (defvar recentf-edit-selected-items nil (#$ . 27409)) #@79 Checkbox WIDGET action used by `recentf-edit-list' to select/unselect a file. (defalias 'recentf-edit-list-action #[(widget &rest ignore) "\303\304\"\211\n>\203\305 \n\"\306\307 \"\202 C\n\244\306\310 \")\207" [widget value recentf-edit-selected-items widget-get :tag delq message "%s removed from selection." "%s added to selection."] 4 (#$ . 27553)]) #@68 Allow the user to edit the files that are kept in the recent list. (defalias 'recentf-edit-list #[nil "r\305\306\307Q!q\210\310p!\210\311 \210\312\313 \210)\314 \315\316\n@\"\210\315\316\nA\"\210)\317\320\321!\210\320\322!\210\320\323!\210\315\324\f\"\210\320\325!\210\326\327\330\331\332$\210\320\333!\210\326\327\330\334\335$\210\336 \210\337 \210eb)\207" [recentf-menu-title inhibit-read-only all recentf-edit-selected-items recentf-list get-buffer-create "*" " - Edit list*" switch-to-buffer kill-all-local-variables t erase-buffer overlay-lists mapc delete-overlay nil widget-insert "Select the files to be deleted from the 'recentf-list'.\n\n" "Click on Ok to update the list. " "Click on Cancel or type \"q\" to quit.\n" #[(item) "\301\302\303\304\305\306\307\310\311& \207" [item widget-create checkbox :value nil :format "\n %[%v%] %t" :tag :notify recentf-edit-list-action] 10] "\n\n" widget-create push-button :notify #[(&rest ignore) "\203\302p!\210\303\304\"\210\305\306G\"\210\307\211\207\305\310!\207" [recentf-edit-selected-items recentf-update-menu-p kill-buffer mapc #[(item) "\302 \"\211\207" [item recentf-list delq] 3] message "%S file(s) removed from the list" t "No file selected."] 3] "Ok" " " recentf-cancel-dialog "Cancel" recentf-dialog-mode widget-setup] 5 (#$ . 27920) nil]) #@65 Remove all non-readable and excluded files from `recentf-list'. (defalias 'recentf-cleanup #[nil "G\303\304\305\306\"\" GZ\307\310 \311U\203\312\202* \313U\203&\314\202*\315\316 \"\"\210)\317\211\207" [recentf-list count recentf-update-menu-p delq nil mapcar #[(filename) "\301!\205 \302!\205 \207" [filename file-readable-p recentf-include-p] 2] message "%s removed from the list" 0 "No file" 1 "One file" format "%d files" t] 5 (#$ . 29244) nil]) #@67 Button WIDGET action used by `recentf-open-files' to open a file. (defalias 'recentf-open-files-action #[(widget &rest ignore) "\302p!\210\303 !!\207" [recentf-menu-action widget kill-buffer widget-value] 3 (#$ . 29716)]) #@68 String used by `recentf-open-files' to shift right sub-menu items. (defvar recentf-open-files-item-shift "" (#$ . 29945)) #@61 Insert MENU-ELEMENT item in the current interaction buffer. (defalias 'recentf-open-files-item #[(menu-element) "@A :\203* \211\305P\306\307\310\n\311\312\313\f\314P&\210\315\316 \"\210\317\320!*\202A\306\321\322\323\310\n\324\325 P\313 \326P\327\330 &\f\210\317\320!*\207" [menu-element file-path menu-item recentf-open-files-item-shift shift " " widget-create item :tag :sample-face bold :format "%{%t%}:\n" mapc recentf-open-files-item widget-insert "\n" push-button :button-face default :help-echo "Open " "%[%t%]" :notify recentf-open-files-action] 14 (#$ . 30073)]) #@255 Display buffer allowing user to choose a file from recently-opened list. The optional argument FILES may be used to specify the list, otherwise `recentf-list' is used. The optional argument BUFFER-NAME specifies which buffer to use for the interaction. (defalias 'recentf-open-files #[(&optional files buffer-name) "\204 \n\204\306 \306Qr\307\n!q\210\310p!\210\311 \210\312\313 \210)\314 \315\316 @\"\210\315\316 A\"\210)\317\320!\210\317\321!\210\322\315\323\324 \325\326\"\"\"\210)\317\327!\210\330\331\332\333\334$\210\335 \210\336 \210eb)\207" [files recentf-list buffer-name recentf-menu-title inhibit-read-only all "*" get-buffer-create switch-to-buffer kill-all-local-variables t erase-buffer overlay-lists mapc delete-overlay widget-insert "Click on a file to open it. " "Click on Cancel or type \"q\" to quit.\n\n" "" recentf-open-files-item recentf-apply-menu-filter mapcar recentf-make-default-menu-element "\n" widget-create push-button :notify recentf-cancel-dialog "Cancel" recentf-dialog-mode widget-setup recentf-open-files-item-shift recentf-menu-filter] 7 (#$ . 30662) nil]) #@56 Allow the user to open files that are not in the menu. (defalias 'recentf-open-more-files #[nil "\303 \233\304\n\305Q\"\207" [recentf-max-menu-items recentf-list recentf-menu-title recentf-open-files "*" " - More*"] 5 (#$ . 31775) nil]) #@215 Non-nil if Recentf mode is enabled. See the command `recentf-mode' for a description of this minor-mode. Setting this variable directly does not take effect; use either \[customize] or the function `recentf-mode'. (custom-declare-variable 'recentf-mode 'nil '(#$ . 32020) :set (lambda (symbol value) (funcall symbol (or value 0))) :initialize 'custom-initialize-default :group 'recentf :type 'boolean :require 'recentf) #@231 Toggle recentf mode. With prefix argument ARG, turn on if positive, otherwise off. Returns non-nil if the new state is enabled. When recentf mode is enabled, it maintains a menu for visiting files that were operated on recently. (defalias 'recentf-mode #[(&optional arg) "\203\f\306!\307V\202 ?\211\203<\n\204`\310\311 !\203#\312 !\210\310\313\314\315\"\210\313\316\315\"\210\313\317\320\"\210\313\321\322\"\210\202`\n\203`\323\322 \210\324\323 #\210\325\314\315\"\210\325\316\315\"\210\325\317\320\"\210\325\321\322\"\210\326\327 \203j\330\202k\331\"\210t\203~\332\333 \203{\334\202|\335\"\210\336 \210 \207" [arg recentf-mode recentf-initialized-p recentf-save-file recentf-update-menu-p recentf-menu-path prefix-numeric-value 0 t file-readable-p load-file add-hook find-file-hooks recentf-add-file-hook write-file-hooks menu-bar-update-hook recentf-update-menu-hook kill-emacs-hook recentf-save-list nil easy-menu-remove-item remove-hook run-hooks recentf-mode-hook recentf-mode-on-hook recentf-mode-off-hook message "Recentf mode %sabled" "en" "dis" force-mode-line-update recentf-menu-title] 5 (#$ . 32447) nil]) #@49 Hook run at the end of function `recentf-mode'. (custom-declare-variable 'recentf-mode-hook 'nil '(#$ . 33593) :group 'recentf :type 'hook) (byte-code "\303\301\304\305\306!\205 \306J#\210\203 \203\n\204\307\310\"\210\311\312!\210\313\314!\207" [load-file-name recentf-mode purify-flag add-minor-mode nil boundp recentf-mode-map eval-after-load (recentf-mode 1) provide recentf run-hooks recentf-load-hook] 5)