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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 23355 in the body.
You can then email your comments to 23355 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#23355; Package emacs. (Sun, 24 Apr 2016 12:33:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 24 Apr 2016 12:33:02 GMT) Full text and rfc822 format available.

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

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: bug-gnu-emacs <bug-gnu-emacs <at> gnu.org>
Subject: list-buffers should also show directories using ~
Date: Sun, 24 Apr 2016 20:31:54 +0800
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.

emacs-version "24.5.1"




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23355; Package emacs. (Sun, 28 Jul 2019 15:31:02 GMT) Full text and rfc822 format available.

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




Added tag(s) fixed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 28 Jul 2019 15:31:03 GMT) Full text and rfc822 format available.

bug marked as fixed in version 27.1, send any further explanations to 23355 <at> debbugs.gnu.org and 積丹尼 Dan Jacobson <jidanni <at> jidanni.org> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 28 Jul 2019 15:31:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 26 Aug 2019 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 239 days ago.

Previous Next


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