mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -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:
parent
62014576dc
commit
b7560fb63d
1 changed files with 3 additions and 1 deletions
|
|
@ -505,7 +505,9 @@ Enable `recentf-mode' if it isn't already."
|
||||||
(list
|
(list
|
||||||
(progn (unless recentf-mode (recentf-mode 1))
|
(progn (unless recentf-mode (recentf-mode 1))
|
||||||
(completing-read (format-prompt "Open recent file" nil)
|
(completing-read (format-prompt "Open recent file" nil)
|
||||||
recentf-list nil t))))
|
(completion-table-with-metadata
|
||||||
|
recentf-list '((category . recentf)))
|
||||||
|
nil t))))
|
||||||
(when file
|
(when file
|
||||||
(funcall recentf-menu-action file)))
|
(funcall recentf-menu-action file)))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue