unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
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 13:14:57 -0700	[thread overview]
Message-ID: <D6321545C2204B14BC3ED32B75511113@us.oracle.com> (raw)
In-Reply-To: <83oc4kv5ko.fsf@gnu.org>

> Does it work if you copy the entire contents of the Grep buffer to
> another buffer?

No, same problem.  But you can try for yourself, given the simple recipe.

After copying to another buffer and trying flush-lines once, I see this (tail
abbreviated):

grep -nH -e "##" *.el */*.el
apropos.el:514:;;;^[[01;31m##^[[00m^[[K#autoload
apropos.el:524:;;;^[[01;31m##^[[00m^[[K#autoload
apropos.el:563:;;;^[[01;31m##^[[00m^[[K#autoload
apropos.el:669:;;;^[[01;31m##^[[00m^[[K#autoload
apropos.el:715:;;;^[[01;31m##^[[00m^[[K#autoload
arc-mode.el:634:;;;^[[01;31m##^[[00m^[[K#autoload
array.el:802:;;;^[[01;31m##^[[00m^[[K#autoload
autoarg.el:91:;;;^[[01;31m##^[[00m^[[K#autoload
autoarg.el:113:;;;^[[01;31m##^[[00m^[[K#autoload
autoinsert.el:318:;;;^[[01;31m##^[[00m^[[K#autoload
autoinsert.el:379:;;;^[[01;31m##^[[00m^[[K#autoload
autoinsert.el:398:;;;^[[01;31m##^[[00m^[[K#autoload
autorevert.el:117:;;; What's this?: ;;;^[[01;31m##^[[00m^[[K#autoload
autorevert.el:285:;;;^[[01;31m##^[[00m^[[K#autoload
autorevert.el:306:;;;^[[01;31m##^[[00m^[[K#autoload
autorevert.el:315:;;;^[[01;31m##^[[00m^[[K#autoload
autorevert.el:368:;;;^[[01;31m##^[[00m^[[K#autoload
autorevert.el:377:;;;^[[01;31m##^[[00m^[[K#autoload
...

As you can see, the problem seems to be that the string "###autoload" is not
present as such. Instead, escape characters are inserted between ## and #.
Presumably the first few lines were not like that, so they did get flushed.

When I yanked the buffer text copied from *grep* into the new buffer (foo), the
part of buffer *grep* that had been fontified (or whatever processing is done to
visually replace the escape chars with highlighted text) appeared fontified in
`foo', and thus those lines did have "###autoload" present, so they got flushed.
The remaining lines (many, many), which were not highlighted, did not get
flushed.

So the problem seems to be lazy highlighting. Unhighlighted text interferes with
search etc. because of the escape chars.

I often flush out comment lines etc. from *grep*.  This is a real step backward,
IMO. I hope you will consider it a bug to be fixed.






  reply	other threads:[~2011-04-05 20:14 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 [this message]
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
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=D6321545C2204B14BC3ED32B75511113@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).