From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Shenli Zhu Newsgroups: gmane.emacs.help Subject: Re: Problem with grep in Emacs 23.2 Date: Tue, 7 Sep 2010 15:28:57 +0800 Message-ID: References: <2491E099-746A-4074-B521-E912570D8B61@Web.DE> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0003255730b2a16d7e048fa659f7 X-Trace: dough.gmane.org 1283844597 22359 80.91.229.12 (7 Sep 2010 07:29:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 7 Sep 2010 07:29:57 +0000 (UTC) To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 07 09:29:56 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Osscp-000725-Pb for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Sep 2010 09:29:52 +0200 Original-Received: from localhost ([127.0.0.1]:40544 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Osscp-0000jn-5o for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Sep 2010 03:29:51 -0400 Original-Received: from [140.186.70.92] (port=38017 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ossbz-0000iw-Vv for help-gnu-emacs@gnu.org; Tue, 07 Sep 2010 03:29:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ossbz-0007xl-5j for help-gnu-emacs@gnu.org; Tue, 07 Sep 2010 03:28:59 -0400 Original-Received: from mail-iw0-f169.google.com ([209.85.214.169]:49678) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ossby-0007xh-T7 for help-gnu-emacs@gnu.org; Tue, 07 Sep 2010 03:28:59 -0400 Original-Received: by iwn33 with SMTP id 33so7367044iwn.0 for ; Tue, 07 Sep 2010 00:28:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=C8oLtfEnqE063CWjiWBNHxUzA+B5sUYn/J8SOPLWAFg=; b=RpnlObIDYW7AKDDdW9i9oxNd8A+4R45L8/LT/J5/pHmEdYvReTmb16NltOPp7Q8bV7 SD586jXB/R3i4ikfEXR/gNuT3nubg87aMHTIb9v8xahteFjRDdufaZC4Vk2FwYbc3Yx2 Ff9WeW4WhIN7VNwmmQ2ePUPzQnJHTWEdkiWlY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=NPKVJyuY3owNUcSp7qR1zo0YAkhGJ/tsSl2y9kBaC7AXv/+Nco6FZcaKrgTfx5A/PY D2VPXWpeBxk2d/a9rIviazYTYc1+1Pfvc33VpElzD+e1o0u6qyCCdw7hwOtzWq/xQbJ/ e5qDjcHR4Dvxup/4J9SiU9IhAO6lQ7vsUKLkg= Original-Received: by 10.231.35.202 with SMTP id q10mr7443136ibd.138.1283844537936; Tue, 07 Sep 2010 00:28:57 -0700 (PDT) Original-Received: by 10.231.154.2 with HTTP; Tue, 7 Sep 2010 00:28:57 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:74912 Archived-At: --0003255730b2a16d7e048fa659f7 Content-Type: text/plain; charset=ISO-8859-1 Set grep-use-null-device to t, problem solved. On Tue, Sep 7, 2010 at 9:50 AM, Shenli Zhu wrote: > Lennart, thank you, > > I set grep-use-null-device to nil, but the problem still happen. > > Maybe I shall trace the code to find how to avoid grep-probe. There is no > switch to turn off (grep-compute-defaults) in grep, because different > versions of grep. But I think most of people work on Linux and Gnu grep. So > why not have a switch tell it do not compute defaults? > > > On Tue, Sep 7, 2010 at 9:24 AM, Lennart Borgman > wrote: > >> Use customize to set the needed values, for example: >> >> M-x customize RET grep-use-null-device RET >> >> >> On Tue, Sep 7, 2010 at 3:05 AM, Shenli Zhu wrote: >> > Hi, Lennart, how to skip grep-probe/grep-compute-defaults (add hook or >> > change variable)? >> > >> > Thanks >> > >> > On Tue, Sep 7, 2010 at 8:24 AM, Lennart Borgman < >> lennart.borgman@gmail.com> >> > wrote: >> >> >> >> On Tue, Sep 7, 2010 at 2:22 AM, Shenli Zhu >> wrote: >> >> > Hi Peter, >> >> > >> >> > Do you mean the grep-command I set should be runnable in shell? I >> just >> >> > use >> >> > grep-command to store the grep template, so it cannot be run in >> shell. >> >> > >> >> > Why we need probe-grep? To test whether grep exists and whether its >> >> > function >> >> > works correctly? Can I skip it? >> >> >> >> >> >> probe-grep tries to find out what grep program you actually use and >> >> what it can do. So, yes, you can skip it if you know what the program >> >> can do. >> > >> > >> > > --0003255730b2a16d7e048fa659f7 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Set grep-use-null-device to t, problem solved.

On Tue, Sep 7, 2010 at 9:50 AM, Shenli Zhu <zhushenli2@gmail.com> wro= te:
Lennart, thank yo= u,

I set grep-use-null-device to nil, but the problem still happen. =

Maybe I shall trace the code to find how to avoid grep-probe. There is = no switch to turn off (grep-compute-defaults) in grep, because different ve= rsions of grep. But I think most of people work on Linux and Gnu grep. So w= hy not have a switch tell it do not compute defaults?


On Tue, Sep 7, 2010 at 9:24 AM, Lennart Borg= man <lennart.borgman@gmail.com> wrote:
Use customize to set the needed values, for example:

=A0M-x customize RET grep-use-null-device RET


On Tue, Sep 7, 2010 at 3:05 AM, Shenli Zhu <zhushenli2@gmail.com> wrote:
> Hi, Lennart, how to skip grep-probe/grep-compute-defaults (add hook or=
> change variable)?
>
> Thanks
>
> On Tue, Sep 7, 2010 at 8:24 AM, Lennart Borgman <lennart.borgman@gmail.com&= gt;
> wrote:
>>
>> On Tue, Sep 7, 2010 at 2:22 AM, Shenli Zhu <zhushenli2@gmail.com> wrote:<= br> >> > Hi Peter,
>> >
>> > Do you mean the grep-command I set should be runnable in shel= l? I just
>> > use
>> > grep-command to store the grep template, so it cannot be run = in shell.
>> >
>> > Why we need probe-grep? To test whether grep exists and wheth= er its
>> > function
>> > works correctly? Can I skip it?
>>
>>
>> probe-grep tries to find out what grep program you actually use an= d
>> what it can do. So, yes, you can skip it if you know what the prog= ram
>> can do.
>
>


--0003255730b2a16d7e048fa659f7--