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

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

bug#12201: 24.1; rgrep ignores directories matching grep-find-ignored-di


From: Tom Tromey
Subject: bug#12201: 24.1; rgrep ignores directories matching grep-find-ignored-directories
Date: Tue, 14 Aug 2012 09:52:53 -0600

gdb has a test suite directory named 'gdb.cp'.
This happens to match a name in grep-find-ignored-files.
Today I used rgrep to search the gdb test suite, and found to my
surprise that it ignores this directory.

I think this is incorrect behavior because grep-find-ignored-files ought
to ignore files, not directories.  grep-find-ignored-directories exists
for that.

This patch fixed the problem for me.

=== modified file 'lisp/progmodes/grep.el'
--- lisp/progmodes/grep.el      2012-04-18 06:04:51 +0000
+++ lisp/progmodes/grep.el      2012-08-14 15:51:49 +0000
@@ -1040,7 +1040,7 @@
                                     " -o -name ")
                                    " "
                                    (shell-quote-argument ")")
-                                   " -prune -o "))))))
+                                   " -type f prune -o "))))))
        (when command
          (if confirm
              (setq command




In GNU Emacs 24.1.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.8)
 of 2012-07-02 on barimba
Windowing system distributor `Fedora Project', version 11.0.11104000
Configured using:
 `configure '--prefix=/home/tromey/Space/EmacsBzr/emacs-mt/install''

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: en_US.UTF-8
  value of $XMODIFIERS: @im=none
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Summary

Minor modes in effect:
  global-auto-revert-mode: t
  gnus-agent-summary-mode: t
  shell-dirtrack-mode: t
  diff-auto-refine-mode: t
  erc-list-mode: t
  erc-menu-mode: t
  erc-autojoin-mode: t
  erc-ring-mode: t
  erc-pcomplete-mode: t
  erc-track-mode: t
  erc-track-minor-mode: t
  erc-match-mode: t
  erc-button-mode: t
  erc-fill-mode: t
  erc-stamp-mode: t
  erc-netsplit-mode: t
  erc-spelling-mode: t
  erc-truncate-mode: t
  erc-status-mode: t
  erc-services-mode: t
  erc-networks-mode: t
  erc-irccontrols-mode: t
  erc-noncommands-mode: t
  erc-move-to-prompt-mode: t
  erc-readonly-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
i n <tab> <return> C-z n <XF86AudioStop> C-z n C-r 
- d e l e t e C-r C-r C-r C-r C-r C-r C-g M-v M-v M-v 
M-v M-v M-v M-v M-v M-v M-v M-v M-v M-v M-v C-r - o 
C-r C-r C-r C-r C-s C-s C-s C-a C-u C-u C-n C-l C-s 
C-g C-v C-s C-s C-s C-x b * g r <tab> <return> C-x 
b <return> M-v M-< C-s " a n d " C-x b <return> C-x 
b g r <tab> <return> C-u C-n C-u C-n C-u C-n C-n C-p 
M-v C-l C-s - p r u n e C-s C-s C-s C-l C-u C-u C-p 
C-u C-p C-n C-h v <return> C-x 1 C-u C-u C-n C-u C-n 
C-x b * <backspace> <return> C-x b <return> C-x b <return> 
C-s - n a m e C-x b <return> C-n M-b M-b M-b C-b C-M-f 
C-M-b M-f C-M-f C-M-f C-M-f C-z n <help-echo> <switch-frame> 
C-M-b C-M-f C-M-b C-f C-h f <return> C-x 1 C-u C-n 
C-u C-n C-n C-e C-x C-g C-n C-n C-e C-f M-m C-f C-f 
- t y p e SPC f SPC C-M-x C-x b <return> g n C-s - 
p r o <backspace> u n e C-s C-x b <return> M-v M-v 
C-M-x C-v C-s - p r u n e C-n C-n C-p C-h v <return> 
C-x 1 C-u C-u C-n C-f C-f C-x b * g r <tab> <return> 
M-x r g r e p <return> M-p <return> <return> <M-backspace> 
<return> C-g C-c i M-x r g r e p <return> M-p <return> 
<return> t e s t <tab> <return> C-z n C-x 1 C-z n C-x 
b <return> C-x v = y C-z o M-x r e p o r t - e m <tab> 
b <tab> <return>

Recent messages:
Grep finished (matches found)
Quit
kill-compilation: The grep process is not running
Grep finished (matches found)
Buffer grep.el.gz modified; save it? (y or n)  y
Saving file 
/home/tromey/Space/EmacsBzr/emacs-mt/install/share/emacs/24.1/lisp/progmodes/grep.el.gz...
compressing grep.el.gz...done
Wrote 
/home/tromey/Space/EmacsBzr/emacs-mt/install/share/emacs/24.1/lisp/progmodes/grep.el.gz
vc-deduce-fileset: No fileset is available here
Scanning for dabbrevs...done

Load-path shadows:
/home/tromey/lib/lisp/rpm-spec-mode hides 
/home/tromey/Space/EmacsBzr/emacs-mt/install/share/emacs/site-lisp/rpm-spec-mode
/home/tromey/Space/EmacsBzr/emacs-mt/install/share/emacs/site-lisp/flim/md4 
hides /home/tromey/Space/EmacsBzr/emacs-mt/install/share/emacs/24.1/lisp/md4
/home/tromey/Space/EmacsBzr/emacs-mt/install/share/emacs/site-lisp/flim/hex-util
 hides 
/home/tromey/Space/EmacsBzr/emacs-mt/install/share/emacs/24.1/lisp/hex-util
/home/tromey/.emacs.d/elpa/css-mode-1.0/css-mode hides 
/home/tromey/Space/EmacsBzr/emacs-mt/install/share/emacs/24.1/lisp/textmodes/css-mode
/home/tromey/.emacs.d/elpa/ruby-mode-1.0/ruby-mode hides 
/home/tromey/Space/EmacsBzr/emacs-mt/install/share/emacs/24.1/lisp/progmodes/ruby-mode
/home/tromey/.emacs.d/elpa/nxml-mode-20041004/nxml-ns hides 
/home/tromey/Space/EmacsBzr/emacs-mt/install/share/emacs/24.1/lisp/nxml/nxml-ns
/home/tromey/.emacs.d/elpa/nxml-mode-20041004/rng-valid hides 
/home/tromey/Space/EmacsBzr/emacs-mt/install/share/emacs/24.1/lisp/nxml/rng-valid
/home/tromey/.emacs.d/elpa/nxml-mode-20041004/rng-cmpct hides 
/home/tromey/Space/EmacsBzr/emacs-mt/install/share/emacs/24.1/lisp/nxml/rng-cmpct
/home/tromey/.emacs.d/elpa/nxml-mode-20041004/rng-dt hides 
/home/tromey/Space/EmacsBzr/emacs-mt/install/share/emacs/24.1/lisp/nxml/rng-dt
/home/tromey/.emacs.d/elpa/nxml-mode-20041004/rng-match hides 
/home/tromey/Space/EmacsBzr/emacs-mt/install/share/emacs/24.1/lisp/nxml/rng-match
/home/tromey/.emacs.d/elpa/nxml-mode-20041004/xmltok hides 
/home/tromey/Space/EmacsBzr/emacs-mt/install/share/emacs/24.1/lisp/nxml/xmltok
/home/tromey/.emacs.d/elpa/nxml-mode-20041004/nxml-glyph hides 
/home/tromey/Space/EmacsBzr/emacs-mt/install/share/emacs/24.1/lisp/nxml/nxml-glyph
/home/tromey/.emacs.d/elpa/nxml-mode-20041004/nxml-enc hides 
/home/tromey/Space/EmacsBzr/emacs-mt/install/share/emacs/24.1/lisp/nxml/nxml-enc
/home/tromey/.emacs.d/elpa/nxml-mode-20041004/rng-util hides 
/home/tromey/Space/EmacsBzr/emacs-mt/install/share/emacs/24.1/lisp/nxml/rng-util
/home/tromey/.emacs.d/elpa/nxml-mode-20041004/rng-nxml hides 
/home/tromey/Space/EmacsBzr/emacs-mt/install/share/emacs/24.1/lisp/nxml/rng-nxml
/home/tromey/.emacs.d/elpa/nxml-mode-20041004/rng-xsd hides 
/home/tromey/Space/EmacsBzr/emacs-mt/install/share/emacs/24.1/lisp/nxml/rng-xsd
/home/tromey/.emacs.d/elpa/nxml-mode-20041004/nxml-rap hides 
/home/tromey/Space/EmacsBzr/emacs-mt/install/share/emacs/24.1/lisp/nxml/nxml-rap
/home/tromey/.emacs.d/elpa/nxml-mode-20041004/nxml-maint hides 
/home/tromey/Space/EmacsBzr/emacs-mt/install/share/emacs/24.1/lisp/nxml/nxml-maint
/home/tromey/.emacs.d/elpa/nxml-mode-20041004/rng-pttrn hides 
/home/tromey/Space/EmacsBzr/emacs-mt/install/share/emacs/24.1/lisp/nxml/rng-pttrn
/home/tromey/.emacs.d/elpa/nxml-mode-20041004/nxml-outln hides 
/home/tromey/Space/EmacsBzr/emacs-mt/install/share/emacs/24.1/lisp/nxml/nxml-outln
/home/tromey/.emacs.d/elpa/nxml-mode-20041004/nxml-parse hides 
/home/tromey/Space/EmacsBzr/emacs-mt/install/share/emacs/24.1/lisp/nxml/nxml-parse
/home/tromey/.emacs.d/elpa/nxml-mode-20041004/rng-loc hides 
/home/tromey/Space/EmacsBzr/emacs-mt/install/share/emacs/24.1/lisp/nxml/rng-loc
/home/tromey/.emacs.d/elpa/nxml-mode-20041004/nxml-mode hides 
/home/tromey/Space/EmacsBzr/emacs-mt/install/share/emacs/24.1/lisp/nxml/nxml-mode
/home/tromey/.emacs.d/elpa/nxml-mode-20041004/xsd-regexp hides 
/home/tromey/Space/EmacsBzr/emacs-mt/install/share/emacs/24.1/lisp/nxml/xsd-regexp
/home/tromey/.emacs.d/elpa/nxml-mode-20041004/nxml-uchnm hides 
/home/tromey/Space/EmacsBzr/emacs-mt/install/share/emacs/24.1/lisp/nxml/nxml-uchnm
/home/tromey/.emacs.d/elpa/nxml-mode-20041004/rng-uri hides 
/home/tromey/Space/EmacsBzr/emacs-mt/install/share/emacs/24.1/lisp/nxml/rng-uri
/home/tromey/.emacs.d/elpa/nxml-mode-20041004/rng-parse hides 
/home/tromey/Space/EmacsBzr/emacs-mt/install/share/emacs/24.1/lisp/nxml/rng-parse
/home/tromey/.emacs.d/elpa/nxml-mode-20041004/rng-maint hides 
/home/tromey/Space/EmacsBzr/emacs-mt/install/share/emacs/24.1/lisp/nxml/rng-maint
/home/tromey/.emacs.d/elpa/nxml-mode-20041004/nxml-util hides 
/home/tromey/Space/EmacsBzr/emacs-mt/install/share/emacs/24.1/lisp/nxml/nxml-util
/home/tromey/Space/EmacsBzr/emacs-mt/install/share/emacs/site-lisp/flim/sasl-ntlm
 hides 
/home/tromey/Space/EmacsBzr/emacs-mt/install/share/emacs/24.1/lisp/net/sasl-ntlm
/home/tromey/Space/EmacsBzr/emacs-mt/install/share/emacs/site-lisp/flim/sasl 
hides 
/home/tromey/Space/EmacsBzr/emacs-mt/install/share/emacs/24.1/lisp/net/sasl
/home/tromey/Space/EmacsBzr/emacs-mt/install/share/emacs/site-lisp/flim/hmac-md5
 hides 
/home/tromey/Space/EmacsBzr/emacs-mt/install/share/emacs/24.1/lisp/net/hmac-md5
/home/tromey/Space/EmacsBzr/emacs-mt/install/share/emacs/site-lisp/flim/hmac-def
 hides 
/home/tromey/Space/EmacsBzr/emacs-mt/install/share/emacs/24.1/lisp/net/hmac-def
/home/tromey/Space/EmacsBzr/emacs-mt/install/share/emacs/site-lisp/flim/sasl-cram
 hides 
/home/tromey/Space/EmacsBzr/emacs-mt/install/share/emacs/24.1/lisp/net/sasl-cram
/home/tromey/Space/EmacsBzr/emacs-mt/install/share/emacs/site-lisp/flim/sasl-digest
 hides 
/home/tromey/Space/EmacsBzr/emacs-mt/install/share/emacs/24.1/lisp/net/sasl-digest
/home/tromey/Space/EmacsBzr/emacs-mt/install/share/emacs/site-lisp/flim/ntlm 
hides 
/home/tromey/Space/EmacsBzr/emacs-mt/install/share/emacs/24.1/lisp/net/ntlm
/home/tromey/.emacs.d/elpa/emms-3.0/tq hides 
/home/tromey/Space/EmacsBzr/emacs-mt/install/share/emacs/24.1/lisp/emacs-lisp/tq

Features:
(shadow emacsbug perl-mode conf-mode novice vc-arch vc-mtn iswitchb
face-remap vc-hg compface org-wl org-w3m org-vm org-rmail org-mhe
org-mew org-irc org-jsinfo org-infojs org-html org-exp ob-exp
org-exp-blocks find-func org-agenda org-info org-gnus org-docview
org-bibtex bibtex org-bbdb org ob-emacs-lisp ob-tangle ob-ref ob-lob
ob-table org-footnote org-src ob-comint ob-keys ob ob-eval org-pcomplete
org-list org-faces org-compat org-entities org-macs noutline outline
tutorial log-view cc-awk pascal tabify man gdb-mi bindat json texinfo
ksh-mode disass nnagent python-21 python vc-annotate imenu macros
apropos sh-script executable rect gnus-topic url-queue rfc2368
nroff-mode log-edit pcvs-util jimb-patch cal-move w3m-form w3m-cookie
w3m-bookmark w3m-tabmenu w3m-session w3m doc-view image-mode w3m-hist
w3m-fb bookmark-w3m w3m-ems w3m-ccl ccl w3m-favicon w3m-image w3m-proc
w3m-util binhex tar-mode etags ffap gnus-draft dwarf-mode gdb-shell
rng-xsd xsd-regexp rng-cmpct rng-nxml rng-valid rng-loc rng-uri
rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn nxml-ns
nxml-uchnm nxml-mode nxml-outln nxml-rap nxml-util nxml-glyph xmltok
vc-sccs vc-svn vc-cvs vc-dir ewoc goto-addr add-log debug tcl cus-start
cus-load autorevert make-mode gud vc ediff-merg ediff-diff ediff-wind
ediff-help ediff-util ediff-mult ediff-init ediff vc-dispatcher webjump
smerge-mode whitespace url-http url-gw url-auth url-handlers nndoc
vc-rcs asm-mode pcmpl-unix pcmpl-gnu shell find-file copyright dabbrev
shr-color color shr find-dired grep autoconf autoconf-mode idutils
compile compare-w vc-git cc-mode cc-fonts cc-guess cc-menus cc-cmds
gnus-fun newcomment mailalias bbdb-sc supercite regi mail-hist thai-util
thai-word bbdb-hooks diff-mode jka-compr flow-fill qp gnus-html
browse-url xml url-cache mm-url bbdb-gui mule-util smiley gnus-cite
gnus-bcklg vc-bzr multi-isearch dired-aux help-mode view erc-menu
erc-join erc-ring erc-pcomplete pcomplete erc-track erc-match erc-button
erc-fill erc-stamp erc-netsplit erc-spelling erc-truncate gnus-async
gnus-ml disp-table nndraft nnmh gnutls parse-time netrc network-stream
starttls tls nnml nnfolder bbdb-gnus bbdb-snarf mail-extr bbdb-com
warnings nnnil gnus-agent gnus-srvr gnus-score score-mode nnvirtual
gnus-msg gnus-art mm-uu mml2015 epg-config mm-view mml-smime smime dig
nntp gnus-cache gnus-sum nnoo gnus-group gnus-undo nnmail mail-source
smtpmail sendmail gnus-start gnus-spec gnus-int gnus-range message
rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231
rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader gnus-win gnus
gnus-ems nnheader mail-utils wid-edit flyspell ispell eldoc emms-status
emms-lastfm emms-browser sort emms-playlist-sort emms-score
emms-player-xine emms-player-mpd emms-url url url-proxy url-privacy
url-expand url-methods url-history url-cookie url-util url-parse
auth-source eieio byte-opt bytecomp byte-compile cconv macroexp assoc
gnus-util password-cache url-vars mm-util mail-prsvr mailcap tq
emms-playing-time emms-lyrics derived emms-streams emms-mode-line
emms-cache emms-info-ogginfo emms-info-mp3info emms-info later-do
emms-playlist-mode edmacro kmacro emms-player-mplayer emms-player-simple
emms-source-playlist emms-source-file locate dired emms-setup emms
emms-compat dwarf-mode-autoloads gdb-shell-autoloads nxml-enc
pydoc-info-autoloads info-look info weblogger-autoloads
xml-rpc-autoloads package reporter cal-china lunar solar cal-dst
cal-bahai cal-islam cal-hebrew holidays hol-loaddefs appt diary-lib
diary-loaddefs cal-menu easymenu calendar cal-loaddefs uniquify
mouse-sel easy-mmode status cl erc-services erc-networks erc-goodies erc
erc-backend erc-compat format-spec thingatpt pp cc-styles cc-align
cc-engine cc-vars cc-defs advice help-fns advice-preload bbdb timezone
ange-ftp comint regexp-opt ansi-color ring server bbdb-autoloads
time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd
tool-bar dnd fontset image fringe lisp-mode register page menu-bar
rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax
facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak
czech european ethiopic indian cyrillic chinese case-table epa-hook
jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces
cus-face files text-properties overlay sha1 md5 base64 format env
code-pages mule custom widget hashtable-print-readable backquote
make-network-process dbusbind dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)

Tom





reply via email to

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