[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#56148: [PATCH] New command recentf-open
From: |
Eli Zaretskii |
Subject: |
bug#56148: [PATCH] New command recentf-open |
Date: |
Wed, 22 Jun 2022 19:04:52 +0300 |
> From: Stefan Kangas <stefan@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?