From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: How to avoid /dev/null at the end of grep-command Date: Fri, 02 Mar 2007 15:49:17 +0200 Message-ID: References: <1172827235.116923.127160@31g2000cwt.googlegroups.com> NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1172843484 7436 80.91.229.12 (2 Mar 2007 13:51:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 2 Mar 2007 13:51:24 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 02 14:51:17 2007 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 1HN8A6-0006C7-Gn for geh-help-gnu-emacs@m.gmane.org; Fri, 02 Mar 2007 14:51:06 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HN8A6-0005EE-4c for geh-help-gnu-emacs@m.gmane.org; Fri, 02 Mar 2007 08:51:06 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HN88F-0004cR-6T for help-gnu-emacs@gnu.org; Fri, 02 Mar 2007 08:49:11 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HN88E-0004bm-0o for help-gnu-emacs@gnu.org; Fri, 02 Mar 2007 08:49:10 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HN88D-0004bU-HV for help-gnu-emacs@gnu.org; Fri, 02 Mar 2007 08:49:09 -0500 Original-Received: from cemetery.inter.net.il ([213.8.233.29]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HN88C-0000o6-Sr for help-gnu-emacs@gnu.org; Fri, 02 Mar 2007 08:49:09 -0500 Original-Received: from nitzan.inter.net.il (nitzan.inter.net.il [213.8.233.22]) by cemetery.inter.net.il (Postfix) with ESMTP id 128CC1334A4 for ; Fri, 2 Mar 2007 15:49:08 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([81.5.37.32]) by nitzan.inter.net.il (MOS 3.7.3a-GA) with ESMTP id GER52195 (AUTH halo1); Fri, 2 Mar 2007 15:49:05 +0200 (IST) In-reply-to: <1172827235.116923.127160@31g2000cwt.googlegroups.com> (al.coyote@gmail.com) X-detected-kernel: FreeBSD 6.x (1) 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:41596 Archived-At: > From: al.coyote@gmail.com > Date: 2 Mar 2007 01:20:35 -0800 > > Any solution to avoid the /dev/null, without modifying compile.el ? I'm guessing that this is Emacs 21.x; if not, holler. (I shouldn't be guessing, btw: please always state your Emacs version and the OS.) One way to work around this is to write a wrapper command that binds null-device to nil and then invokes the original `grep' command. You can put this command in your .emacs.