GNU bug report logs - #41250
28.0.50; Dired displays unconditionally ls-switches on modeline

Previous Next

Package: emacs;

Reported by: Arthur Miller <arthur.miller <at> live.com>

Date: Thu, 14 May 2020 01:43:01 UTC

Severity: minor

Tags: fixed

Found in version 28.0.50

Fixed in version 28.1

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

Bug is archived. No further changes may be made.

Full log


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

From: Juri Linkov <juri <at> linkov.net>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 41250 <at> debbugs.gnu.org, Drew Adams <drew.adams <at> oracle.com>,
 Arthur Miller <arthur.miller <at> live.com>
Subject: Re: bug#41250: 28.0.50; Dired displays unconditionally ls-switches
 on modeline
Date: Thu, 01 Oct 2020 22:37:43 +0300
>> There is a better function 'truncate-string-to-width'.
>
> I mentioned that in the previous paragraph.  :-/

Oh, sorry.

But anyway I think that it would be better to keep 'truncate-string-to-width',
and to turn 'truncate-string-ellipsis' into a user option (defvar -> defcustom)
with the default value computed as (if (char-displayable-p ?…) "…" "...")

If this doesn't work on dynamically created mixed X/tty frames,
then maybe allow some value (e.g. 'auto-detect') for 'truncate-string-ellipsis',
so 'truncate-string-to-width' would call (if (char-displayable-p ?…) "…" "...")
every time when 'truncate-string-to-width' is used and recompute the value of
ellipsis.




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

Previous Next


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