[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#67161: 30.0.50; [PATCH] Add option `dired-filename-display-length'
From: |
Liu Hui |
Subject: |
bug#67161: 30.0.50; [PATCH] Add option `dired-filename-display-length' |
Date: |
Thu, 16 Nov 2023 11:44:06 +0800 |
Stefan Monnier <monnier@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.