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 #165 received at 41250 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Juri Linkov <juri <at> linkov.net>
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: Fri, 02 Oct 2020 16:14:31 +0200
Juri Linkov <juri <at> linkov.net> writes:

> I have no opinion about a new function.  Like everyone else, I'm using
> truncate-string-to-width, and happy with it, except of one complaint:
> on every use I need to wrap it with such code:
>
>   (let ((ellipsis (cond
>                    (truncate-string-ellipsis)
>                    ((char-displayable-p ?…) "…")
>                    ("..."))))
>     (truncate-string-to-width string max nil nil ellipsis))
>
> Preferably, this should be fixed with this patch:

Your patch is a distinct improvement on the current state of affairs, so
please go ahead and push to master (with a NEWS item).

A new function that's more pixel-aware can be added at a later date, and
is pretty much an orthogonal issue anyway.

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




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

Previous Next


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