From: "Drew Adams" <drew.adams@oracle.com>
To: "'Eli Zaretskii'" <eliz@gnu.org>
Cc: 8429@debbugs.gnu.org
Subject: bug#8429: 24.0.50; regression: `flush-lines' does not flush all it should
Date: Tue, 5 Apr 2011 14:15:33 -0700 [thread overview]
Message-ID: <B706B7CE766D4776A4C947CAC72C5979@us.oracle.com> (raw)
In-Reply-To: <83lizov30x.fsf@gnu.org>
> > So the problem seems to be lazy highlighting. Unhighlighted
> > text interferes with
> > search etc. because of the escape chars.
>
> Yes, it sounds like flush-lines should retry when it fails to find a
> match, after lazy-highlighting the next portion of the buffer.
That doesn't sound like the right approach to me.
For one thing, the problem is not limited to `flush-lines'. Any action on the
buffer text that gets thrown off by the added chars will be affected. One of
the reasons to run `grep' in Emacs is to have a buffer of text to operate on.
For another thing, it's not clear that changing `flush-lines' in that way would
be appropriate for other use `flush-lines' contexts.
As I said, we might need to opt for letting the user initiate an editing mode.
Until now, `C-x C-q' was enough for that. But maybe now more is needed.
But that's only if this bug cannot really be fixed in a way that gives back the
pre-regression behavior.
IOW, things worked well in Emacs 22 and 23; what was gained in losing this
behavior? My guess is that the answer is performance: highlighting is no doubt
much faster because only what's shown gets highlighted. That is important
(useful), no doubt about it.
If a tradeoff is needed and no better solution can be found, then I'd suggest a
command to make the buffer editable and completely highlighted.
next prev parent reply other threads:[~2011-04-05 21:15 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-05 19:01 bug#8429: 24.0.50; regression: `flush-lines' does not flush all it should Drew Adams
2011-04-05 19:52 ` Eli Zaretskii
2011-04-05 20:14 ` Drew Adams
2011-04-05 20:36 ` Eli Zaretskii
2011-04-05 21:06 ` Drew Adams
2011-04-06 1:28 ` Stefan Monnier
2011-04-05 20:47 ` Eli Zaretskii
2011-04-05 21:15 ` Drew Adams [this message]
2013-02-02 0:32 ` Juri Linkov
2013-02-02 2:16 ` Drew Adams
2013-02-02 23:54 ` Juri Linkov
2013-02-03 0:30 ` Drew Adams
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=B706B7CE766D4776A4C947CAC72C5979@us.oracle.com \
--to=drew.adams@oracle.com \
--cc=8429@debbugs.gnu.org \
--cc=eliz@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).