bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#8429: 24.0.50; regression: `flush-lines' does not flush all it shoul


From: Drew Adams
Subject: bug#8429: 24.0.50; regression: `flush-lines' does not flush all it should
Date: Tue, 5 Apr 2011 13:14:57 -0700

> 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:;;;###autoload
apropos.el:524:;;;###autoload
apropos.el:563:;;;###autoload
apropos.el:669:;;;###autoload
apropos.el:715:;;;###autoload
arc-mode.el:634:;;;###autoload
array.el:802:;;;###autoload
autoarg.el:91:;;;###autoload
autoarg.el:113:;;;###autoload
autoinsert.el:318:;;;###autoload
autoinsert.el:379:;;;###autoload
autoinsert.el:398:;;;###autoload
autorevert.el:117:;;; What's this?: ;;;###autoload
autorevert.el:285:;;;###autoload
autorevert.el:306:;;;###autoload
autorevert.el:315:;;;###autoload
autorevert.el:368:;;;###autoload
autorevert.el:377:;;;###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 via email to

[Prev in Thread] Current Thread [Next in Thread]