GNU bug report logs -
#17782
24.3; package.el: searches don't see elided chars of package name
Previous Next
Reported by: Samuel Bronson <naesten <at> gmail.com>
Date: Sat, 14 Jun 2014 21:00:03 UTC
Severity: minor
Tags: fixed
Found in version 24.3
Fixed in version 27.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Lars Ingebrigtsen <larsi <at> gnus.org> writes:
> Samuel Bronson <naesten <at> gmail.com> writes:
>
>> When I search within the *Packages* buffer, my searches can't match on
>> parts of the package name that got elided to fit into the column width.
>>
>> Couldn't this be remedied by displaying the ellipsis using an overlay,
>> rather than actually including it in the buffer text?
>
> I've now done this in Emacs 27 -- in all tabulated list modes, which may
> or may not be controversial.
>
> If people feel like this is a bad change, feel free to revert. It seems
> nice to me: `C-s' works more reliably in these buffers, even when bits
> are shortened. But perhaps there's a bad user interaction somewhere...
I'm curious to know why the ellipsis is added as a display property in
truncate-string-to-width[1] instead of making the relevant text
invisible[2]. Isn't this behaviour too specific to this use case to
justify extending truncate-string-to-width with it?
[1]: Use text properties instead of truncating strings
67830e7569 2019-10-07 20:11:26 +0200
https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=67830e756911f0c262bb3a447e58b9ff6739a60f
[2]: (info "(elisp) Invisible Text")
Thanks,
--
Basil
This bug report was last modified 5 years and 228 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.