* problem with grep and exec-path
@ 2003-04-15 19:03 Javier Oviedo
2003-04-15 21:12 ` Martin Stemplinger
2003-04-16 17:51 ` David Masterson
0 siblings, 2 replies; 3+ messages in thread
From: Javier Oviedo @ 2003-04-15 19:03 UTC (permalink / raw)
Hello all:
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))
;;;
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.
Thanks in advance.
Javier.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: problem with grep and exec-path
2003-04-15 19:03 problem with grep and exec-path Javier Oviedo
@ 2003-04-15 21:12 ` Martin Stemplinger
2003-04-16 17:51 ` David Masterson
1 sibling, 0 replies; 3+ messages in thread
From: Martin Stemplinger @ 2003-04-15 21:12 UTC (permalink / raw)
On Di Apr 15 2003 at 21:03, "Javier Oviedo" <email_joviedo@yahoo.com> wrote:
> Hello all:
>
> 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))
> ;;;
>
I never tried exec-path but simply add the binary directories to the
Path environment variable and emacs finds them.
HTH
Martin
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: problem with grep and exec-path
2003-04-15 19:03 problem with grep and exec-path Javier Oviedo
2003-04-15 21:12 ` Martin Stemplinger
@ 2003-04-16 17:51 ` David Masterson
1 sibling, 0 replies; 3+ messages in thread
From: David Masterson @ 2003-04-16 17:51 UTC (permalink / raw)
>>>>> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-04-16 17:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-15 19:03 problem with grep and exec-path Javier Oviedo
2003-04-15 21:12 ` Martin Stemplinger
2003-04-16 17:51 ` David Masterson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).