emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master 0c5f436 1/2: Abbreviate directory names the same wa


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] master 0c5f436 1/2: Abbreviate directory names the same way as file names in C-x C-b
Date: Sun, 28 Jul 2019 16:14:44 -0400 (EDT)

branch: master
commit 0c5f436dc034b7f4d49f1c6b18009c42737a47ab
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    Abbreviate directory names the same way as file names in C-x C-b
    
    * lisp/buff-menu.el (Buffer-menu--pretty-file-name): Abbreviate
    directory file names, too (bug#23355).
---
 lisp/buff-menu.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/buff-menu.el b/lisp/buff-menu.el
index 6406a59..3cea186 100644
--- a/lisp/buff-menu.el
+++ b/lisp/buff-menu.el
@@ -703,7 +703,8 @@ means list those buffers and no others."
 (defun Buffer-menu--pretty-file-name (file)
   (cond (file
         (abbreviate-file-name file))
-       ((bound-and-true-p list-buffers-directory))
+       ((bound-and-true-p list-buffers-directory)
+         (abbreviate-file-name list-buffers-directory))
        (t "")))
 
 ;;; buff-menu.el ends here



reply via email to

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