* About the overlay property `modification-hooks'
@ 2013-02-24 3:35 Xue Fuqiao
2013-02-24 3:52 ` Eli Zaretskii
0 siblings, 1 reply; 2+ messages in thread
From: Xue Fuqiao @ 2013-02-24 3:35 UTC (permalink / raw)
To: help-gnu-emacs
In (info "(elisp) Overlay Properties"):
When called after a change, each function receives five arguments:
the overlay, `t', the beginning and end of the text range just
modified, and the length of the pre-change text replaced by that
range. (For an insertion, the pre-change length is zero; for a
deletion, that length is the number of characters deleted, and the
post-change beginning and end are equal.)
I'm perplexed about the sentence in the parentheses. What does the
"post-change beginning and end" mean here? Can anybody help? Thanks.
--
Best regards, Xue Fuqiao.
http://www.emacswiki.org/emacs/XueFuqiao
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: About the overlay property `modification-hooks'
2013-02-24 3:35 About the overlay property `modification-hooks' Xue Fuqiao
@ 2013-02-24 3:52 ` Eli Zaretskii
0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2013-02-24 3:52 UTC (permalink / raw)
To: help-gnu-emacs
> Date: Sun, 24 Feb 2013 11:35:55 +0800
> From: Xue Fuqiao <xfq.free@gmail.com>
>
> In (info "(elisp) Overlay Properties"):
>
> When called after a change, each function receives five arguments:
> the overlay, `t', the beginning and end of the text range just
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> modified, and the length of the pre-change text replaced by that
> range. (For an insertion, the pre-change length is zero; for a
> deletion, that length is the number of characters deleted, and the
> post-change beginning and end are equal.)
>
> I'm perplexed about the sentence in the parentheses. What does the
> "post-change beginning and end" mean here? Can anybody help? Thanks.
See the part underlined above.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-02-24 3:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-24 3:35 About the overlay property `modification-hooks' Xue Fuqiao
2013-02-24 3:52 ` Eli Zaretskii
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).