* Columns and proportional fonts (was: bug#19872: 24.4; UTF8 characters of unusual width (Gnus markers))
[not found] ` <831tlm3snc.fsf@gnu.org>
@ 2015-02-19 16:12 ` Stefan Monnier
2015-02-19 17:37 ` Columns and proportional fonts Ivan Shmakov
0 siblings, 1 reply; 4+ messages in thread
From: Stefan Monnier @ 2015-02-19 16:12 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: sva-news, larsi, emacs-devel
> I agree in general, but cannot see why this particular case couldn't
> be resolved reasonably well, e.g. by adding one more column "just in
> case", before the :align-to property.
In mpc.el I list the current songs with various of their info (duration,
title, artist, ...) in columns, so I have the same problem there.
I use truncate-string-to-width and do keep one extra column, but it's
not always sufficient to avoid misalignment when the proportional font
has some "very wide" chars. Also, I suffer from the reverse problem,
that for columns where the text contains lots of narrow chars,
truncate-string-to-width ends up being pessimistic, which is less
harmful but wastes valuable screen estate and looks weird.
My understanding of the redisplay engine makes me believe that
a `:truncate-at' display property (and/or
a combined :truncate-at-or-align-to) should be doable with good
efficiency without too much extra gymnastics.
And no, sorry, I'm not volunteering to implement it.
Stefan
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Columns and proportional fonts
2015-02-19 16:12 ` Columns and proportional fonts (was: bug#19872: 24.4; UTF8 characters of unusual width (Gnus markers)) Stefan Monnier
@ 2015-02-19 17:37 ` Ivan Shmakov
2015-02-19 18:09 ` Eli Zaretskii
2015-02-19 18:41 ` Stefan Monnier
0 siblings, 2 replies; 4+ messages in thread
From: Ivan Shmakov @ 2015-02-19 17:37 UTC (permalink / raw)
To: emacs-devel
>>>>> Stefan Monnier <monnier@iro.umontreal.ca> writes:
[…]
> My understanding of the redisplay engine makes me believe that a
> `:truncate-at' display property (and/or a combined
> :truncate-at-or-align-to) should be doable with good efficiency
> without too much extra gymnastics. And no, sorry, I'm not
> volunteering to implement it.
Could you please file the respective bug report? No promises,
but I hope to give :wrap-column (#19661) a try, and I guess that
:truncate-at wouldn’t be all that faraway from there.
--
FSF associate member #7257 http://boycottsystemd.org/ … 3013 B6A0 230E 334A
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Columns and proportional fonts
2015-02-19 17:37 ` Columns and proportional fonts Ivan Shmakov
@ 2015-02-19 18:09 ` Eli Zaretskii
2015-02-19 18:41 ` Stefan Monnier
1 sibling, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2015-02-19 18:09 UTC (permalink / raw)
To: Ivan Shmakov; +Cc: emacs-devel
> From: Ivan Shmakov <ivan@siamics.net>
> Date: Thu, 19 Feb 2015 17:37:40 +0000
>
> Could you please file the respective bug report? No promises,
> but I hope to give :wrap-column (#19661) a try, and I guess that
> :truncate-at wouldn’t be all that faraway from there.
I think :truncate-at will be way simpler to implement than
:wrap-column.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Columns and proportional fonts
2015-02-19 17:37 ` Columns and proportional fonts Ivan Shmakov
2015-02-19 18:09 ` Eli Zaretskii
@ 2015-02-19 18:41 ` Stefan Monnier
1 sibling, 0 replies; 4+ messages in thread
From: Stefan Monnier @ 2015-02-19 18:41 UTC (permalink / raw)
To: emacs-devel
> Could you please file the respective bug report?
Done,
Stefan
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-02-19 18:41 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <86bnkvilxl.fsf@example.com>
[not found] ` <mailman.138.1424017693.31049.bug-gnu-emacs@gnu.org>
[not found] ` <86r3tqchqt.fsf@example.com>
[not found] ` <83zj8dua5s.fsf@gnu.org>
[not found] ` <87oaotyxwn.fsf@building.gnus.org>
[not found] ` <83fva47dak.fsf@gnu.org>
[not found] ` <878ufwcamp.fsf@building.gnus.org>
[not found] ` <83k2zf6g08.fsf@gnu.org>
[not found] ` <87r3tmjvr2.fsf@building.gnus.org>
[not found] ` <83lhju4dmw.fsf@gnu.org>
[not found] ` <jwvzj8aggj9.fsf-monnier+emacsbugs@gnu.org>
[not found] ` <831tlm3snc.fsf@gnu.org>
2015-02-19 16:12 ` Columns and proportional fonts (was: bug#19872: 24.4; UTF8 characters of unusual width (Gnus markers)) Stefan Monnier
2015-02-19 17:37 ` Columns and proportional fonts Ivan Shmakov
2015-02-19 18:09 ` Eli Zaretskii
2015-02-19 18:41 ` Stefan Monnier
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).