Function: recentf-open-files
recentf-open-files is an interactive and byte-compiled function
defined in recentf.el.gz.
Signature
(recentf-open-files &optional FILES BUFFER-NAME)
Documentation
Show a dialog to open a recent file.
If optional argument FILES is non-nil, it is a list of recently-opened files to choose from. It defaults to the whole recent list. If optional argument BUFFER-NAME is non-nil, it is a buffer name to use for the dialog. It defaults to "*`recentf-menu-title'*".
Probably introduced at or before Emacs version 22.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/recentf.el.gz
(defun recentf-open-files (&optional files buffer-name)
"Show a dialog to open a recent file.
If optional argument FILES is non-nil, it is a list of recently-opened
files to choose from. It defaults to the whole recent list.
If optional argument BUFFER-NAME is non-nil, it is a buffer name to
use for the dialog. It defaults to \"*`recentf-menu-title'*\"."
(interactive)
(unless (or files recentf-list)
(error "There is no recent file to open"))
(recentf-dialog (or buffer-name (format "*%s*" recentf-menu-title))
(widget-insert "Click on a file"
(if recentf-show-file-shortcuts-flag
", or type the corresponding digit key,"
"")
" to open it.\n"
(substitute-command-keys
"Click on Cancel or type \\[recentf-cancel-dialog] to cancel.\n"))
;; Use a L&F that looks like the recentf menu.
(tree-widget-set-theme "folder")
(apply #'widget-create
`(group
:indent 2
:format "\n%v\n"
,@(recentf-open-files-items (or files recentf-list))))
(widget-create
'push-button
:notify 'recentf-cancel-dialog
"Cancel")
(recentf-dialog-goto-first 'link)))