From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lowell Gilbert Newsgroups: gmane.emacs.help Subject: Re: M-x grep gets /dev/null automatically appended to the command Date: Fri, 10 Oct 2008 08:21:50 -0400 Message-ID: <44zllcmyht.fsf@lowell-desk.lan> References: <44vdw1iwkj.fsf@be-well.ilk.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1223641568 29601 80.91.229.12 (10 Oct 2008 12:26:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 10 Oct 2008 12:26:08 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Francis Moreau" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 10 14:27: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 1KoH1n-00087C-UK for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Oct 2008 14:23:32 +0200 Original-Received: from localhost ([127.0.0.1]:34310 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KoH0j-0002SB-Oh for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Oct 2008 08:22:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KoH0P-0002Rp-6h for help-gnu-emacs@gnu.org; Fri, 10 Oct 2008 08:22:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KoH0N-0002Qq-Nf for help-gnu-emacs@gnu.org; Fri, 10 Oct 2008 08:22:03 -0400 Original-Received: from [199.232.76.173] (port=39954 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KoH0N-0002Qc-HV for help-gnu-emacs@gnu.org; Fri, 10 Oct 2008 08:22:03 -0400 Original-Received: from mail1.sea5.speakeasy.net ([69.17.117.3]:40900) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KoH0K-0000Ja-NM for help-gnu-emacs@gnu.org; Fri, 10 Oct 2008 08:22:01 -0400 Original-Received: (qmail 8735 invoked from network); 10 Oct 2008 12:21:56 -0000 Original-Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail1.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 10 Oct 2008 12:21:56 -0000 Original-Received: from lowell-desk.lan (lowell-desk.lan [172.30.250.6]) by be-well.ilk.org (Postfix) with ESMTP id 0B19628449; Fri, 10 Oct 2008 08:21:51 -0400 (EDT) Original-Received: by lowell-desk.lan (Postfix, from userid 1147) id 22EC21CDF9; Fri, 10 Oct 2008 08:21:50 -0400 (EDT) In-Reply-To: (Francis Moreau's message of "Fri\, 10 Oct 2008 10\:13\:41 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (berkeley-unix) 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:58664 Archived-At: "Francis Moreau" writes: > 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 ? I normally do that with mailing lists and not with newsgroups. It's possible either way, of course, but with newsgroups I do it rarely enough that I just write the recipient in by hand.