From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Benjamin Riefenstahl Newsgroups: gmane.emacs.bugs Subject: bug#42136: 26.1.90; rgrep uses a directory that was not actually given Date: Tue, 30 Jun 2020 12:45:42 +0200 Message-ID: <877dvo25nt.fsf@riefenstahl-thinkpad.mecom.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37474"; mail-complaints-to="usenet@ciao.gmane.io" To: 42136@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 30 18:49:31 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jqIxc-0008jZ-6t for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 30 Jun 2020 18:18:16 +0200 Original-Received: from localhost ([::1]:37776 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jqE7W-0003yZ-Hv for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 30 Jun 2020 07:08:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47602) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jqE7P-0003wF-4W for bug-gnu-emacs@gnu.org; Tue, 30 Jun 2020 07:08:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38771) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jqE7O-0006tL-QD for bug-gnu-emacs@gnu.org; Tue, 30 Jun 2020 07:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jqE7O-0004BM-Kr for bug-gnu-emacs@gnu.org; Tue, 30 Jun 2020 07:08:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Benjamin Riefenstahl Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Jun 2020 11:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42136 X-GNU-PR-Package: emacs X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.159351527116057 (code B ref -1); Tue, 30 Jun 2020 11:08:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 30 Jun 2020 11:07:51 +0000 Original-Received: from localhost ([127.0.0.1]:50317 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jqE7C-0004Au-TZ for submit@debbugs.gnu.org; Tue, 30 Jun 2020 07:07:51 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:35788) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jqE7A-0004Am-MQ for submit@debbugs.gnu.org; Tue, 30 Jun 2020 07:07:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47574) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jqE7A-0003fd-IK for bug-gnu-emacs@gnu.org; Tue, 30 Jun 2020 07:07:48 -0400 Original-Received: from smtp-dmz2.mecom.de ([194.213.98.85]:41739) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jqE77-0006qK-BG for bug-gnu-emacs@gnu.org; Tue, 30 Jun 2020 07:07:47 -0400 Original-Received: from [192.168.226.245] (helo=exchange-cas2.mecom.de) by smtp-dmz2.mecom.de with esmtps (TLS1.0:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jqDln-0003TF-On for bug-gnu-emacs@gnu.org; Tue, 30 Jun 2020 12:45:43 +0200 Original-Received: from riefenstahl-thinkpad.mecom.de.mecom.de (192.168.227.249) by EXCHANGE-CAS.mecom.de (192.168.226.243) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 30 Jun 2020 12:45:39 +0200 X-Originating-IP: [192.168.227.249] Received-SPF: pass client-ip=194.213.98.85; envelope-from=Riefenstahl@mecom.de; helo=smtp-dmz2.mecom.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/30 06:45:44 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: -1.4 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -2.4 (--) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:182573 Archived-At: Receipe: * M-x make-directory RET "/tmp/cds_config" RET * rgrep RET abc RET * RET /tmp/cds_c RET Observed: rgrep searches in "/tmp/cds_config". Expected: Error message that the directory "/tmp/cds_c" does not exist. Alternatively a comfirmation question about the completion. ---- Long form of the use case: I have two projects with similar names "cds_c" and "cds_config". On some of my machines both are checked out side-by-side, on some only one of them is. Today I called rgrep and gave ".../cds_c" as input for the directory. rgrep actually searched in ".../cds_config". I only later discovered that that was what happened, initially I thought my pattern was just not found in my project "cds_c". I would have expected that rgrep would complain that the directory does not exist, either during input or later, instead of silently completing the directory name. The directory name that was searched is of course in the grep buffer, but the grep buffer looks like this: --------- -*- mode: grep; default-directory: "/tmp/cds_config/" -*- Grep started at Tue Jun 30 12:25:32 find . -type d \( -path \*/CVS -o -path \*/.svn -o -path \*/\{arch\} -o -path \*/.hg -o -path \*/_darcs -o -path \*/.git -o -path \*/.bzr -o -path \*/.metadata -o -path \*/.metadata.old -o -path \*/maven-targets -o -path \*/build -o -path \*/target -o -path \*/projekktor -o -path \*/node_modules \) -prune -o \! -type d \( -name .\#\* -o -name \*.cmti -o -name \*.cmt -o -name \*.annot -o -name \*.cmi -o -name \*.cmxa -o -name \*.cma -o -name \*.cmx -o -name \*.cmo -o -name \*.o -o -name \*\~ -o -name \*.bin -o -name \*.lbin -o -name \*.so -o -name \*.a -o -name \*.ln -o -name \*.blg -o -name \*.bbl -o -name \*.elc -o -name \*.lof -o -name \*.glo -o -name \*.idx -o -name \*.lot -o -name \*.fmt -o -name \*.tfm -o -name \*.class -o -name \*.fas -o -name \*.lib -o -name \*.mem -o -name \*.x86f -o -name \*.sparcf -o -name \*.dfsl -o -name \*.pfsl -o -name \*.d64fsl -o -name \*.p64fsl -o -name \*.lx64fsl -o -name \*.lx32fsl -o -name \*.dx64fsl -o -name \*.dx32fsl -o -name \*.fx64fsl -o -name \*.fx32fsl -o -name \*.sx64fsl -o -name \*.sx32fsl -o -name \*.wx64fsl -o -name \*.wx32fsl -o -name \*.fasl -o -name \*.ufsl -o -name \*.fsl -o -name \*.dxl -o -name \*.lo -o -name \*.la -o -name \*.gmo -o -name \*.mo -o -name \*.toc -o -name \*.aux -o -name \*.cp -o -name \*.fn -o -name \*.ky -o -name \*.pg -o -name \*.tp -o -name \*.vr -o -name \*.cps -o -name \*.fns -o -name \*.kys -o -name \*.pgs -o -name \*.tps -o -name \*.vrs -o -name \*.pyc -o -name \*.pyo \) -prune -o -type f ! -name '*[~#]*' ! -name TAGS ! -name '*.patch' ! -name '*.jpg' ! -name '*.log' ! -name '*.log.*' \( -name \* \) -print0 | xargs -0 -e grep --color -i -nH -e abc Grep finished with no matches found at Tue Jun 30 12:25:32 --------- And of course I was concentrating on the bottom where it says "no matches", not at all on the top of the buffer to confirm that rgrep actually did what I just told it to do. I tried to find if the behaviour was somehow customizable, but it seems not. ---- In GNU Emacs 26.1.90 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2018-11-22 built on riefenstahl-thinkpad Repository revision: 93242b14769ed40ae58e89d0ea45df8872f59869 Windowing system distributor 'The X.Org Foundation', version 11.0.11906000 System Description: Ubuntu 16.04.6 LTS Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM THREADS LCMS2 Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: global-magit-file-mode: t global-git-commit-mode: t async-bytecomp-package-mode: t desktop-save-mode: t display-time-mode: t diff-auto-refine-mode: t delete-selection-mode: t shell-dirtrack-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-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 column-number-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug sendmail pulse xref project cl-print debug eieio-opt speedbar sb-image ezimage dframe find-func help-fns markdown-mode color noutline outline sql view conf-mode yaml-mode magit-find-file find-dired calculator dirtrack log-view vc vc-dispatcher json-mode json-reformat json-snatcher js sgml-mode dom json map thingatpt misearch multi-isearch sh-script smie executable dired-aux bug-reference edmacro kmacro magit-extras magit-submodule magit-obsolete magit-popup magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log magit-diff smerge-mode magit-core magit-autorevert autorevert filenotify magit-margin magit-transient magit-process magit-mode transient git-commit magit-git magit-section magit-utils crm log-edit message-x message rmc puny rfc822 mml mml-sec epa epg gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log with-editor cl-extra help-mode async-bytecomp async subr-x dash files-x elec-pair desktop frameset highline ange-ftp generic-x cl autoinsert ps-print ps-print-loaddefs ps-def lpr dired dired-loaddefs benny-x-clipboard disp-table mm-util mail-prsvr time server protbuf solar cal-dst cal-islam cal-hebrew holidays hol-loaddefs vc-git diff-mode easy-mmode benny-mtff-mode diary-lib diary-loaddefs cal-menu calendar cal-loaddefs which-func imenu jka-compr grep compile delsel cus-start cus-load tty-format generic benny-calendar-cfg derived browse-url cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs benny-file-cache filecache tramp-sh docker-tramp tramp-cache tramp tramp-compat tramp-loaddefs trampver ucs-normalize shell pcomplete comint ansi-color ring parse-time format-spec advice benny-unicode .loaddefs benny-tools autoload radix-tree lisp-mnt finder-inf gh-common marshal eieio-compat rx info package easymenu epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 702186 71703) (symbols 48 40155 2) (miscs 40 7447 2586) (strings 32 108374 9705) (string-bytes 1 3586419) (vectors 16 71858) (vector-slots 8 1930070 196080) (floats 8 913 803) (intervals 56 43045 2395) (buffers 992 98) (heap 1024 68850 3631))