diff options
| author | Stefan Monnier | 2007-09-19 14:53:44 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2007-09-19 14:53:44 +0000 |
| commit | 2aa7c4d53f5765ff7a080717c7aff085d82c0fc0 (patch) | |
| tree | 4be07a5a5c346865d37de7b78394b417c2548a65 | |
| parent | d296d2c9bb76ff6c46a2dc1cfd1b8ec1b5d8dbe3 (diff) | |
| download | emacs-2aa7c4d53f5765ff7a080717c7aff085d82c0fc0.tar.gz emacs-2aa7c4d53f5765ff7a080717c7aff085d82c0fc0.zip | |
Remove spurious * in docstrings.
(recentf-save-list): Fix up comment style.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/recentf.el | 46 |
2 files changed, 26 insertions, 23 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 051a8e9502c..1338865004b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2007-09-19 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2007-09-19 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * recentf.el: Remove spurious * in docstrings. | ||
| 4 | (recentf-save-list): Fix up comment style. | ||
| 5 | |||
| 3 | * progmodes/octave-mod.el: Remove spurious * in docstrings. | 6 | * progmodes/octave-mod.el: Remove spurious * in docstrings. |
| 4 | (octave-mode-map): Move init into declaration and remove \t binding. | 7 | (octave-mode-map): Move init into declaration and remove \t binding. |
| 5 | (octave-mode-startup-message): Remove unused var. | 8 | (octave-mode-startup-message): Remove unused var. |
diff --git a/lisp/recentf.el b/lisp/recentf.el index 85f00b2bc5f..ce342d87639 100644 --- a/lisp/recentf.el +++ b/lisp/recentf.el | |||
| @@ -63,14 +63,14 @@ You should define the options of your own filters in this group." | |||
| 63 | :group 'recentf) | 63 | :group 'recentf) |
| 64 | 64 | ||
| 65 | (defcustom recentf-max-saved-items 20 | 65 | (defcustom recentf-max-saved-items 20 |
| 66 | "*Maximum number of items of the recent list that will be saved. | 66 | "Maximum number of items of the recent list that will be saved. |
| 67 | A nil value means to save the whole list. | 67 | A nil value means to save the whole list. |
| 68 | See the command `recentf-save-list'." | 68 | See the command `recentf-save-list'." |
| 69 | :group 'recentf | 69 | :group 'recentf |
| 70 | :type 'integer) | 70 | :type 'integer) |
| 71 | 71 | ||
| 72 | (defcustom recentf-save-file "~/.recentf" | 72 | (defcustom recentf-save-file "~/.recentf" |
| 73 | "*File to save the recent list into." | 73 | "File to save the recent list into." |
| 74 | :group 'recentf | 74 | :group 'recentf |
| 75 | :type 'file | 75 | :type 'file |
| 76 | :initialize 'custom-initialize-default | 76 | :initialize 'custom-initialize-default |
| @@ -91,7 +91,7 @@ file. See also the function `set-file-modes'." | |||
| 91 | integer)) | 91 | integer)) |
| 92 | 92 | ||
| 93 | (defcustom recentf-exclude nil | 93 | (defcustom recentf-exclude nil |
| 94 | "*List of regexps and predicates for filenames excluded from the recent list. | 94 | "List of regexps and predicates for filenames excluded from the recent list. |
| 95 | When a filename matches any of the regexps or satisfies any of the | 95 | When a filename matches any of the regexps or satisfies any of the |
| 96 | predicates it is excluded from the recent list. | 96 | predicates it is excluded from the recent list. |
| 97 | A predicate is a function that is passed a filename to check and that | 97 | A predicate is a function that is passed a filename to check and that |
| @@ -109,7 +109,7 @@ It handles the case of remote files as well." | |||
| 109 | 109 | ||
| 110 | (defcustom recentf-keep | 110 | (defcustom recentf-keep |
| 111 | '(recentf-keep-default-predicate) | 111 | '(recentf-keep-default-predicate) |
| 112 | "*List of regexps and predicates for filenames kept in the recent list. | 112 | "List of regexps and predicates for filenames kept in the recent list. |
| 113 | Regexps and predicates are tried in the specified order. | 113 | Regexps and predicates are tried in the specified order. |
| 114 | When nil all filenames are kept in the recent list. | 114 | When nil all filenames are kept in the recent list. |
| 115 | When a filename matches any of the regexps or satisfies any of the | 115 | When a filename matches any of the regexps or satisfies any of the |
| @@ -135,13 +135,13 @@ Set VARIABLE with VALUE, and force a rebuild of the recentf menu." | |||
| 135 | (set-default variable value))) | 135 | (set-default variable value))) |
| 136 | 136 | ||
| 137 | (defcustom recentf-menu-title "Open Recent" | 137 | (defcustom recentf-menu-title "Open Recent" |
| 138 | "*Name of the recentf menu." | 138 | "Name of the recentf menu." |
| 139 | :group 'recentf | 139 | :group 'recentf |
| 140 | :type 'string | 140 | :type 'string |
| 141 | :set 'recentf-menu-customization-changed) | 141 | :set 'recentf-menu-customization-changed) |
| 142 | 142 | ||
| 143 | (defcustom recentf-menu-path '("File") | 143 | (defcustom recentf-menu-path '("File") |
| 144 | "*Path where to add the recentf menu. | 144 | "Path where to add the recentf menu. |
| 145 | If nil add it at top level (see also `easy-menu-add-item')." | 145 | If nil add it at top level (see also `easy-menu-add-item')." |
| 146 | :group 'recentf | 146 | :group 'recentf |
| 147 | :type '(choice (const :tag "Top Level" nil) | 147 | :type '(choice (const :tag "Top Level" nil) |
| @@ -149,7 +149,7 @@ If nil add it at top level (see also `easy-menu-add-item')." | |||
| 149 | :set 'recentf-menu-customization-changed) | 149 | :set 'recentf-menu-customization-changed) |
| 150 | 150 | ||
| 151 | (defcustom recentf-menu-before "Open File..." | 151 | (defcustom recentf-menu-before "Open File..." |
| 152 | "*Name of the menu before which the recentf menu will be added. | 152 | "Name of the menu before which the recentf menu will be added. |
| 153 | If nil add it at end of menu (see also `easy-menu-add-item')." | 153 | If nil add it at end of menu (see also `easy-menu-add-item')." |
| 154 | :group 'recentf | 154 | :group 'recentf |
| 155 | :type '(choice (string :tag "Name") | 155 | :type '(choice (string :tag "Name") |
| @@ -157,18 +157,18 @@ If nil add it at end of menu (see also `easy-menu-add-item')." | |||
| 157 | :set 'recentf-menu-customization-changed) | 157 | :set 'recentf-menu-customization-changed) |
| 158 | 158 | ||
| 159 | (defcustom recentf-menu-action 'find-file | 159 | (defcustom recentf-menu-action 'find-file |
| 160 | "*Function to invoke with a filename item of the recentf menu. | 160 | "Function to invoke with a filename item of the recentf menu. |
| 161 | The default is to call `find-file' to edit the selected file." | 161 | The default is to call `find-file' to edit the selected file." |
| 162 | :group 'recentf | 162 | :group 'recentf |
| 163 | :type 'function) | 163 | :type 'function) |
| 164 | 164 | ||
| 165 | (defcustom recentf-max-menu-items 10 | 165 | (defcustom recentf-max-menu-items 10 |
| 166 | "*Maximum number of items in the recentf menu." | 166 | "Maximum number of items in the recentf menu." |
| 167 | :group 'recentf | 167 | :group 'recentf |
| 168 | :type 'integer) | 168 | :type 'integer) |
| 169 | 169 | ||
| 170 | (defcustom recentf-menu-filter nil | 170 | (defcustom recentf-menu-filter nil |
| 171 | "*Function used to filter files displayed in the recentf menu. | 171 | "Function used to filter files displayed in the recentf menu. |
| 172 | A nil value means no filter. The following functions are predefined: | 172 | A nil value means no filter. The following functions are predefined: |
| 173 | 173 | ||
| 174 | - `recentf-sort-ascending' | 174 | - `recentf-sort-ascending' |
| @@ -222,13 +222,13 @@ elements (see `recentf-make-menu-element' for menu element form)." | |||
| 222 | function)) | 222 | function)) |
| 223 | 223 | ||
| 224 | (defcustom recentf-menu-open-all-flag nil | 224 | (defcustom recentf-menu-open-all-flag nil |
| 225 | "*Non-nil means to show an \"All...\" item in the menu. | 225 | "Non-nil means to show an \"All...\" item in the menu. |
| 226 | This item will replace the \"More...\" item." | 226 | This item will replace the \"More...\" item." |
| 227 | :group 'recentf | 227 | :group 'recentf |
| 228 | :type 'boolean) | 228 | :type 'boolean) |
| 229 | 229 | ||
| 230 | (defcustom recentf-menu-append-commands-flag t | 230 | (defcustom recentf-menu-append-commands-flag t |
| 231 | "*Non-nil means to append command items to the menu." | 231 | "Non-nil means to append command items to the menu." |
| 232 | :group 'recentf | 232 | :group 'recentf |
| 233 | :type 'boolean) | 233 | :type 'boolean) |
| 234 | 234 | ||
| @@ -237,7 +237,7 @@ This item will replace the \"More...\" item." | |||
| 237 | "22.1") | 237 | "22.1") |
| 238 | 238 | ||
| 239 | (defcustom recentf-auto-cleanup 'mode | 239 | (defcustom recentf-auto-cleanup 'mode |
| 240 | "*Define when to automatically cleanup the recent list. | 240 | "Define when to automatically cleanup the recent list. |
| 241 | The following values can be set: | 241 | The following values can be set: |
| 242 | 242 | ||
| 243 | - `mode' | 243 | - `mode' |
| @@ -270,13 +270,13 @@ cleanup the list." | |||
| 270 | (recentf-auto-cleanup)))) | 270 | (recentf-auto-cleanup)))) |
| 271 | 271 | ||
| 272 | (defcustom recentf-initialize-file-name-history t | 272 | (defcustom recentf-initialize-file-name-history t |
| 273 | "*Non-nil means to initialize `file-name-history' with the recent list. | 273 | "Non-nil means to initialize `file-name-history' with the recent list. |
| 274 | If `file-name-history' is not empty, do nothing." | 274 | If `file-name-history' is not empty, do nothing." |
| 275 | :group 'recentf | 275 | :group 'recentf |
| 276 | :type 'boolean) | 276 | :type 'boolean) |
| 277 | 277 | ||
| 278 | (defcustom recentf-load-hook nil | 278 | (defcustom recentf-load-hook nil |
| 279 | "*Normal hook run at end of loading the `recentf' package." | 279 | "Normal hook run at end of loading the `recentf' package." |
| 280 | :group 'recentf | 280 | :group 'recentf |
| 281 | :type 'hook) | 281 | :type 'hook) |
| 282 | 282 | ||
| @@ -777,7 +777,7 @@ Filenames are relative to the `default-directory'." | |||
| 777 | ("Java files (%d)" ".\\.java\\'") | 777 | ("Java files (%d)" ".\\.java\\'") |
| 778 | ("C/C++ files (%d)" "c\\(pp\\)?\\'") | 778 | ("C/C++ files (%d)" "c\\(pp\\)?\\'") |
| 779 | ) | 779 | ) |
| 780 | "*List of rules used by `recentf-arrange-by-rule' to build sub-menus. | 780 | "List of rules used by `recentf-arrange-by-rule' to build sub-menus. |
| 781 | A rule is a pair (SUB-MENU-TITLE . MATCHER). SUB-MENU-TITLE is the | 781 | A rule is a pair (SUB-MENU-TITLE . MATCHER). SUB-MENU-TITLE is the |
| 782 | displayed title of the sub-menu where a '%d' `format' pattern is | 782 | displayed title of the sub-menu where a '%d' `format' pattern is |
| 783 | replaced by the number of items in the sub-menu. MATCHER is a regexp | 783 | replaced by the number of items in the sub-menu. MATCHER is a regexp |
| @@ -793,7 +793,7 @@ may have been modified to match another rule." | |||
| 793 | (repeat regexp)))) | 793 | (repeat regexp)))) |
| 794 | 794 | ||
| 795 | (defcustom recentf-arrange-by-rule-others "Other files (%d)" | 795 | (defcustom recentf-arrange-by-rule-others "Other files (%d)" |
| 796 | "*Title of the `recentf-arrange-by-rule' sub-menu. | 796 | "Title of the `recentf-arrange-by-rule' sub-menu. |
| 797 | This is for the menu where items that don't match any | 797 | This is for the menu where items that don't match any |
| 798 | `recentf-arrange-rules' are displayed. If nil these items are | 798 | `recentf-arrange-rules' are displayed. If nil these items are |
| 799 | displayed in the main recent files menu. A '%d' `format' pattern in | 799 | displayed in the main recent files menu. A '%d' `format' pattern in |
| @@ -803,7 +803,7 @@ the title is replaced by the number of items in the sub-menu." | |||
| 803 | (string :tag "Title"))) | 803 | (string :tag "Title"))) |
| 804 | 804 | ||
| 805 | (defcustom recentf-arrange-by-rules-min-items 0 | 805 | (defcustom recentf-arrange-by-rules-min-items 0 |
| 806 | "*Minimum number of items in a `recentf-arrange-by-rule' sub-menu. | 806 | "Minimum number of items in a `recentf-arrange-by-rule' sub-menu. |
| 807 | If the number of items in a sub-menu is less than this value the | 807 | If the number of items in a sub-menu is less than this value the |
| 808 | corresponding sub-menu items are displayed in the main recent files | 808 | corresponding sub-menu items are displayed in the main recent files |
| 809 | menu or in the `recentf-arrange-by-rule-others' sub-menu if | 809 | menu or in the `recentf-arrange-by-rule-others' sub-menu if |
| @@ -812,7 +812,7 @@ defined." | |||
| 812 | :type 'number) | 812 | :type 'number) |
| 813 | 813 | ||
| 814 | (defcustom recentf-arrange-by-rule-subfilter nil | 814 | (defcustom recentf-arrange-by-rule-subfilter nil |
| 815 | "*Function called by a rule based filter to filter sub-menu elements. | 815 | "Function called by a rule based filter to filter sub-menu elements. |
| 816 | A nil value means no filter. See also `recentf-menu-filter'. | 816 | A nil value means no filter. See also `recentf-menu-filter'. |
| 817 | You can't use another rule based filter here." | 817 | You can't use another rule based filter here." |
| 818 | :group 'recentf-filters | 818 | :group 'recentf-filters |
| @@ -966,7 +966,7 @@ duplicates. It is used by `recentf-arrange-by-dir' as its | |||
| 966 | (recentf-arrange-by-dir . "Grouped by Directory") | 966 | (recentf-arrange-by-dir . "Grouped by Directory") |
| 967 | (recentf-arrange-by-rule . "Grouped by Custom Rules") | 967 | (recentf-arrange-by-rule . "Grouped by Custom Rules") |
| 968 | ) | 968 | ) |
| 969 | "*List of filters managed by `recentf-filter-changer'. | 969 | "List of filters managed by `recentf-filter-changer'. |
| 970 | Each filter is defined by a pair (FUNCTION . LABEL), where FUNCTION is | 970 | Each filter is defined by a pair (FUNCTION . LABEL), where FUNCTION is |
| 971 | the filter function, and LABEL is the menu item displayed to select | 971 | the filter function, and LABEL is the menu item displayed to select |
| 972 | that filter." | 972 | that filter." |
| @@ -1280,9 +1280,9 @@ Write data into the file specified by `recentf-save-file'." | |||
| 1280 | (insert (format recentf-save-file-header (current-time-string))) | 1280 | (insert (format recentf-save-file-header (current-time-string))) |
| 1281 | (recentf-dump-variable 'recentf-list recentf-max-saved-items) | 1281 | (recentf-dump-variable 'recentf-list recentf-max-saved-items) |
| 1282 | (recentf-dump-variable 'recentf-filter-changer-current) | 1282 | (recentf-dump-variable 'recentf-filter-changer-current) |
| 1283 | (insert "\n\n;;; Local Variables:\n" | 1283 | (insert "\n\n;; Local Variables:\n" |
| 1284 | (format ";;; coding: %s\n" recentf-save-file-coding-system) | 1284 | (format ";; coding: %s\n" recentf-save-file-coding-system) |
| 1285 | ";;; End:\n") | 1285 | ";; End:\n") |
| 1286 | (write-file (expand-file-name recentf-save-file)) | 1286 | (write-file (expand-file-name recentf-save-file)) |
| 1287 | (when recentf-save-file-modes | 1287 | (when recentf-save-file-modes |
| 1288 | (set-file-modes recentf-save-file recentf-save-file-modes)) | 1288 | (set-file-modes recentf-save-file recentf-save-file-modes)) |