emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master ec9228eb81: Use short file names by default in recentf menu


From: Stefan Kangas
Subject: master ec9228eb81: Use short file names by default in recentf menu
Date: Wed, 22 Jun 2022 05:47:54 -0400 (EDT)

branch: master
commit ec9228eb81c0a89b18480dfff18cc9afdc3d0884
Author: Stefan Kangas <stefan@marxist.se>
Commit: Stefan Kangas <stefan@marxist.se>

    Use short file names by default in recentf menu
    
    * lisp/recentf.el (recentf-menu-filter): Set the default to
    'recentf-show-abbreviated' to get short file names.  (Bug#56123)
---
 etc/NEWS        | 6 +++---
 lisp/recentf.el | 5 +++--
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/etc/NEWS b/etc/NEWS
index 88ba721384..40658559d7 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 can now use shortened filenames.
-Set the user option 'recentf-menu-filter' to
-'recentf-show-abbreviated' to enable it.
+*** 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 autoarg.el library is now marked obsolete.
diff --git a/lisp/recentf.el b/lisp/recentf.el
index 09843a8956..b3bb6482d4 100644
--- a/lisp/recentf.el
+++ b/lisp/recentf.el
@@ -170,7 +170,7 @@ The default is to call `find-file' to edit the selected 
file."
   :group 'recentf
   :type 'integer)
 
-(defcustom recentf-menu-filter nil
+(defcustom recentf-menu-filter #'recentf-show-abbreviated
   "Function used to filter files displayed in the recentf menu.
 A nil value means no filter.  The following functions are predefined:
 
@@ -225,7 +225,8 @@ 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))
+                function)
+  :version "29.1")
 
 (defcustom recentf-menu-open-all-flag nil
   "Non-nil means to show an \"All...\" item in the menu.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]