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: Tue, 14 Oct 2008 16:19:13 +0200 Message-ID: <38b2ab8a0810140719r3f24aea6q1de33ec693f6c03d@mail.gmail.com> References: <44vdw1iwkj.fsf@be-well.ilk.org> <44zllcmyht.fsf@lowell-desk.lan> <38b2ab8a0810140218s6d2d4a82wc2f41cd50f806b7e@mail.gmail.com> <44prm35q41.fsf@lowell-desk.lan> 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 1223994189 8118 80.91.229.12 (14 Oct 2008 14:23:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 14 Oct 2008 14:23:09 +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 Tue Oct 14 16:24: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 1Kpkm6-00053A-9v for geh-help-gnu-emacs@m.gmane.org; Tue, 14 Oct 2008 16:21:28 +0200 Original-Received: from localhost ([127.0.0.1]:55552 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kpkl1-0005kp-KE for geh-help-gnu-emacs@m.gmane.org; Tue, 14 Oct 2008 10:20:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kpkk3-0005KY-H1 for help-gnu-emacs@gnu.org; Tue, 14 Oct 2008 10:19:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kpkk0-0005IL-Gc for help-gnu-emacs@gnu.org; Tue, 14 Oct 2008 10:19:18 -0400 Original-Received: from [199.232.76.173] (port=34216 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kpkjz-0005I9-VX for help-gnu-emacs@gnu.org; Tue, 14 Oct 2008 10:19:16 -0400 Original-Received: from ug-out-1314.google.com ([66.249.92.171]:49661) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kpkjz-0002vB-86 for help-gnu-emacs@gnu.org; Tue, 14 Oct 2008 10:19:16 -0400 Original-Received: by ug-out-1314.google.com with SMTP id z36so1000056uge.17 for ; Tue, 14 Oct 2008 07:19:13 -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=CyGIbk5edGfSEpvv/nZmHY/nFq9sm/Pjw8/wwxem2Nk=; b=E4s06yCGDM8bGXpFvJKmh05+pjlrGmnht3knU3sqAfWG1FXXXGBTENClIrEBUiLCtG F9alyk+45ooIGX6WudD5StegiAJ3QaFQRXbpNDw5DbokryxZlZvn9FWju/4XCzholg3I QKhg8ctsgr9CSn05OSZTuEU/u5uKxXmUyq8UQ= 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=JuTrMWJywBnTcoR5KkZ7cBCeauEOSDmUCvzqL7h3iGWq8ye8O+y5KvhXi7EXP/+QAx U+H0tC4iH8qbU3gWbCjZ+38aW6X5GWtIKoWf/TScDNBeONF4L+zuIryAdiD7dScojFS3 3V1vlt9XgV06blJutACdCaizMpUVlVguIfPdk= Original-Received: by 10.67.115.3 with SMTP id s3mr4415862ugm.68.1223993953327; Tue, 14 Oct 2008 07:19:13 -0700 (PDT) Original-Received: by 10.67.26.6 with HTTP; Tue, 14 Oct 2008 07:19:13 -0700 (PDT) In-Reply-To: <44prm35q41.fsf@lowell-desk.lan> Content-Disposition: inline X-detected-operating-system: by monty-python.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:58766 Archived-At: On Tue, Oct 14, 2008 at 2:16 PM, Lowell Gilbert wrote: > "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. > BTW, it seems that you haven't used news group this time, have you ? If so, it explains why this time you reply to _me_ and Cc the mailing list... -- Francis