all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Christoph Scholtes <cschol2112@googlemail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: exec-path and PATH
Date: Sat, 19 Mar 2011 10:36:44 -0600	[thread overview]
Message-ID: <86ei63hxsz.fsf@gmail.com> (raw)
In-Reply-To: <83vczfr0o0.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 19 Mar 2011 10:10:07 +0200")

Eli Zaretskii <eliz@gnu.org> writes:

> Maybe we should consider the possibility to automatically set PATH
> from exec-path each time Emacs invokes a subprocess, because this
> issue comes up time and again in gnu.emacs.help.

This would be helpful, I think.

Can we set PATH to exec-path for the duration of the shell
execution? IIRC, if you change the PATH in a cmd session it only applies to
that session. Is it possible to something similar here?

>> Maybe this is a silly question, but why are some of the programs invoked
>> different than others? 
>
> Because the shell has features ready for our use that would be a
> wasted effort to re-implement in Lisp or C.  E.g., complex
> redirection, pipes, etc.

That makes sense. Thanks.

>> PS: Here is a small docfix patch for process.c for review:
>
> This is obviously correct, so please commit it on the emacs-23
> branch.

OK.

> "PATH" is a literal name of an environment variable, that's why it is
> in caps.  But `exec-path' is spelled in lower case, so please don't
> up-case it here.  Also, please enclose in quotes, so it produces a
> link in Emacs.  I would even say
>
>
>   It is searched for in `exec-path' (which see).
>
> Thanks.

OK, I will change it.

Thanks,
Christoph



  reply	other threads:[~2011-03-19 16:36 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-19  3:19 exec-path and PATH Christoph Scholtes
2011-03-19  8:10 ` Eli Zaretskii
2011-03-19 16:36   ` Christoph Scholtes [this message]
2011-03-19 17:26     ` Eli Zaretskii
2011-03-19 19:50       ` Christoph Scholtes
2011-03-19 20:59         ` Eli Zaretskii
2011-03-20 19:45           ` Christoph Scholtes
2011-03-20 20:36             ` Eli Zaretskii
2011-03-20 20:46               ` Eric Hanchrow
2011-03-21 14:04                 ` Eric Schulte
2011-03-20 22:44               ` Wojciech Meyer
2011-03-19 16:49   ` Christoph Scholtes
2011-03-19 17:18     ` PJ Weisberg
2011-03-19 17:23       ` Christoph Scholtes
2011-03-19 18:52       ` Harald Hanche-Olsen
2011-03-20  2:53         ` Stefan Monnier
2011-03-19 17:43     ` Eli Zaretskii
2011-03-20  2:50   ` Stefan Monnier
2011-03-20  6:34     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86ei63hxsz.fsf@gmail.com \
    --to=cschol2112@googlemail.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.