From: Richard Stallman <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: compare-windows - synchronize points
Date: Mon, 25 Aug 2003 21:38:43 -0400 [thread overview]
Message-ID: <E19rSnD-0005lK-Aa@fencepost.gnu.org> (raw)
In-Reply-To: <87zni4dg94.fsf@mail.jurta.org> (message from Juri Linkov on 20 Aug 2003 08:56:07 +0300)
I forgot to mention that with small number it fails when an insertion
contains the same substring which follows after an insertion. In this
case it finds the closest substring (in inserted text) instead of
original text unchanged in both files.
I can see how that would happen. It suggests an idea to me. The idea
is to search for a larger matching substring first, and then try
smaller matching substrings. It's the same kind of idea as first
trying smaller search ranges and then larger ones.
Anoter idea: it could search first for an entire line (with a certain
minimum length) of match between the two windows. After finding that,
it could look within the mismatched areas for smaller partial matches.
Want to try those approaches?
next prev parent reply other threads:[~2003-08-26 1:38 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-11 19:59 compare-windows - synchronize points Juri Linkov
2003-08-12 23:22 ` Richard Stallman
2003-08-13 2:57 ` Juri Linkov
2003-08-14 3:07 ` Richard Stallman
2003-08-14 5:33 ` Juri Linkov
2003-08-16 16:19 ` Richard Stallman
2003-08-18 21:35 ` Juri Linkov
2003-08-20 2:43 ` Richard Stallman
2003-08-20 5:56 ` Juri Linkov
2003-08-26 1:38 ` Richard Stallman [this message]
2003-08-26 5:28 ` Juri Linkov
2003-08-27 16:42 ` Richard Stallman
2003-08-14 10:43 ` Alex Schroeder
2003-08-14 14:43 ` Juri Linkov
2003-08-14 23:59 ` Alex Schroeder
2003-08-15 4:21 ` Juri Linkov
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=E19rSnD-0005lK-Aa@fencepost.gnu.org \
--to=rms@gnu.org \
--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).