From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Spacing within org-mode tables when diacritics are used
Date: Sat, 02 Sep 2017 18:13:51 +0300 [thread overview]
Message-ID: <83pob9xhe8.fsf@gnu.org> (raw)
In-Reply-To: <874lsli1va.fsf@ericabrahamsen.net> (message from Eric Abrahamsen on Sat, 02 Sep 2017 07:58:17 -0700)
> From: Eric Abrahamsen <eric@ericabrahamsen.net>
> Date: Sat, 02 Sep 2017 07:58:17 -0700
>
> > Because 'length' returns the number of characters in a string, not the
> > number of bytes. See its doc string.
>
> I know... Obviously this isn't worth arguing about, but I still suspect
> this is the change OP doesn't have:
>
> http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=4af31090b4420978067bc24512467bcc9a78a7f1
Maybe you are right, although string-width shouldn't affect display of
normal-width characters such as é. It only affects double-width
characters, or characters that Emacs composes into a single grapheme
cluster. Multibyte-ness per se doesn't come into play here. That's
why I asked how that é was typed, and what was its encoding on the
file (if the table was imported from a file). If there were actually
2 characters, e and ́, then yes, using length would produce wrong
results that string-width would fix.
next prev parent reply other threads:[~2017-09-02 15:13 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-31 19:19 Spacing within org-mode tables when diacritics are used Leo Vivier
2017-09-01 8:44 ` Eli Zaretskii
2017-09-01 21:02 ` Eric Abrahamsen
2017-09-02 7:45 ` Eli Zaretskii
2017-09-02 14:58 ` Eric Abrahamsen
2017-09-02 15:13 ` Eli Zaretskii [this message]
2017-09-02 18:14 ` Eric Abrahamsen
2017-09-02 18:52 ` Mario Castelán Castro
2017-09-02 19:21 ` Eli Zaretskii
2017-09-02 19:23 ` Mario Castelán Castro
2017-09-02 21:16 ` Eric Abrahamsen
2017-09-03 1:08 ` Mario Castelán Castro
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83pob9xhe8.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=help-gnu-emacs@gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.