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: Problem with grep in Emacs 23.2 Date: Mon, 6 Sep 2010 19:32:28 +0800 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0003255746cea742d2048f95a2df X-Trace: dough.gmane.org 1283772805 23815 80.91.229.12 (6 Sep 2010 11:33:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 6 Sep 2010 11:33:25 +0000 (UTC) To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 06 13:33:24 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 1OsZwx-0002LX-5r for geh-help-gnu-emacs@m.gmane.org; Mon, 06 Sep 2010 13:33:23 +0200 Original-Received: from localhost ([127.0.0.1]:53716 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OsZww-0004ck-Du for geh-help-gnu-emacs@m.gmane.org; Mon, 06 Sep 2010 07:33:22 -0400 Original-Received: from [140.186.70.92] (port=60376 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OsZwC-0004ag-8i for help-gnu-emacs@gnu.org; Mon, 06 Sep 2010 07:32:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OsZw5-0001io-Vs for help-gnu-emacs@gnu.org; Mon, 06 Sep 2010 07:32:30 -0400 Original-Received: from mail-iw0-f169.google.com ([209.85.214.169]:33101) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OsZw5-0001ik-SV for help-gnu-emacs@gnu.org; Mon, 06 Sep 2010 07:32:29 -0400 Original-Received: by iwn33 with SMTP id 33so6008027iwn.0 for ; Mon, 06 Sep 2010 04:32:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=80+X0OUBf73NV67vIsDzDIyYtj5w8wDIToSkhcs/js0=; b=UrEAOYYWOPeYN8jZcGvBbHmBrTFAmbClwOwRykgNqvWuTC8WWcS7FLhRU9YpjkCxFZ NiPmRUNwQ0KIsA8byiuWKdG/kUtSbDB62GD+JvRHGA2KO+/3VKDqp4Xe/0NRglahKT6h b27f0eTOfXEKjG7rTfYHPMyVUG4C5oMCFc1kI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=hHOqqYVL5DwMdLzdkM/gxaNGFfols8FNF8924G0FcCD1yq6ub8bRoxUbo2QoADdwye GuMHPnflv2WxVCfgmUI9vxQAbfd0j7KF2Uj5KqMA9HcKDsRkJC/C+Pki/ihjuuSMnfK1 y7G0ez2sjdoTkeSTUI/WzHhiW3udsf9Yk7pFo= Original-Received: by 10.231.30.76 with SMTP id t12mr5668524ibc.161.1283772748611; Mon, 06 Sep 2010 04:32:28 -0700 (PDT) Original-Received: by 10.231.154.2 with HTTP; Mon, 6 Sep 2010 04:32:28 -0700 (PDT) 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:74897 Archived-At: --0003255746cea742d2048f95a2df Content-Type: text/plain; charset=ISO-8859-1 Hi, In Emacs 23.1, to grep, (1) M-x grep, (2) change grep-command "grep -i -nH -e \"re\" -r \"/home/username/\" --include=\"*.*\"" to what I want. All works well. But in Emacs 23.2, after step(1), Emacs will fork a grep subprocess which take all CPU resource and I have to kill it. I trace the code, there is a function grep-compute-defaults, seems to check the system info and set some initial values. It will call grep-probe to run some small test(grep English in the file Hello in Emacs). But my grep-command cause Emacs/grep-probe into a non responsive state. I don't want to change grep-command, how can I skip grep-probe? Thanks, Davy --0003255746cea742d2048f95a2df Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,

In Emacs 23.1, to grep,
(1) M-x grep,
(2) change grep-c= ommand "grep -i -nH -e \"re\" -r \"/home/username/\&quo= t; --include=3D\"*.*\"" to what I want.
All works well.<= br>
But in Emacs 23.2, after step(1), Emacs will fork a grep subprocess whi= ch take all CPU resource and I have to kill it.

I trace the code, th= ere is a function grep-compute-defaults, seems to check the system info and= set some initial values. It will call grep-probe to run some small test(gr= ep English in the file Hello in Emacs).

But my grep-command cause Emacs/grep-probe into a non responsive state.=

I don't want to change grep-command, how can I skip grep-probe= ?

Thanks,
Davy
--0003255746cea742d2048f95a2df--