diff options
author | Paul Eggert <eggert@twinsun.com> | 2006-09-12 16:43:25 +0000 |
---|---|---|
committer | Paul Eggert <eggert@twinsun.com> | 2006-09-12 16:43:25 +0000 |
commit | 4b1aaa8b07cf2797b5a57e2a1fd88f3ec0aa41e2 (patch) | |
tree | e00adba73d181d3d8b6a111ebfc856a0a3acc454 /lisp/comint.el | |
parent | afc05254f5403c9d977013c70e4391e7ac1643b6 (diff) | |
download | emacs-4b1aaa8b07cf2797b5a57e2a1fd88f3ec0aa41e2.tar.gz |
* etc/NEWS: In terminal-oriented subshells, the EMACS environment
variable now defaults to Emacs's absolute file name, instead of
to "t".
* etc/PROBLEMS: Adjust tcsh advice for this.
* make-dist (EMACS): Exit and fail if the EMACS environment
variable is set to something other than an absolute file name.
* lisp/comint.el (comint-exec-1): Set EMACS to the full name of Emacs,
not to "t".
* lisp/progmodes/compile.el (compilation-start): Likewise.
* lisp/progmodes/idlwave.el (idlwave-rescan-asynchronously):
Don't use expand-file-name on invocation-directory, since this
might mishandle special characters in invocation-directory.
* man/faq.texi (Escape sequences in shell output): EMACS is now set
to Emacs's absolute file name, not to "t".
(^M in the shell buffer): Likewise.
* man/misc.texi (Interactive Shell): Likewise.
Diffstat (limited to 'lisp/comint.el')
-rw-r--r-- | lisp/comint.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/comint.el b/lisp/comint.el index eb5c9f28a4e..5e223ef8f18 100644 --- a/lisp/comint.el +++ b/lisp/comint.el @@ -765,7 +765,8 @@ buffer. The hook `comint-exec-hook' is run after each exec." (format "COLUMNS=%d" (window-width))) (list "TERM=emacs" (format "TERMCAP=emacs:co#%d:tc=unknown:" (window-width)))) - (if (getenv "EMACS") nil (list "EMACS=t")) + (unless (getenv "EMACS") + (list (concat "EMACS=" invocation-directory invocation-name))) process-environment)) (default-directory (if (file-accessible-directory-p default-directory) |