Function: recentf-edit-list
recentf-edit-list is an interactive and byte-compiled function defined
in recentf.el.gz.
Signature
(recentf-edit-list)
Documentation
Show a dialog to delete selected files from the recent list.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/recentf.el.gz
(defun recentf-edit-list ()
"Show a dialog to delete selected files from the recent list."
(interactive)
(unless recentf-list
(error "The list of recent files is empty"))
(recentf-dialog (format "*%s - Edit list*" recentf-menu-title)
(setq-local recentf-edit-list nil)
(widget-insert
(format-message
(substitute-command-keys
"Click on \"OK\" or type \\[recentf-edit-list-validate] to delete selected files from the recent list.
Click on \"Cancel\" or type \\[recentf-cancel-dialog] to cancel.\n")))
;; Insert the list of files as checkboxes
(dolist (item recentf-list)
(widget-create 'checkbox
:value nil ; unselected checkbox
:format "\n %[%v%] %t"
:tag item
:notify 'recentf-edit-list-select))
(widget-insert "\n\n")
(widget-create
'push-button
:notify 'recentf-edit-list-validate
:help-echo "Delete selected files from the recent list"
"Ok")
(widget-insert " ")
(widget-create
'push-button
:notify 'recentf-cancel-dialog
"Cancel")
(recentf-dialog-goto-first 'checkbox)))