1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-05 22:20:24 -08:00

; Use completion category 'recentf' in 'recentf-open'

* lisp/recentf.el (recentf-open): Specify a completion
category, 'recentf', when prompting for a recent file name.
This allows users the customize the behavior of recent file
name completion via 'completion-category-overrides'.
(Bug#78596)
This commit is contained in:
Eshel Yaron 2025-06-07 21:35:57 +02:00
parent 62014576dc
commit b7560fb63d
No known key found for this signature in database
GPG key ID: EF3EE9CA35D78618

View file

@ -505,7 +505,9 @@ Enable `recentf-mode' if it isn't already."
(list
(progn (unless recentf-mode (recentf-mode 1))
(completing-read (format-prompt "Open recent file" nil)
recentf-list nil t))))
(completion-table-with-metadata
recentf-list '((category . recentf)))
nil t))))
(when file
(funcall recentf-menu-action file)))