; 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:
@@ -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)))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user