From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Francis Moreau" Newsgroups: gmane.emacs.help Subject: Re: M-x grep gets /dev/null automatically appended to the command Date: Fri, 10 Oct 2008 10:13:41 +0200 Message-ID: <38b2ab8a0810100113x41d7ef9bi882fef456ead5268@mail.gmail.com> References: <44vdw1iwkj.fsf@be-well.ilk.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1223626625 2210 80.91.229.12 (10 Oct 2008 08:17:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 10 Oct 2008 08:17:05 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Lowell Gilbert" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 10 10:18:03 2008 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.50) id 1KoDC6-00006H-SJ for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Oct 2008 10:17:55 +0200 Original-Received: from localhost ([127.0.0.1]:54692 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KoDB2-0008HU-Co for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Oct 2008 04:16:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KoD8A-0007Jw-1G for help-gnu-emacs@gnu.org; Fri, 10 Oct 2008 04:13:50 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KoD85-0007Ih-Co for help-gnu-emacs@gnu.org; Fri, 10 Oct 2008 04:13:49 -0400 Original-Received: from [199.232.76.173] (port=41259 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KoD85-0007Id-7B for help-gnu-emacs@gnu.org; Fri, 10 Oct 2008 04:13:45 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:18854) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KoD85-0002so-Tl for help-gnu-emacs@gnu.org; Fri, 10 Oct 2008 04:13:46 -0400 Original-Received: from ug-out-1314.google.com ([66.249.92.168]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KoD84-0003Df-4K for help-gnu-emacs@gnu.org; Fri, 10 Oct 2008 04:13:44 -0400 Original-Received: by ug-out-1314.google.com with SMTP id z36so1336131uge.17 for ; Fri, 10 Oct 2008 01:13:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=b5D0bBud/hiP/q/GVnZ3xdUC+eIlfXcUv/NQ4+ysBSQ=; b=Yp3C7xpbIFH4S3PDyj2HVFdrq+cOLDi6K70RkhZUkHkgNPfEOpA6nUTfhBBM/XOZun oFjvVGXwI8ho2pGPSaI/HkwGHMmR6mOM20DKrF5Nldgnf0o3t6VqKzKmu2xk6tnYW5UF 1YgtslHTVwSIXDSLo6xOntjkvtcUqevSd7yg4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=ZZ9Au30fJsB4Va097LTnphtda35hGP/9bvm7T3DduC8Wr9w2WqvTreQ7T5RS4WAi/c FrlpCfPPMrW9aic7vYX1eg9rfqO5bYXuGeLunKR0pgNLC5ySgU+xVOvAq2FMTNJ+6tLT krQA2RApALQlPDmC37gimUru/oJ6lNwCNb8Do= Original-Received: by 10.67.121.14 with SMTP id y14mr412359ugm.10.1223626421290; Fri, 10 Oct 2008 01:13:41 -0700 (PDT) Original-Received: by 10.67.26.6 with HTTP; Fri, 10 Oct 2008 01:13:41 -0700 (PDT) In-Reply-To: <44vdw1iwkj.fsf@be-well.ilk.org> Content-Disposition: inline X-detected-kernel: by mx20.gnu.org: Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:58655 Archived-At: Hello, On Thu, Oct 9, 2008 at 6:04 PM, Lowell Gilbert wrote: > "Francis Moreau" writes: > >> I have customized my grep-command variable this way: >> >> (setq grep-command "git --no-pager grep -n -e ") >> >> because I'm working in a git repo. >> >> But when I start the grep command (M-x grep), emacs appends >> '/dev/null' to the git command: >> >> git --no-pager grep -n -e seq /dev/null >> >> Can anybody tell my what I'm doing wrong ? > > Check grep-use-null-device. > Indeed I force it to nil and it magically works. Thanks ! Other topic: it looks like you're using gnus and newsgroup to post/reply on this list. Is it possible to CC me when you're replying ? -- Francis