From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 04 15:41:20 2012 Received: (at submit) by debbugs.gnu.org; 4 Feb 2012 20:41:21 +0000 Received: from localhost ([127.0.0.1]:54626 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RtmQB-00024K-RE for submit@debbugs.gnu.org; Sat, 04 Feb 2012 15:41:20 -0500 Received: from eggs.gnu.org ([140.186.70.92]:54611) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RtmQ9-000248-H6 for submit@debbugs.gnu.org; Sat, 04 Feb 2012 15:41:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RtmPP-0002x7-Bs for submit@debbugs.gnu.org; Sat, 04 Feb 2012 15:40:32 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([140.186.70.17]:49997) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RtmPP-0002x1-AD for submit@debbugs.gnu.org; Sat, 04 Feb 2012 15:40:31 -0500 Received: from eggs.gnu.org ([140.186.70.92]:42991) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RtmPO-0005ly-0P for bug-gnu-emacs@gnu.org; Sat, 04 Feb 2012 15:40:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RtmPJ-0002wT-0n for bug-gnu-emacs@gnu.org; Sat, 04 Feb 2012 15:40:29 -0500 Received: from mail-iy0-f169.google.com ([209.85.210.169]:37115) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RtmPI-0002vK-Sp for bug-gnu-emacs@gnu.org; Sat, 04 Feb 2012 15:40:24 -0500 Received: by iagz16 with SMTP id z16so8403822iag.0 for ; Sat, 04 Feb 2012 12:40:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=b3GRaze+8wDNbY+xE7th2u2VsmxD0SZFr+Hh516/Z/Q=; b=qzNETcjOfeWVe9dtVZuKkNLfm8QN1p0ZjrU/z+mrUIZpIzKAEWfIXviEqyMauLVHKY XkvYwY9CQ4g+b48faz3Jzucc91xfcVBGZW1JpY4xe3tvsdxGWEMgSa7YOcH899UHvJuP QpCIg+X8026bdiYS1RpU1649pfJ2v/E53iCM4= Received: by 10.42.151.195 with SMTP id f3mr11483256icw.19.1328388023232; Sat, 04 Feb 2012 12:40:23 -0800 (PST) Received: from [192.168.1.2] (71-212-144-226.hlrn.qwest.net. [71.212.144.226]) by mx.google.com with ESMTPS id ak10sm13710926igc.6.2012.02.04.12.40.21 (version=SSLv3 cipher=OTHER); Sat, 04 Feb 2012 12:40:22 -0800 (PST) Message-ID: <4F2D97B5.8090401@gmail.com> Date: Sat, 04 Feb 2012 13:40:21 -0700 From: Christoph Scholtes User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0) Gecko/20120129 Thunderbird/10.0 MIME-Version: 1.0 To: bug-gnu-emacs@gnu.org Subject: lgrep fails with certain entries in grep-files-aliases Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -3.2 (---) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.2 (---) The documentation of grep-files-aliases says: *Alist for the FILES argument to `lgrep' and `rgrep'. Certain aliases in that list do not work with lgrep. For example, `cc' works fine with rgrep, but fails with lgrep with the following recipe: emacs -Q M-x lgrep Search for: main in files: cc In directory: ~/devel/emacs/trunk/src/ Result: -*- mode: grep; default-directory: "~/devel/emacs/trunk/src/" -*- Grep started at Sat Feb 4 13:37:18 grep --exclude=.\#\* --exclude=\*.o --exclude=\*\~ --exclude=\*.bin --exclude=\*.lbin --exclude=\*.so --exclude=\*.a --exclude=\*.ln --exclude=\*.blg --exclude=\*.bbl --exclude=\*.elc --exclude=\*.lof --exclude=\*.glo --exclude=\*.idx --exclude=\*.lot --exclude=\*.fmt --exclude=\*.tfm --exclude=\*.class --exclude=\*.fas --exclude=\*.lib --exclude=\*.mem --exclude=\*.x86f --exclude=\*.sparcf --exclude=\*.dfsl --exclude=\*.pfsl --exclude=\*.d64fsl --exclude=\*.p64fsl --exclude=\*.lx64fsl --exclude=\*.lx32fsl --exclude=\*.dx64fsl --exclude=\*.dx32fsl --exclude=\*.fx64fsl --exclude=\*.fx32fsl --exclude=\*.sx64fsl --exclude=\*.sx32fsl --exclude=\*.wx64fsl --exclude=\*.wx32fsl --exclude=\*.fasl --exclude=\*.ufsl --exclude=\*.fsl --exclude=\*.dxl --exclude=\*.lo --exclude=\*.la --exclude=\*.gmo --exclude=\*.mo --exclude=\*.toc --exclude=\*.aux --exclude=\*.cp --exclude=\*.fn --exclude=\*.ky --exclude=\*.pg --exclude=\*.tp --exclude=\*.vr --exclude=\*.cps --exclude=\*.fns --exclude=\*.kys --exclude=\*.pgs --exclude=\*.tps --exclude=\*.vrs --exclude=\*.pyc --exclude=\*.pyo -i -nH -e main *.cc *.cxx *.cpp *.C *.CC *.c++ grep: *.cc: No such file or directory grep: *.cxx: No such file or directory grep: *.cpp: No such file or directory grep: *.C: No such file or directory grep: *.CC: No such file or directory grep: *.c++: No such file or directory Grep exited abnormally with code 2 at Sat Feb 4 13:37:18 This is Emacs trunk (r107094) on Debian Testing. From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 04 16:09:24 2012 Received: (at 10728) by debbugs.gnu.org; 4 Feb 2012 21:09:24 +0000 Received: from localhost ([127.0.0.1]:54648 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RtmrL-0002io-Mj for submit@debbugs.gnu.org; Sat, 04 Feb 2012 16:09:24 -0500 Received: from mtaout22.012.net.il ([80.179.55.172]:53742) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RtmrI-0002iX-6T for 10728@debbugs.gnu.org; Sat, 04 Feb 2012 16:09:21 -0500 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LYV00G00ZXURG00@a-mtaout22.012.net.il> for 10728@debbugs.gnu.org; Sat, 04 Feb 2012 23:08:33 +0200 (IST) Received: from HOME-C4E4A596F7 ([84.229.218.68]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LYW00G2U028AU80@a-mtaout22.012.net.il>; Sat, 04 Feb 2012 23:08:33 +0200 (IST) Date: Sat, 04 Feb 2012 23:08:33 +0200 From: Eli Zaretskii Subject: Re: bug#10728: lgrep fails with certain entries in grep-files-aliases In-reply-to: <4F2D97B5.8090401@gmail.com> X-012-Sender: halo1@inter.net.il To: Christoph Scholtes Message-id: <83vcnmcnn2.fsf@gnu.org> References: <4F2D97B5.8090401@gmail.com> X-Spam-Score: -1.2 (-) X-Debbugs-Envelope-To: 10728 Cc: 10728@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.2 (-) > Date: Sat, 04 Feb 2012 13:40:21 -0700 > From: Christoph Scholtes > > The documentation of grep-files-aliases says: > *Alist for the FILES argument to `lgrep' and `rgrep'. > > Certain aliases in that list do not work with lgrep. > > For example, `cc' works fine with rgrep, but fails with lgrep with the > following recipe: > > emacs -Q > M-x lgrep > Search for: main > in files: cc > In directory: ~/devel/emacs/trunk/src/ > > Result: > > -*- mode: grep; default-directory: "~/devel/emacs/trunk/src/" -*- > Grep started at Sat Feb 4 13:37:18 > > grep --exclude=.\#\* --exclude=\*.o --exclude=\*\~ --exclude=\*.bin > --exclude=\*.lbin --exclude=\*.so --exclude=\*.a --exclude=\*.ln > --exclude=\*.blg --exclude=\*.bbl --exclude=\*.elc --exclude=\*.lof > --exclude=\*.glo --exclude=\*.idx --exclude=\*.lot --exclude=\*.fmt > --exclude=\*.tfm --exclude=\*.class --exclude=\*.fas --exclude=\*.lib > --exclude=\*.mem --exclude=\*.x86f --exclude=\*.sparcf --exclude=\*.dfsl > --exclude=\*.pfsl --exclude=\*.d64fsl --exclude=\*.p64fsl > --exclude=\*.lx64fsl --exclude=\*.lx32fsl --exclude=\*.dx64fsl > --exclude=\*.dx32fsl --exclude=\*.fx64fsl --exclude=\*.fx32fsl > --exclude=\*.sx64fsl --exclude=\*.sx32fsl --exclude=\*.wx64fsl > --exclude=\*.wx32fsl --exclude=\*.fasl --exclude=\*.ufsl > --exclude=\*.fsl --exclude=\*.dxl --exclude=\*.lo --exclude=\*.la > --exclude=\*.gmo --exclude=\*.mo --exclude=\*.toc --exclude=\*.aux > --exclude=\*.cp --exclude=\*.fn --exclude=\*.ky --exclude=\*.pg > --exclude=\*.tp --exclude=\*.vr --exclude=\*.cps --exclude=\*.fns > --exclude=\*.kys --exclude=\*.pgs --exclude=\*.tps --exclude=\*.vrs > --exclude=\*.pyc --exclude=\*.pyo -i -nH -e main *.cc *.cxx *.cpp *.C > *.CC *.c++ > grep: *.cc: No such file or directory > grep: *.cxx: No such file or directory > grep: *.cpp: No such file or directory > grep: *.C: No such file or directory > grep: *.CC: No such file or directory > grep: *.c++: No such file or directory Why do you think this is a "failure"? There indeed are no files matching these widlcards in the Emacs's src directory. From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 04 16:51:15 2012 Received: (at 10728-done) by debbugs.gnu.org; 4 Feb 2012 21:51:15 +0000 Received: from localhost ([127.0.0.1]:54658 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RtnVq-0004Sv-Sd for submit@debbugs.gnu.org; Sat, 04 Feb 2012 16:51:15 -0500 Received: from mail-iy0-f172.google.com ([209.85.210.172]:38329) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RtnVn-0004Si-OU for 10728-done@debbugs.gnu.org; Sat, 04 Feb 2012 16:51:12 -0500 Received: by iagf6 with SMTP id f6so7029669iag.3 for <10728-done@debbugs.gnu.org>; Sat, 04 Feb 2012 13:50:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=G1xzWRyYy30bvFPVJnzQwHjfAzlPc0wJ/cPAfxYAFZ4=; b=fyDqR9FfXg6k2NPrai335RCmZIo+Vsf/8C5hAQjrmzNyHKgVy5Ox2WU1u33Z4kD+gd 8i2r6orCYcDAsLBxAXkNkbrqF0KD1VM1noyrB2wwYf7f2kqE7TTgVGshdEW+0g5ll+NB lRjTHIHyNOdsbLLUKG9TBqM0gCfUBoocYBQ1U= Received: by 10.42.155.70 with SMTP id t6mr11861498icw.11.1328392225644; Sat, 04 Feb 2012 13:50:25 -0800 (PST) Received: from [192.168.1.2] (71-212-144-226.hlrn.qwest.net. [71.212.144.226]) by mx.google.com with ESMTPS id ko6sm9871995igc.2.2012.02.04.13.50.12 (version=SSLv3 cipher=OTHER); Sat, 04 Feb 2012 13:50:25 -0800 (PST) Message-ID: <4F2DA814.7040206@gmail.com> Date: Sat, 04 Feb 2012 14:50:12 -0700 From: Christoph Scholtes User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0) Gecko/20120129 Thunderbird/10.0 MIME-Version: 1.0 To: Eli Zaretskii Subject: Re: bug#10728: lgrep fails with certain entries in grep-files-aliases References: <4F2D97B5.8090401@gmail.com> <83vcnmcnn2.fsf@gnu.org> In-Reply-To: <83vcnmcnn2.fsf@gnu.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 10728-done Cc: 10728-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.3 (--) On 2/4/2012 2:08 PM, Eli Zaretskii wrote: > Why do you think this is a "failure"? There indeed are no files > matching these widlcards in the Emacs's src directory. I guess you are right. I compared it to rgrep where the result is `Grep:exit [no match]' and the mode line says `Grep finished with no matches found'. Whereas with lgrep you get an `abnormal exit' from grep even if there are matches to some of the wild cards. This example was contrived. I noticed this at work in a tree where there were .CC and .cpp files present, but grep still exited abnormally. There is no failure in Emacs. I'm closing this. Thanks. Christoph From unknown Mon Aug 18 09:03:00 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 04 Mar 2012 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator