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 09:50:37 +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=001636e90310a72297048fa19f88 X-Trace: dough.gmane.org 1283824907 31392 80.91.229.12 (7 Sep 2010 02:01:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 7 Sep 2010 02:01:47 +0000 (UTC) Cc: help-gnu-emacs To: Lennart Borgman Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 07 04:01:46 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 1OsnVJ-0002kZ-Iu for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Sep 2010 04:01:46 +0200 Original-Received: from localhost ([127.0.0.1]:56238 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OsnLO-0003q1-By for geh-help-gnu-emacs@m.gmane.org; Mon, 06 Sep 2010 21:51:30 -0400 Original-Received: from [140.186.70.92] (port=46761 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OsnKZ-0003co-R2 for help-gnu-emacs@gnu.org; Mon, 06 Sep 2010 21:50:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OsnKY-0007D2-OX for help-gnu-emacs@gnu.org; Mon, 06 Sep 2010 21:50:39 -0400 Original-Received: from mail-iw0-f169.google.com ([209.85.214.169]:51782) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OsnKY-0007Ct-Iy for help-gnu-emacs@gnu.org; Mon, 06 Sep 2010 21:50:38 -0400 Original-Received: by iwn33 with SMTP id 33so7001057iwn.0 for ; Mon, 06 Sep 2010 18:50:38 -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:cc:content-type; bh=ZUR/Xu1lM4eYNOHheSp/IJSPBoz3ADnuje9hXErFFsI=; b=evKbzTlNjnZ7q85eUTKSDG+tEgMeGleAhTypCvzBK8t+l9WUYGPGAlTwrZhIHvn95y zxPqmS/l75p8i9h3VwU64JzLPt69AoPKM2HtRspreHggIr+l3wIpTZs6r8kqZ14so1Wn l4vgQXAf56dfTty5reXdHxHMgPlxhGitzbG1A= 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 :cc:content-type; b=EJ50BQpi2EuG8cGiK1eMPEeP1usmvhLJpm535QXx3PMsbvPfe7Z4Fts+lvgGjX9p37 JjIELK1TMOmtw9fJLpIE8Hgxq5UjjAeJ5I6J3ujg0N9FqCvFDNy5XbIp7k7dBlE9lUqA bcqoyXC4clsNmTMR9DJmP/nbE8w5Yms8SVnHg= Original-Received: by 10.231.161.73 with SMTP id q9mr7212257ibx.70.1283824237879; Mon, 06 Sep 2010 18:50:37 -0700 (PDT) Original-Received: by 10.231.154.2 with HTTP; Mon, 6 Sep 2010 18:50:37 -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:74911 Archived-At: --001636e90310a72297048fa19f88 Content-Type: text/plain; charset=ISO-8859-1 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. > > > > > --001636e90310a72297048fa19f88 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Lennart, thank you,

I set grep-use-null-device to nil, but the probl= em 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 Lin= ux and Gnu grep. So why not have a switch tell it do not compute defaults?<= br>
On Tue, Sep 7, 2010 at 9:24 AM, Lennart Borg= man <lenn= art.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>
> wrote:
>>
>> On Tue, Sep 7, 2010 at 2:22 AM, Shenli Zhu <zhushenli2@gmail.com> wrote:
>> > 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.
>
>

--001636e90310a72297048fa19f88--