GNU bug report logs -
#56148
[PATCH] New command recentf-open
Previous Next
Reported by: Stefan Kangas <stefan <at> marxist.se>
Date: Wed, 22 Jun 2022 14:59:02 UTC
Severity: wishlist
Tags: patch
Fixed in version 29.1
Done: Stefan Kangas <stefan <at> marxist.se>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 56148 <at> debbugs.gnu.org (full text, mbox):
> From: Stefan Kangas <stefan <at> marxist.se>
> Date: Wed, 22 Jun 2022 16:57:43 +0200
>
> In recentf-mode, I think it would be useful to provide a command to
> open recent files using the minibuffer. Please see the attached
> patch.
Thanks.
> +(defun recentf-open (file)
> + "Prompt for FILE in `recentf-list' and visit it.
> +Enable `recentf-mode' if it isn't already."
> + (interactive
> + (list
> + (progn (unless recentf-mode (recentf-mode 1))
> + (completing-read (format-prompt "Open recent file" nil)
> + (mapcar #'abbreviate-file-name recentf-list)
Shouldn't you apply abbreviate-file-name only if recentf-menu-filter
is set to abbreviate them in the menu?
This mode is also described in the user manual; shouldn't this new
command be documented there?
This bug report was last modified 2 years and 333 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.