aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEshel Yaron2025-06-07 21:35:57 +0200
committerEshel Yaron2025-06-07 21:41:47 +0200
commitb7560fb63dce3a1c7cc7048ebcfca7c694e566d2 (patch)
treebe828488f724564edb062df1571601d9ce98e70c
parent62014576dcd7fb71aa0e5dce01d451de8c24efc6 (diff)
downloademacs-b7560fb63dce3a1c7cc7048ebcfca7c694e566d2.tar.gz
emacs-b7560fb63dce3a1c7cc7048ebcfca7c694e566d2.zip
; 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)
-rw-r--r--lisp/recentf.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/recentf.el b/lisp/recentf.el
index a773ea9ec01..006b3159bb9 100644
--- a/lisp/recentf.el
+++ b/lisp/recentf.el
@@ -505,7 +505,9 @@ Enable `recentf-mode' if it isn't already."
505 (list 505 (list
506 (progn (unless recentf-mode (recentf-mode 1)) 506 (progn (unless recentf-mode (recentf-mode 1))
507 (completing-read (format-prompt "Open recent file" nil) 507 (completing-read (format-prompt "Open recent file" nil)
508 recentf-list nil t)))) 508 (completion-table-with-metadata
509 recentf-list '((category . recentf)))
510 nil t))))
509 (when file 511 (when file
510 (funcall recentf-menu-action file))) 512 (funcall recentf-menu-action file)))
511 513