GNU bug report logs - #23355
list-buffers should also show directories using ~

Previous Next

Package: emacs;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Sun, 24 Apr 2016 12:33:02 UTC

Severity: minor

Tags: fixed

Fixed in version 27.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 23355 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 23355 <at> debbugs.gnu.org
Subject: Re: bug#23355: list-buffers should also show directories using ~
Date: Sun, 28 Jul 2019 17:30:48 +0200
積丹尼 Dan Jacobson <jidanni <at> jidanni.org> writes:

> C-x C-b runs the command list-buffers, which is an interactive
> compiled Lisp function in `buff-menu.el'.
>
> It seems to me it shows things inconsistently,
>
>     minimal_data_usage/Makefile              1664 GNUmakefile      ~/android/minimal_data_usage/Makefile
>  %  minimal_data_usage                        598 Dired by date    /home/jidanni/android/minimal_data_usage/
>     s.cgi                                    1088 Shell-script[... ~/android/minimal_data_usage/s.cgi
>     other/Makefile                            494 GNUmakefile      ~/facebook/messages/other/Makefile
>  %  other                                     263 Dired by name    /home/jidanni/facebook/messages/other/
>
> Directories are not shown with ~/, only files are.

Let's see...  it's this slightly cryptic little function:

(defun Buffer-menu--pretty-file-name (file)
  (cond (file
	 (abbreviate-file-name file))
	((bound-and-true-p list-buffers-directory))
	(t "")))

The second clause there returns this:

"/home/larsi/src/emacs/trunk/lisp/"

which, as we can see, is not abbreviated.  I've now changed it on the
trunk to abbreviate these, too.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 6 years and 18 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.