GNU bug report logs - #67161
30.0.50; [PATCH] Add option `dired-filename-display-length'

Previous Next

Package: emacs;

Reported by: Liu Hui <liuhui1610 <at> gmail.com>

Date: Tue, 14 Nov 2023 09:55:02 UTC

Severity: normal

Tags: patch

Found in version 30.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


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

From: Liu Hui <liuhui1610 <at> gmail.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 67161 <at> debbugs.gnu.org
Subject: Re: bug#67161: 30.0.50;
 [PATCH] Add option `dired-filename-display-length'
Date: Thu, 16 Nov 2023 11:44:06 +0800
Stefan Monnier <monnier <at> iro.umontreal.ca> 于2023年11月15日周三 23:57写道:

> I think it's good that you use `invisible`, tho, specifically since it
> then uses whichever ellipsis the user has chosen via the display-table.
> The downside is that most users don't know how to change it and there's
> no convenient facility to access it.  You probably need something like
>
>     (defun length-of-standard-ellipsis ()
>       (let ((glyphs
>              (and standard-display-table
>                   (display-table-slot standard-display-table
>                                       'selective-display))))
>         (if glyphs (length glyphs) (eval-when-compile (length "...")))))

Thanks very much for pointing out the problem! Your suggestion is
valuable, and I will update the patch later.




This bug report was last modified 1 year and 234 days ago.

Previous Next


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