1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-17 10:06:13 +00:00
Commit Graph

53 Commits

Author SHA1 Message Date
David Ponce
5d24c60e3a (recentf-open-files-item): Include newline in button
field, so opening a file will work, when the point is at the end
of the file name.  Allow, for example, to [i]search a file by
extension and just push RET to open it.
2006-04-03 14:34:28 +00:00
Thien-Thi Nguyen
aaef169dc6 Update years in copyright notice; nfc. 2006-02-06 15:23:23 +00:00
David Ponce
a07efa9f7c (recentf-dialog-goto-first): Fix missing error condition.
(recentf-edit-list, recentf-open-files): Signal an error when
there is no recent file.
2005-12-15 20:23:46 +00:00
David Ponce
52d2876f3c Improvement of the menu code.
(recentf-enabled-p): Move before first use.  Use `kill-emacs-hook'
instead of menu hook.
(recentf-show-menu, recentf-hide-menu): New functions.
(recentf-menu-customization-changed, recentf-mode): Use them.
(recentf-menu-action, recentf-max-menu-items)
(recentf-menu-open-all-flag, recentf-menu-append-commands-flag)
(recentf-arrange-by-rule-others)
(recentf-arrange-by-rules-min-items)
(recentf-arrange-by-rule-subfilter) : Don't use
`recentf-menu-customization-changed'.
(recentf-arrange-rules): Likewise.  Accept functions to compute
sub-menu titles.
(recentf-menu-filter): Likewise.  Doc fix.
(recentf-menu-value-shortcut): Doc fix.
(recentf-dump-variable): Quote atom value.
(recentf-make-menu-items): Update to use it as a menu filter.
(recentf-match-rule): New function.
(recentf-arrange-by-rule): Use it.
(recentf-indirect-mode-rule): New function.
(recentf-build-mode-rules): Use it.
(recentf-dir-rule): New function.
(recentf-arrange-by-dir): Use it.
(recentf-filter-changer-current): Rename from
`recentf-filter-changer-state'.  All references updated.
(recentf-filter-changer-alist): Update filter names.
(recentf-filter-changer-select): New function.
(recentf-filter-changer): Use it.  Make a sub-menu from filters
available in `recentf-filter-changer-alist'.

(recentf-data-cache, recentf-clear-data)
(recentf-update-menu): Remove.  All references updated.
(recentf-match-rule-p, recentf-build-dir-rules)
(recentf-filter-changer-goto-next)
(recentf-filter-changer-get-current)
(recentf-filter-changer-get-next): Remove.
2005-12-09 08:16:04 +00:00
David Ponce
d973cf9cdb (recentf-arrange-by-rule): Handle a special `auto-mode-alist'-like
"strip suffix" rule.
(recentf-build-mode-rules): Handle second level auto-mode entries.
2005-11-25 07:57:21 +00:00
David Ponce
b6b5618c15 (recentf-track-opened-file)
(recentf-track-closed-file, recentf-update-menu)
(recentf-used-hooks, recentf-enabled-p): Move before dialog stuff.
(recentf-dialog-mode-map): Map follow-link to RET, so dialogs obey
mouse-1-click-follows-link.
2005-10-14 09:05:15 +00:00
David Ponce
4e8cb3117c (recentf-menu-open-all-flag): New option.
(recentf-digit-shortcut-command-name): New function.
(recentf--shortcuts-keymap): New variable.
(recentf-menu-shortcuts): New variable.
(recentf-make-menu-items): Initialize it.  Replace the "More..."
menu item by "All...", if `recentf-menu-open-all-flag' is non-nil.
(recentf-menu-value-shortcut): New function.
(recentf-make-menu-item): Use it.  No more in-lined.
(recentf-dialog-mode-map): Base on `recentf--shortcuts-keymap'.
(recentf-open-most-recent-file): Rename from
`recentf-open-file-with-key'.  Don't depend on key binding.
(recentf-mode-map): New variable.
(recentf-mode): Use it.
2005-10-07 07:52:58 +00:00
David Ponce
ad8b6d89ef (recentf-filename-handlers): Rename from
`recentf-filename-handler'.  Allow a list of functions.
(recentf-menu-items-for-commands): Fix :help strings.
(recentf-apply-filename-handlers): New function.
(recentf-expand-file-name): Use it.
(recentf-cleanup): Remove duplicates too.
2005-09-30 06:18:55 +00:00
David Ponce
9be6a03949 (recentf-save-file-modes): New option.
(recentf-save-list): Use it.
2005-09-15 08:02:18 +00:00
Reiner Steib
9815ca3d25 (recentf-filename-handler): Add custom choice
`abbreviate-file-name'.
2005-09-08 18:45:38 +00:00
David Ponce
e58af6f198 (recentf-show-file-shortcuts-flag): New option.
(recentf-expand-file-name): Doc fix.
(recentf-dialog-mode-map): Define digit shortcuts.
(recentf--files-with-key): New variable.
(recentf-show-digit-shortcut-filter): New function.
(recentf-open-files-items): New function.
(recentf-open-files): Use it.
(recentf-open-file-with-key): New command.
2005-09-08 08:54:34 +00:00
Thien-Thi Nguyen
0d30b33766 Update years in copyright notice; nfc. 2005-08-06 22:13:43 +00:00
Juanma Barranquero
8154a06e94 (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.
2005-07-28 13:00:18 +00:00
Lute Kamstra
086add1519 Update FSF's address. 2005-07-04 23:32:44 +00:00
David Ponce
7b2ab96952 Require 'tree-widget instead of 'wid-edit.
(recentf-filename-handler): Fix widget :type.
(recentf-cancel-dialog, recentf-open-more-files)
(recentf-open-files-action): Doc fix.
(recentf-dialog-goto-first): New function.
(recentf-dialog-mode-map): Set parent keymap first.
(recentf-dialog-mode): Define with define-derived-mode.  Don't
display continuation lines in dialogs.
(recentf-edit-list): Rename from recentf-edit-selected-items.
(recentf-edit-list-select): Rename from recentf-edit-list-action.
Simplify.
(recentf-edit-list-validate): New function.
(recentf-edit-list): Update accordingly.
(recentf-open-files-item-shift): Remove.
(recentf-open-files-item): Convert menu elements into tree and
link widgets.  Don't create the widgets.
(recentf-open-files): Update accordingly.
(recentf-save-list): Untabify.
2005-06-26 07:42:38 +00:00
Lute Kamstra
cdda556dbf (recentf-dialog-mode): Use kill-all-local-variables and
run-mode-hooks.
(recentf-edit-list, recentf-open-files): Don't call
kill-all-local-variables directly.
2005-06-14 12:02:42 +00:00
Richard M. Stallman
1376845c3c Whitespace change. 2005-05-31 04:19:10 +00:00
Kenichi Handa
8dde0e95d4 (recentf-save-file-coding-system): New variable.
(recentf-save-list): Encode the file by
recentf-save-file-coding-system and add coding: tag.
2005-04-22 05:38:29 +00:00
David Ponce
eafc2b271a (recentf-keep): New option.
(recentf-menu-action): Default to `find-file'.
(recentf-keep-non-readable-files-flag)
(recentf-keep-non-readable-files-p)
(recentf-file-readable-p, recentf-find-file)
(recentf-cleanup-remote): Remove.
(recentf-include-p): More robust.
(recentf-keep-p): New function.
(recentf-remove-if-non-kept): Rename from
`recentf-remove-if-non-readable'. Use `recentf-keep-p'. All
callers updated.
(recentf-menu-items-for-commands): Fix help string.
(recentf-track-closed-file): Update. Doc fix.
(recentf-cleanup): Update. Count removed files. Doc fix.
2005-03-23 07:20:48 +00:00
Eli Zaretskii
068f123a5f (recentf-cleanup-remote): New variable.
(recentf-cleanup): Use it to conditionally check availablity of
remote files.
2005-03-19 14:10:46 +00:00
Kim F. Storm
bf247b6ed0 Change release version from 21.4 to 22.1 throughout.
Change development version from 21.3.50 to 22.0.50.
2005-02-09 15:50:47 +00:00
David Ponce
50ed4c9619 (recentf-menu-path): Use menu item name. 2004-11-06 18:27:56 +00:00
David Ponce
8286219059 (recentf-edit-list): Update the menu when the recentf
list has been modified.
2004-10-12 10:19:10 +00:00
Richard M. Stallman
a0df7a3285 (recentf-save-list): Catch and warn about errors. 2004-04-20 20:54:53 +00:00
Miles Bader
1f3ddf11e8 Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-196
Remove RCS keywords

2004-04-10  Miles Bader  <miles@gnu.org>

   RCS keyword removal (only non-comment changes are enumerated here):

   * lisp/emacs-lisp/bytecomp.el (byte-compile-version): Variable removed.
   (byte-compile-insert-header): Don't use `byte-compile-version'.
   * lisp/url/url-vars.el (url-version): Use the constant string "Emacs"
   instead of calculating something from the RCS `State' keyword
   [the latter is almost entirely useless anyway].
   * lisp/forms.el (forms-version): Variable removed.
   (forms-mode): Don't use `forms-version'.
   * lisp/recentf.el (recentf-version): Variable removed.
   * lisp/progmodes/delphi.el (delphi-version): Variable removed.
   * lisp/progmodes/ada-mode.el (ada-mode): RCS keyword removed from docstring.
2004-04-10 05:55:49 +00:00
Eli Zaretskii
51c8b53fd2 (recentf-initialize-file-name-history): New defcustom.
(recentf-load-list): When `recentf-initialize-file-name-history'
is non-nil, initialize an empty `file-name-history' with the
recent list.
2003-09-28 08:42:49 +00:00
Glenn Morris
f6a9235a43 David Ponce <david@dponce.com>
(recentf-exclude): Accept predicates too.
(recentf-file-readable-p): New function.
(recentf-include-p): Handle predicates in recentf-exclude.
(recentf-add-file): Doc fix.  Use recentf-file-readable-p.
(recentf-cleanup): Likewise.
(recentf-save-list): Use write-file to handle backup of recentf-save-file.
2003-09-15 16:24:35 +00:00
Eli Zaretskii
d5d78bd53e Ensure that recentf correctly update the menu bar:
(recentf-menu-path,recentf-menu-before): Doc fix.
(recentf-menu-bar): New function.
(recentf-clear-data): Use it
(recentf-update-menu): Likewise.  Use easy-menu-add-item instead
of easy-menu-change.
2003-09-08 19:01:57 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Juanma Barranquero
46a75c30d0 (recentf-cleanup): Swap tests for exclusion and accessibility. 2003-05-02 12:16:46 +00:00
Juanma Barranquero
be9e7056da Major rewrite. The code is reordered, cleaner and faster.
Introduced new options to automatically cleanup the recent list,
and to handle filename transformation (for example to use true
filenames).
(recentf-version): New constant.
(recentf-save-file-header): Moved.
(recentf-data-cache): New variable.
(recentf-update-menu-p, recentf-initialized-p): Removed.
(recentf-menu-customization-changed): Moved.  Doc fix.
(recentf-max-saved-items): Doc fix.
(recentf-save-file): Doc fix.  No more expand filename here.
(recentf-exclude, recentf-menu-action)
(recentf-menu-filter): Doc fix.
(recentf-menu-append-commands-flag): Renamed from...
(recentf-menu-append-commands-p): Made obsolete.
(recentf-keep-non-readable-files-flag): Renamed from...
(recentf-keep-non-readable-files-p): Made obsolete.
(recentf-auto-cleanup, recentf-filename-handler): New options.
(recentf-string-equal, recentf-string-lessp)
(recentf-string-member): New functions.
(recentf-trunc-list): Moved.
(recentf-dump-variable): Moved.  Better code and output format.
(recentf-auto-cleanup-timer): New variable.
(recentf-auto-cleanup): New function.
(recentf-push, recentf-expand-file-name): New functions.
(recentf-add-file): In-lined.  Use above functions.
(recentf-remove-if-non-readable): In-lined.  Expand file name.
(recentf-find-file): Use `recentf-remove-if-non-readable'.
(recentf-directory-compare): Moved.  Use `recentf-string-equal'
and `recentf-string-lessp' to do comparisons.
(recentf-menu-items-for-commands)
(recentf-menu-filter-commands): Moved.
(recentf-elements, recentf-make-menu-element)
(recentf-menu-element-item, recentf-menu-element-value)
(recentf-set-menu-element-item, recentf-set-menu-element-value)
(recentf-sub-menu-element-p, recentf-make-default-menu-element)
(recentf-menu-elements): In-lined. Some doc fix.
(recentf-apply-menu-filter): Better code.
(recentf-make-menu-items): Doc fix.  Use
`recentf-menu-append-commands-flag'.
(recentf-make-menu-item): In-lined.  Better code.
(recentf-clear-data): New function.
(recentf-sort-ascending, recentf-sort-descending)
(recentf-sort-basenames-ascending)
(recentf-sort-basenames-descending)
(recentf-sort-directories-ascending)
(recentf-sort-directories-descending)
(recentf-show-basenames-ascending)
(recentf-show-basenames-descending: In-lined.  Better code.  Some
doc fix.
(recentf-show-basenames)
(recentf-relative-filter): Better code.  Doc fix.
(recentf-arrange-by-rule-subfilter): Doc fix.  Improved :set code.
(recentf-match-rule-p): Use filename instead of file-path.
(recentf-arrange-by-rule, recentf-build-mode-rules)
(recentf-arrange-by-mode, recentf-build-dir-rules)
(recentf-file-name-nondir)
(recentf-filter-changer-alist): Some doc fix and code cleanup.
(recentf-filter-changer-goto-next): Doc fix.  Call
`recentf-clear-data'.
(recentf-filter-changer-get-current)
(recentf-filter-changer-get-next): In-lined.  Doc fix and better
code.
(recentf-filter-changer): Doc fix and better code.
(recentf-cancel-dialog): Doc fix.
(recentf-dialog-mode-map): Initialized in defvar.
(recentf-dialog-mode): Doc fix.
(recentf-track-opened-file): Renamed from...
(recentf-add-file-hook): Removed.
(recentf-track-closed-file): Renamed from...
(recentf-remove-file-hook): Removed.
(recentf-update-menu-hook): Removed.  Replaced by...
(recentf-update-menu): New.  Better catch unnecessary updates.
Display a message on error.
(recentf-used-hooks): New constant.
(recentf-enabled-p): New function.
(recentf-edit-selected-items)
(recentf-open-files-action)
(recentf-open-files-item-shift): Doc fix.
(recentf-edit-list-action)
(recentf-open-files-item): Doc fix.  Code cleanup.
(recentf-edit-list, recentf-open-files)
(recentf-open-more-files): Likewise.  Removed autoload cookie.
(recentf-save-list, recentf-cleanup): Likewise.  Moved.
(recentf-load-list): New command.
(recentf-mode): Better code.  Does nothing if enabling the already
enabled mode.
2003-04-26 23:41:59 +00:00
Juanma Barranquero
c60ee5e70f Cygwin support patch. 2003-01-31 15:24:20 +00:00
Pavel Janík
b1d1e9389c Remove dot at the end of sentence. 2002-04-29 09:27:25 +00:00
Pavel Janík
b03a2115d3 (recentf-menu-before): Use string to specify path in the menu. 2002-04-28 12:11:55 +00:00
Pavel Janík
0ff9b955fe Doc fixes. 2001-12-20 18:59:32 +00:00
Gerd Moellmann
7f7d5b9ec4 (recentf-dump-variable): Handle a value of nil
correctly.
2001-08-02 10:54:51 +00:00
Pavel Janík
e8af40eed4 Some fixes to follow coding conventions. 2001-07-16 12:23:00 +00:00
Dave Love
b2639d518a (recentf-menu-filter): Fix :type. 2001-02-07 23:51:21 +00:00
Gerd Moellmann
3493008d5a (recentf-menu-items-for-commands)
(recentf-make-menu-items, recentf-make-menu-item)
(recentf-filter-changer): Added :help and :active menu-item
properties.
(recentf-build-dir-rules, recentf-dump-variable)
(recentf-edit-list, recentf-open-files-item)
(recentf-open-files): Replaced unnecessary `mapcar' with new
built-in `mapc'.
2000-11-22 17:05:02 +00:00
Stefan Monnier
0a93a92065 (recentf-mode): Drop unneeded positional args. 2000-11-03 22:34:43 +00:00
Miles Bader
a30ccae670 (recentf-mode): Variable removed.
(recentf-mode): Use `define-minor-mode'.
2000-10-25 11:38:08 +00:00
Dave Love
0a1280b229 Maintainer's checkdoc fixes. 2000-10-12 16:41:22 +00:00
Dave Love
fdd63a1c86 Doc fixes. 2000-10-08 16:34:14 +00:00
Gerd Moellmann
0c8f875908 (recent-dialog-mode-map): Bind down-mouse-1 to
`widget-button-click'. so that one can use left mouse button to
click on dialog buttons.
2000-08-14 12:43:13 +00:00
Dave Love
bc66a9a99a Fix CRLF eols. 2000-07-24 13:39:05 +00:00
Gerd Moellmann
21ab62bdf2 Update from author. 2000-07-18 12:59:01 +00:00
Gerd Moellmann
f56e2e8e6d Fixed recentf-edit-list and recentf-open-more-files
commands.  Require `wid-edit' at run-time.

Added some "Commentary".
(recentf-open-more-files, recentf-edit-list): Minor changes to
move the point at the top of the file list.  This behaviour is
consistent with the menu one when the list contains a lot of
files.
(recentf-cleanup): Now displays the number of items removed from
the list.
(recentf-relative-filter) New menu filter to show filenames
relative to `default-directory'.
2000-06-07 15:33:22 +00:00
Gerd Moellmann
1f24a709cc (recentf-keep-non-readable-files-p): Remove
double/nested definition.
2000-03-12 16:18:34 +00:00
Dave Love
f64ce78896 (recentf-keep-non-readable-files-p): Add :set,
:require to defcustom.
2000-03-07 20:31:06 +00:00
Gerd Moellmann
17d7ad5951 (recentf-keep-non-readable-files-p): Quote args
to remove-hook and add-hook.
2000-03-07 12:34:58 +00:00