From: Eli Zaretskii <eliz@is.elta.co.il>
Cc: emacs-devel@gnu.org
Subject: Re: display question: should ^N and \NNN widths be fixed?
Date: Mon, 27 May 2002 10:33:13 +0300 (IDT) [thread overview]
Message-ID: <Pine.SUN.3.91.1020527102800.7078C-100000@is> (raw)
In-Reply-To: <jklma6ozm9.fsf@glug.org>
On 27 May 2002, Thien-Thi Nguyen wrote:
> The current code in indent.c assumes that buffer positions increase
> monotonically with screen positions. I'm not saying that you should do
> my job of lifting that limitation, but please keep this in mind when you
> design and code the new indent.c, so that changing it for bidi Emacs
> would not be harder than it is today.
>
> what makes it difficult to support this lifting, today?
Just a lot of coding ;-)
The problem is that with bidi display, the relationship between buffer
positions and screen positions is no longer a simple monotonically
increasing function. For example, if the buffer's contents is this:
abcABCdef
where upper-case letters stand for right-to-left characters, then it is
displayed as
abcCBAdef
and thus you cannot simply walk the buffer one character at a time and
add their display widths to compute the display column. For example, the
column of C is 3 (zero-based), not 5.
Again, I'm not saying you should solve this problem when you work on your
changes. I'm just asking to keep this at the back of your mind when you
make design decisions.
prev parent reply other threads:[~2002-05-27 7:33 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-23 21:16 display question: should ^N and \NNN widths be fixed? Thien-Thi Nguyen
2002-05-24 21:14 ` Richard Stallman
2002-05-24 23:20 ` Thien-Thi Nguyen
2002-05-24 23:34 ` Thien-Thi Nguyen
2002-05-25 1:44 ` Miles Bader
2002-05-25 2:39 ` Thien-Thi Nguyen
2002-05-25 2:57 ` Miles Bader
2002-05-26 5:03 ` Eli Zaretskii
2002-05-26 5:11 ` Thien-Thi Nguyen
2002-05-25 3:05 ` Miles Bader
2002-05-25 22:53 ` Thien-Thi Nguyen
2002-05-25 3:05 ` Miles Bader
2002-05-26 4:28 ` Richard Stallman
2002-05-27 6:44 ` Thien-Thi Nguyen
2002-05-28 5:15 ` Richard Stallman
2002-05-26 5:09 ` Eli Zaretskii
2002-05-27 6:48 ` Thien-Thi Nguyen
2002-05-27 7:33 ` Eli Zaretskii [this message]
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=Pine.SUN.3.91.1020527102800.7078C-100000@is \
--to=eliz@is.elta.co.il \
--cc=emacs-devel@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 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).