summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--etc/NEWS6
-rw-r--r--lisp/recentf.el5
2 files changed, 5 insertions, 6 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 40658559d7f..88ba7213841 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1856,9 +1856,9 @@ If non-nil, files untracked by a VCS are considered to be part of
the project by a VC project based on that VCS.
---
-*** The 'recentf-mode' menu now uses shortened filenames by default.
-They are shortened with 'abbreviate-file-name'. Customize the user
-option 'recentf-menu-filter' to nil to get unabbreviated file names.
+*** The 'recentf-mode' menu can now use shortened filenames.
+Set the user option 'recentf-menu-filter' to
+'recentf-show-abbreviated' to enable it.
---
** The autoarg.el library is now marked obsolete.
diff --git a/lisp/recentf.el b/lisp/recentf.el
index b10f4d0ed08..05127cbf49b 100644
--- a/lisp/recentf.el
+++ b/lisp/recentf.el
@@ -171,7 +171,7 @@ The default is to call `find-file' to edit the selected file."
:group 'recentf
:type 'integer)
-(defcustom recentf-menu-filter #'recentf-show-abbreviated
+(defcustom recentf-menu-filter nil
"Function used to filter files displayed in the recentf menu.
A nil value means no filter. The following functions are predefined:
@@ -226,8 +226,7 @@ elements (see `recentf-make-menu-element' for menu element form)."
(function-item recentf-arrange-by-mode)
(function-item recentf-arrange-by-dir)
(function-item recentf-filter-changer)
- function)
- :version "29.1")
+ function))
(defcustom recentf-menu-open-all-flag nil
"Non-nil means to show an \"All...\" item in the menu.