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

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

grep-find bug when compilation-window-height not nil


From: Peter Lee
Subject: grep-find bug when compilation-window-height not nil
Date: Tue, 09 Sep 2003 23:36:57 -0500
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (windows-nt) Hamster-Pg/1.8

NOTE: This is a cvs report.. not sure if this is right place for these
or not.

Setting (setq compilation-window-height 15) (or anything other than
nil) seems to cause problems with grep-find's output.

,----
| M-: (setq compilation-window-height 15) RET
| grep-find RET
| Run find (like this): find . -type f -print0 | xargs -0 -e grep -nH -i -e 
"sink_entry.*2011" RET
`----

displays the following:

,----
| cd c:/src/Test/
| find . -type f -print0 | xargs -0 -e grep -nH -i -e "sink_entry.*2011"
| 
| grep finished (matches found) at Tue Sep 09 23:19:39
`----

It claims to have found matches but doesn't display any.

Run same test again but change compilation-window-height to nil.

,----
| M-: (setq compilation-window-height nil) RET
| grep-find RET
| Run find (like this): find . -type f -print0 | xargs -0 -e grep -nH -i -e 
"sink_entry.*2011" RET
`----

correctly yields:

,----
| cd c:/src/Test/
| find . -type f -print0 | xargs -0 -e grep -nH -i -e "sink_entry.*2011"
| Binary file ./Debug/Test.bsc matches
| ./Host.h:49:       SINK_ENTRY_INFO(1, __uuidof(EApplication), 2011, 
OnSlideShowBegin, &OnSlideShowBeginInfo)
| ./Host.h~:48:       SINK_ENTRY_INFO(1, __uuidof(EApplication), 2011, 
OnSlideShowBegin, &OnSlideShowBeginInfo)
| 
| grep finished (matches found) at Tue Sep 09 23:22:10
`----

I tried a few more tests setting compilation-window-height to
different values and it had the same problem using the same regex.

However if I changed the regex such that it had no .* in it, setting
the compilation-window-height to a value didn't break it.

,----
| M-: (setq compilation-window-height 15) RET
| grep-find RET
| Run find (like this): find . -type f -print0 | xargs -0 -e grep -nH -i -e 
"sink_entry" RET
`----

correctly displayed:

,----
| Binary file ./Debug/Test.pch matches
| Binary file ./Debug/StdAfx.sbr matches
| Binary file ./Debug/Test.bsc matches
| ./Host.h:49:       SINK_ENTRY_INFO(1, __uuidof(EApplication), 2011, 
OnSlideShowBegin, &OnSlideShowBeginInfo)
| ./Host.h:50:       SINK_ENTRY_INFO(1, __uuidof(EApplication), 2012, 
OnSlideShowNextBuild, &OnSlideShowNextBuildInfo)
| ./Host.h:51:       SINK_ENTRY_INFO(1, __uuidof(EApplication), 2013, 
OnSlideShowNextSlide, &OnSlideShowNextSlideInfo)
| ./Host.h:52:       SINK_ENTRY_INFO(1, __uuidof(EApplication), 2014, 
OnSlideShowEnd, &OnSlideShowEndInfo)
| ./Host.h~:48:       SINK_ENTRY_INFO(1, __uuidof(EApplication), 2011, 
OnSlideShowBegin, &OnSlideShowBeginInfo)
| ./Host.h~:49:       SINK_ENTRY_INFO(1, __uuidof(EApplication), 2012, 
OnSlideShowNextBuild, &OnSlideShowNextBuildInfo)
| ./Host.h~:50:       SINK_ENTRY_INFO(1, __uuidof(EApplication), 2013, 
OnSlideShowNextSlide, &OnSlideShowNextSlideInfo)
| ./Host.h~:51:       SINK_ENTRY_INFO(1, __uuidof(EApplication), 2014, 
OnSlideShowEnd, &OnSlideShowEndInfo)
| ./ButtonHandler.h~:37:        SINK_ENTRY_INFO(1, 
__uuidof(MSO9::_CommandBarButtonEvents), 1, OnClick, &OnClickInfo)
| Binary file ./Test.ncb matches
| ./ButtonHandler.h:49:        SINK_ENTRY_INFO(1, 
__uuidof(MSO9::_CommandBarButtonEvents), 1, OnClick, &OnClickInfo)
| Binary file ./ReleaseMinDependency/Test.pch matches
| cd c:/src/Test/
| find . -type f -print0 | xargs -0 -e grep -nH -i -e "sink_entry"
| 
| grep finished (matches found) at Tue Sep 09 23:29:04
`----

Thanks.


In GNU Emacs 21.3.50.1 (i386-msvc-nt5.1.2600)
 of 2003-09-05 on SOPRANO
configured using `configure --with-msvc (12.00) --cflags -Id:/gnuwin32/include 
--ldflags /LIBPATH:d:/gnuwin32/lib'

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: enu
  locale-coding-system: iso-latin-1
  default-enable-multibyte-characters: t

Recent input:
C-d C-d C-e <backspace> <backspace> <backspace> <backspace> 
<return> M-: M-p M-p C-e M-b C-d 1 <return> C-x o C-x 
k <return> C-x o C-x 1 M-x M-p <return> M-p <return> 
M-: M-p C-e M-b M-d n i l <return> M-x M-p <return> 
M-p <return> M-: M-p C-e M-b M-d 1 5 <return> M-p C-n 
C-p M-p C-n C-p M-x M-p <return> M-p M-b <backspace> 
<backspace> M-d <return> C-x o M-v M-v C-v C-v C-v 
M-x g <backspace> e m a c s SPC r e p <M-backspace> 
<M-backspace> r e p o r t SPC b <backspace> e m <r
eturn>

Recent messages:
25
15
Parsing error messages...done.
nil
Parsing error messages...done.
15
c-backward-sws: Wrong type argument: stringp, nil [2 times]
Parsing error messages...done.
Beginning of buffer
End of buffer





reply via email to

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