From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Eli Zaretskii <eliz@gnu.org>
Cc: sva-news@mygooglest.com, larsi@gnus.org, emacs-devel@gnu.org
Subject: Columns and proportional fonts (was: bug#19872: 24.4; UTF8 characters of unusual width (Gnus markers))
Date: Thu, 19 Feb 2015 11:12:36 -0500 [thread overview]
Message-ID: <jwvbnkpsx8h.fsf-monnier+emacsbugs@gnu.org> (raw)
In-Reply-To: <831tlm3snc.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 19 Feb 2015 16:03:35 +0200")
> 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
next parent reply other threads:[~2015-02-19 16:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[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 ` Stefan Monnier [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvbnkpsx8h.fsf-monnier+emacsbugs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=larsi@gnus.org \
--cc=sva-news@mygooglest.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).