From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Masterson Newsgroups: gmane.emacs.help Subject: Re: problem with grep and exec-path Date: 16 Apr 2003 10:51:32 -0700 Organization: Posted via Supernews, http://www.supernews.com Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1050515731 14365 80.91.224.249 (16 Apr 2003 17:55:31 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 16 Apr 2003 17:55:31 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 16 19:55:28 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 195r83-0003j4-00 for ; Wed, 16 Apr 2003 19:55:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 195r8i-0005mP-0D for gnu-help-gnu-emacs@m.gmane.org; Wed, 16 Apr 2003 13:56:08 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Original-X-Complaints-To: abuse@supernews.com Original-Lines: 41 Original-Xref: shelby.stanford.edu gnu.emacs.help:112039 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:8539 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:8539 >>>>> Javier Oviedo writes: > I am using emacs 21.2 WINXP. > I add the following line to my .emacs file in order to include the > execution path for grep: > ;;; Set exec paths. > (setq exec-path (cons "T:/gen/gnu/99-11-01/cygwin-b20/H-i586-cygwin32/bin" > exec-path)) > ;;; Although this form is probably the simpler and, therefore, more portable form, I prefer to use: (add-to-list 'exec-path "T:/gen/gnu/99-11-01/cygwin-b20/H-i586-cygwin32/bin") > I evalutate this line and see that indeed the path was modified > correctly. I still get errors when using grep. > If I, however, move grep.exe under the emacs-21.2\bin driectory, > everything seems to work. > Does anyone have any ideas on this path issue? I'd prefer to not > have a copy sitting in emacs-21.2\bin. Hmmm. I believe that M-x grep uses essentially the same mechanism as M-x shell. Therefore, after setting up exec-path, try M-x shell to get to a shell buffer and then check the PATH of that shell from the command line. Perhaps there is something in your setup that is resetting the PATH in a new shell. Another option is to try setting "grep-command" to be the full path of your grep command. You may also want to adjust your find-grep-command variable as well. -- David Masterson David DOT Masterson AT synopsys DOT com Sr. R&D Engineer Synopsys, Inc. Software Engineering Sunnyvale, CA