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: Tue, 14 Oct 2008 08:16:14 -0400 Message-ID: <44prm35q41.fsf@lowell-desk.lan> References: <44vdw1iwkj.fsf@be-well.ilk.org> <44zllcmyht.fsf@lowell-desk.lan> <38b2ab8a0810140218s6d2d4a82wc2f41cd50f806b7e@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1223986749 13190 80.91.229.12 (14 Oct 2008 12:19:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 14 Oct 2008 12:19:09 +0000 (UTC) Cc: Lowell Gilbert , help-gnu-emacs@gnu.org To: "Francis Moreau" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 14 14:20:06 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 1KpiqT-0001ac-GK for geh-help-gnu-emacs@m.gmane.org; Tue, 14 Oct 2008 14:17:49 +0200 Original-Received: from localhost ([127.0.0.1]:56357 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KpipO-0003eM-Mc for geh-help-gnu-emacs@m.gmane.org; Tue, 14 Oct 2008 08:16:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kpip7-0003eH-Hq for help-gnu-emacs@gnu.org; Tue, 14 Oct 2008 08:16:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kpip7-0003e5-0n for help-gnu-emacs@gnu.org; Tue, 14 Oct 2008 08:16:25 -0400 Original-Received: from [199.232.76.173] (port=47089 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kpip6-0003e2-UV for help-gnu-emacs@gnu.org; Tue, 14 Oct 2008 08:16:24 -0400 Original-Received: from mail8.sea5.speakeasy.net ([69.17.117.10]:54970) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kpip6-0001mT-Qi for help-gnu-emacs@gnu.org; Tue, 14 Oct 2008 08:16:25 -0400 Original-Received: (qmail 26234 invoked from network); 14 Oct 2008 12:16:20 -0000 Original-Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail8.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 14 Oct 2008 12:16:19 -0000 Original-Received: from lowell-desk.lan (lowell-desk.lan [172.30.250.6]) by be-well.ilk.org (Postfix) with ESMTP id C7F325083B; Tue, 14 Oct 2008 08:16:15 -0400 (EDT) Original-Received: by lowell-desk.lan (Postfix, from userid 1147) id 3BBB71CCA4; Tue, 14 Oct 2008 08:16:15 -0400 (EDT) In-Reply-To: <38b2ab8a0810140218s6d2d4a82wc2f41cd50f806b7e@mail.gmail.com> (Francis Moreau's message of "Tue\, 14 Oct 2008 11\:18\:45 +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:58758 Archived-At: "Francis Moreau" writes: > On Fri, Oct 10, 2008 at 2:21 PM, Lowell Gilbert > wrote: >> "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, > > Just of curiosity, how do you do that with newsgroups ? any special key bindings > or do you just add Cc field ? I do it by hand. You could automate it, but the trick would be extracting the e-mail address to use. Maybe the attribution line would be the easy way to do it. Maybe putting it in the followup command would be better than doing it afterwards -- I don't see any existing commands to do that, but a wrapper around the followup command should do it.