From: Yuan Fu <casouri@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: How is text properties stored?
Date: Thu, 9 May 2019 16:26:42 -0400 [thread overview]
Message-ID: <5EA156D7-EF8A-42C1-AEB2-4A97ADCE74CF@gmail.com> (raw)
In-Reply-To: <83ftpogp6k.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 577 bytes --]
> No, positions of intervals are continuously maintained as side effect
> of editing commands that change buffer text.
I still don't understand how is position maintained when user inserts
something. Say I insert some characters in interval (3), I know
total_length of (2) and (4) are updated. But how are the positions of
all the intervals after (3) -- (4), (5) and (6) updated? I don't see
relevant code in adjust_intervals_for_insertion.
----- (4) ---
/ | \
- (2) - | - (6)
/ | \ | / |
(1) (2) (3) (4) (5) (6)
Sincerely, Yuan
[-- Attachment #2: Type: text/html, Size: 2240 bytes --]
next prev parent reply other threads:[~2019-05-09 20:26 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-08 21:08 How is text properties stored? Yuan Fu
2019-05-09 0:58 ` Stefan Monnier
2019-05-09 1:41 ` Yuan Fu
2019-05-09 5:41 ` Eli Zaretskii
2019-05-09 20:26 ` Yuan Fu [this message]
2019-05-09 20:40 ` Stefan Monnier
2019-05-10 1:50 ` Yuan Fu
2019-05-10 5:43 ` Eli Zaretskii
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=5EA156D7-EF8A-42C1-AEB2-4A97ADCE74CF@gmail.com \
--to=casouri@gmail.com \
--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 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.