1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-15 09:47:20 +00:00
Commit Graph

42 Commits

Author SHA1 Message Date
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
Gerd Moellmann
70d9b8fd90 (recentf): Added version tag to the defgroup of
recentf.

(recentf-cleanup): Changed to remove excluded file
too.
(recentf-edit-list-action): `recentf-edit-list' checkbox widget
action to select/unselect a file.
(recentf-edit-list): Code cleanup and improvement.
(recentf-open-more-files-action): `recentf-open-more-files' button
widget action to open a file.
(recentf-open-more-files): No more use standard completion but
widgets.
(recentf-more-collection): Deleted.
(recentf-more-history): Deleted.
(recentf-setup-more-completion): Deleted.

(recentf-mode): No more needs that Emacs is running
under a window-system.

(recentf-edit-list): New command to edit the recent
list which allow the user to remove files.
(recentf-edit-selected-items): New global variable, used by
`recentf-edit-list' to hold the list of files to be removed from
the recent list.
(recentf-make-menu-items): Updated to display a "Edit list..."
menu item.  Minor code cleanup.

(recentf-open-more-files): New command to open files
that are not displayed in the menu.
(recentf-more-collection): New global variable holding the set of
permissible completions used by `recentf-open-more-files'.
(recentf-more-history): New global variable holding the history list
used by `recentf-open-more-files' completion.
(recentf-setup-more-completion): New function to setup completion for
`recentf-open-more-files'.
(recentf-make-menu-items): Updated to display a "More..." menu item.

* recentf.el (recentf-menu-action): Doc fixed.

(recentf-menu-filter): Doc updated.
(recentf-update-menu-hook): Allow menu filters to force menu update.
(recentf-make-menu-items): New menu filter handling.
(recentf-make-menu-item): New helper function.
(recentf-menu-elements): New menu handling function.
(recentf-sort-ascending): Updated to new menu filter handling.
(recentf-sort-descending): Updated to new menu filter handling.
(recentf-sort-basenames-ascending): New menu filter function.
(recentf-sort-basenames-descending): New menu filter function.
(recentf-show-basenames): New menu filter function.
(recentf-show-basenames-ascending): New menu filter function.
(recentf-show-basenames-descending): New menu filter function.
2000-03-01 12:46:12 +00:00
Dave Love
faeeab8475 (recentf): Add :version to defgroup. 2000-02-02 14:46:06 +00:00
Gerd Moellmann
25e1cbac6d New file. Setup a menu of recently opened files 1999-10-12 21:08:00 +00:00