X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/0a20c80c9cee34a71b975bb37ac811bd339eaf9f..315865d31dde9f0771f96a98a4562bd282aa21ea:/lisp/recentf.el diff --git a/lisp/recentf.el b/lisp/recentf.el index fc9b788173..dcdbd1fb43 100644 --- a/lisp/recentf.el +++ b/lisp/recentf.el @@ -1,6 +1,6 @@ ;;; recentf.el --- setup a menu of recently opened files -;; Copyright (C) 1999-2011 Free Software Foundation, Inc. +;; Copyright (C) 1999-2014 Free Software Foundation, Inc. ;; Author: David Ponce ;; Created: July 19 1999 @@ -69,9 +69,10 @@ See the command `recentf-save-list'." :group 'recentf :type 'integer) -(defcustom recentf-save-file (convert-standard-filename "~/.recentf") +(defcustom recentf-save-file (locate-user-emacs-file "recentf" ".recentf") "File to save the recent list into." :group 'recentf + :version "24.4" :type 'file :initialize 'custom-initialize-default :set (lambda (symbol value) @@ -567,7 +568,7 @@ menu-elements (no sub-menu)." (if (and l (functionp filter)) (let ((case-fold-search recentf-case-fold-search) elts others) - ;; split L into two sub-listes, one of sub-menus elements and + ;; split L into two sub-lists, one of sub-menus elements and ;; another of single menu elements. (dolist (elt l) (if (recentf-sub-menu-element-p elt) @@ -1061,6 +1062,8 @@ Go to the beginning of buffer if not found." (let ((km (copy-keymap recentf--shortcuts-keymap))) (set-keymap-parent km widget-keymap) (define-key km "q" 'recentf-cancel-dialog) + (define-key km "n" 'next-line) + (define-key km "p" 'previous-line) (define-key km [follow-link] "\C-m") km) "Keymap used in recentf dialogs.") @@ -1336,12 +1339,14 @@ That is, remove duplicates, non-kept, and excluded files." ;;;###autoload (define-minor-mode recentf-mode - "Toggle recentf mode. -With prefix argument ARG, turn on if positive, otherwise off. -Returns non-nil if the new state is enabled. - -When recentf mode is enabled, it maintains a menu for visiting files -that were operated on recently." + "Toggle \"Open Recent\" menu (Recentf mode). +With a prefix argument ARG, enable Recentf mode if ARG is +positive, and disable it otherwise. If called from Lisp, enable +Recentf mode if ARG is omitted or nil. + +When Recentf mode is enabled, a \"Open Recent\" submenu is +displayed in the \"File\" menu, containing a list of files that +were operated on recently." :global t :group 'recentf :keymap recentf-mode-map