From: Stefan Monnier <monnier@IRO.UMontreal.CA>
Subject: Recent change in intervals.c
Date: 29 Sep 2003 15:04:31 -0400 [thread overview]
Message-ID: <jwvu16vju42.fsf-monnier+emacs/pretest@vor.iro.umontreal.ca> (raw)
Could someone double check that the patch below is correct and doesn't
leave yet another "corner case" ?
Stefan
Index: intervals.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/intervals.c,v
retrieving revision 1.125
diff -u -u -b -r1.125 intervals.c
--- intervals.c 22 Sep 2003 15:51:19 -0000 1.125
+++ intervals.c 29 Sep 2003 18:59:58 -0000
@@ -1823,9 +1968,9 @@
while (! NULL_INTERVAL_P (over))
{
/* If UNDER is longer than OVER, split it. */
- if (LENGTH (over) < LENGTH (under))
+ if (LENGTH (over) - over_used < LENGTH (under))
{
- this = split_interval_left (under, LENGTH (over));
+ this = split_interval_left (under, LENGTH (over) - over_used);
copy_properties (under, this);
}
else
next reply other threads:[~2003-09-29 19:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-29 19:04 Stefan Monnier [this message]
2003-09-30 12:22 ` Recent change in intervals.c Richard Stallman
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=jwvu16vju42.fsf-monnier+emacs/pretest@vor.iro.umontreal.ca \
--to=monnier@iro.umontreal.ca \
/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.