[ I first posted this report to comp.emacs.xemacs on 5 September 2002
<87ptvs74tf.fsf(a)harris.sdo.us.ray.com>1.
The topic came up again in comp.emacs.xemacs on 15 January 2003
<87hecaxbg8.fsf(a)ilovespam.net>2, so a real bug report follows. ]
The most recent igrep package behaves differently when using
`igrep-find', making it difficult to search for files in any directory
but the current one. My previous version of igrep prompted for a file
pattern by offering the buffer's current working directory followed by
a sensible wildcard:
,----[ Old `igrep-find' prompt ]
| egrep File(s): ~/src/foo/bar/baz/*
`----
With this, I could easily back up a few directories or edit the path
in any way. It was easy to search in a directory distant from the
current buffer's directory.
The new prompt comes up with a nice default wildcard, but omits the
directory:
,----[ New `igrep-find' prompt ]
| [find] egrep File(s) [default: *.cpp]:
`----
I know that I can then start typing "../../" and tabbing around, but I
can't figure out how to get the directory back into the default
prompt.
By default, the igrep uses the function `igrep-files-default' (bound
to `igrep-buffer-file-name-pattern') to build the file prompt. I don't
see a similar function to restore the old behavior.
* * *
For the record, trying to search within, say, "~/src/" fails due to
`shell-quote-argument' around line 812 in igrep.el:
,----[ (igrep-find "egrep" "foo" '("~/src/*") nil) ]
| cd /usr/local/lib/xemacs/xemacs-packages/lisp/igrep/
| find \~/src -type d \( -name RCS -o -name CVS -o -name SCCS \) -prune -o -type f \!
-name \*\~ \! -name \*\,v \! -name s.\* -print0 | xargs -0 -e egrep -n -e foo
/dev/null
| find: ~/src: No such file or directory
|
| igrep exited abnormally with code 123 at Thu Sep 5 09:47:11
`----
Footnotes:
¹
http://groups.google.com/groups?threadm=87ptvs74tf.fsf%40harris.sdo.us.ra...
²
http://groups.google.com/groups?threadm=87hecaxbg8.fsf%40ilovespam.net
================================================================
System Info to help track down your bug:
---------------------------------------
uname -a: CYGWIN_NT-5.0 TSUNAMI 1.3.12(0.54/3/2) 2002-07-06 02:16 i686 unknown
./configure '--with-dragndrop' '--with-postgresql=no'
'--with-x=no' '--bindir=/usr/local/bin/i686-pc-cygwin'
'--with-site-lisp=yes' '--with-ipv6-cname=no' '--with-netinstall'
XEmacs 21.4.9 "Informed Management (Windows [3])" configured for
`i686-pc-cygwin'.
Compilation / Installation:
Source code location: /development/xemacs/xemacs-21.4-release
Installation prefix: /usr/local
Operating system description file: `s/cygwin32.h'
Machine description file: `m/intel386.h'
Compiler: gcc -I/usr/lib/../include/noX
-I/usr/lib/../include/noX -g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes
-Wsign-compare -Wshadow -Wpointer-arith
Relocating allocator for buffers: no
GNU version of malloc: yes
Window System:
Compiling in support for the Microsoft window system.
Using MS-Windows menubars.
Using MS-Windows scrollbars.
Using MS-Windows dialog boxes.
Using MS-Windows native widgets.
Compiling in support for Drag'n'Drop (EXPERIMENTAL).
- Drag'n'Drop prototype: msw.
TTY:
Compiling in support for ncurses.
Images:
Compiling in support for GIF images (builtin).
Compiling in support for XPM images.
Compiling in support for PNG images.
Compiling in support for JPEG images.
Compiling in support for TIFF images.
Compiling in support for X-Face message headers.
Sound:
Compiling in support for sound (native).
Databases:
Compiling in support for GNU DBM.
Internationalization:
Compiling in support for file coding.
Mail:
Compiling in support for POP mail retrieval.
Other Features:
Inhibiting IPv6 canonicalization at startup.
Compiling in support for dynamic shared object modules.
Load-Path Lisp Shadows:
----------------------
nil
Installed XEmacs Packages:
-------------------------
((zenirc:version 1.13 :type regular)
(xemacs-devel :version 1.48 :type single-file)
(xemacs-base :version 1.71 :type regular)
(w3 :version 1.26 :type regular)
(viper :version 1.35 :type regular)
(view-process :version 1.12 :type regular)
(vc-cc :version 1.21 :type regular)
(vc :version 1.33 :type regular)
(tramp :version 1.1 :type regular)
(time :version 1.12 :type regular)
(textools :version 1.13 :type regular)
(text-modes :version 1.55 :type single-file)
(texinfo :version 1.21 :type regular)
(supercite :version 1.19 :type regular)
(strokes :version 1.08 :type regular)
(speedbar :version 1.24 :type regular)
(sounds-wav :version 1.1 :type regular)
(sh-script :version 1.16 :type regular)
(sgml :version 1.08 :type regular)
(semantic :version 1.14 :type regular)
(scheme :version 1.12 :type regular)
(sasl :version 1.12 :type regular)
(rmail :version 1.13 :type regular)
(reftex :version 1.28 :type regular)
(psgml :version 1.35 :type regular)
(ps-print :version 1.08 :type regular)
(prog-modes
:version
1
.67
:type
single-file)
(perl-modes :version 1.02 :type single-file)
(pcomplete :version 1.02 :type regular)
(pcl-cvs :version 1.64 :type regular)
(pc :version 1.25 :type single-file)
(os-utils :version 1.29 :type single-file)
(net-utils :version 1.28 :type single-file)
(mmm-mode :version 1.0 :type regular)
(misc-games :version 1.15 :type single-file)
(mail-lib :version 1.54 :type regular)
(ispell :version 1.24 :type regular)
(ilisp :version 1.28 :type regular)
(igrep :version 1.1 :type regular)
(ibuffer :version 1.08 :type regular)
(hm--html-menus :version 1.18 :type regular)
(haskell-mode :version 1.03 :type regular)
(fsf-compat :version 1.11 :type single-file)
(frame-icon :version 1.09 :type regular)
(footnote :version 1.15 :type regular)
(eudc :version 1.36 :type regular)
(eterm :version 1.13 :type regular)
(eshell :version 1.03 :type regular)
(emerge :version 1.09 :type regular)
(elib :version 1.1 :type single-file)
(eieio :version 1.03 :type regular)
(efs :version 1.29 :type regular)
(edit-utils :version 1.95 :type single-file)
(ediff :version 1.44 :type regular)
(edebug :version 1.14 :type regular)
(docbookide :version 0.05 :type regular)
(dired :version 1.12 :type regular)
(dictionary :version 1.11 :type regular)
(debug :version 1.16 :type regular)
(clearcase :version 1.04 :type regular)
(cc-mode :version 1.31 :type regular)
(calendar :version 1.19 :type regular)
(calc :version 1.23 :type regular)
(c-support :version 1.16 :type single-file)
(bbdb :version 1.21 :type regular)
(auctex :version 1.32 :type regular)
(apel :version 1.25 :type regular))
Features:
--------
(mail-abbrevs xemacsbug shadow sendmail rfc822 zenirc-autoloads
xemacs-devel-autoloads xemacs-base-autoloads w3-autoloads
viper-autoloads view-process-autoloads vc-cc-autoloads vc-autoloads
tramp-autoloads time-autoloads textools-autoloads text-modes-autoloads
texinfo-autoloads supercite-autoloads strokes-autoloads
speedbar-autoloads sounds-wav-autoloads sh-script-autoloads
sgml-autoloads semantic-autoloads scheme-autoloads sasl-autoloads
rmail-autoloads reftex-autoloads psgml-autoloads ps-print-autoloads
prog-modes-autoloads perl-modes-autoloads pcomplete-autoloads
pcl-cvs-autoloads pc-autoloads os-utils-autoloads net-utils-autoloads
mmm-mode-autoloads misc-games-autoloads mail-lib-autoloads
ispell-autoloads ilisp-autoloads igrep-autoloads ibuffer-autoloads
hm--html-menus-autoloads haskell-mode-autoloads fsf-compat-autoloads
frame-icon-autoloads footnote-autoloads eudc-autoloads eterm-autoloads
eshell-autoloads emerge-autoloads elib-autoloads eieio-autoloads
efs-autoloads edit-utils-autoloads ediff-autoloads edebug-autoloads
docbookide-autoloads dired-autoloads dictionary-autoloads
debug-autoloads clearcase-autoloads cc-mode-autoloads
calendar-autoloads calc-autoloads c-support-autoloads bbdb-autoloads
auctex-autoloads apel-autoloads lisp-autoloads loadhist auto-show
fontl-hooks code-cmds gutter-items menubar-items x-menubar dragdrop
mode-motion mouse itimer auto-save lisp-mode easymenu iso8859-1 page
buff-menu lib-complete help-nomule cus-file derived frame text-props
obsolete cus-start custom widget cl-extra mini-cl cl cl-19 packages
backquote very-early-lisp file-coding mswindows-scrollbars mswindows
tty-frames tty toolbar native-sound scrollbar unix-processes multicast
network-streams subprocesses modules menu-accelerator-support menubar
dbm md5 xemacs gutter tiff png gif jpeg xface xpm xbm lisp-float-type
cygwin32 dragdrop-api dialog devices window-system base64)
Recent keystrokes:
-----------------
button1 button1up button1 button1up M-x r e p o r t
- e m TAB RET
Recent messages (most recent first):
-----------------------------------
Loading xemacsbug...done
Loading xemacsbug...
--
Steven E. Harris :: seharris(a)raytheon.com
Raytheon::
http://www.raytheon.com