What is the difference between PATH (as setenv is installed) and exec-path in GNU Emacs?

Well, the title has it all. I used (setenv "PATH" "whatever:$PATH" t)to be able to name things (in fact, one is ConTeXt, from AUCTeX) from Emacs. I recently found out about exec-path. Should I use it instead?

+5
source share
1 answer

While it setenvactually installs the environment (and influences (changes) what the executable programs from this emacs will see as the environment), exec-pathtells emacs where to look for executable files, but the programs launched from this emacs will not see them PATH.

setenv , Emacs , exec-path. , Emacs, $PATH, exec-path, $PATH.

+6

All Articles