From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Mike Ballard Newsgroups: gmane.emacs.help Subject: grep/dired Date: Mon, 20 Oct 2003 00:52:24 GMT Organization: EarthLink Inc. -- http://www.EarthLink.net Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1066611728 897 80.91.224.253 (20 Oct 2003 01:02:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 20 Oct 2003 01:02:08 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 20 03:02:06 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ABOQw-00038r-00 for ; Mon, 20 Oct 2003 03:02:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ABOPp-0004qT-Ub for geh-help-gnu-emacs@m.gmane.org; Sun, 19 Oct 2003 21:00:57 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!stamper.news.atl.earthlink.net!newsread2.news.atl.earthlink.net.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help X-Newsreader: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Original-Lines: 21 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Original-NNTP-Posting-Host: 67.75.7.156 Original-X-Complaints-To: abuse@earthlink.net Original-X-Trace: newsread2.news.atl.earthlink.net 1066611144 67.75.7.156 (Sun, 19 Oct 2003 20:52:24 EDT) hardymi@earthlink.net Original-NNTP-Posting-Date: Sun, 19 Oct 2003 20:52:24 EDT Original-Xref: shelby.stanford.edu gnu.emacs.help:117425 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:13356 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:13356 Hi - Tried looking around but sort of don't know how to search for the answer - when I open a dired buffer of other than ~/, then use M-x grep, it searches files in ~/. I'm pretty sure the reason is because in ~/.cshrc the last thing I do is 'chdir $HOME' (which I don't want to change). In csh you can start a script with "-f" telling it to use current env - is there a way to do the same thing for Emacs' grep so that it will grep on the current dired buffer? If possible I'd like to use grep and not find-grep-dired. Mike -- mike.ballard--at--earthlink.net "Roses are red, violets are blue, I'm schizophrenic and so am I"