1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-02-01 20:06:00 +00:00

* 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.
This commit is contained in:
Paul Eggert 2006-09-12 16:43:25 +00:00
parent afc05254f5
commit 4b1aaa8b07
13 changed files with 533 additions and 486 deletions

View File

@ -1,3 +1,8 @@
2006-09-11 Paul Eggert <eggert@cs.ucla.edu>
* make-dist (EMACS): Exit and fail if the EMACS environment
variable is set to something other than an absolute file name.
2006-09-07 Kim F. Storm <storm@cua.dk>
* AUTHORS: Regenerate.

View File

@ -1,6 +1,13 @@
2006-09-11 Paul Eggert <eggert@cs.ucla.edu>
* NEWS: In terminal-oriented subshells, the EMACS environment
variable now defaults to Emacs's absolute file name, instead of
to "t".
* PROBLEMS: Adjust tcsh advice for this.
2006-09-10 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
* PROBLEMS (are): Emacs compiled with Gtk+ crashes when closing a
* PROBLEMS (are): Emacs compiled with Gtk+ crashes when closing a
display (x-close-connection).
2006-09-02 Juri Linkov <juri@jurta.org>

View File

@ -1434,6 +1434,10 @@ otherwise behaves quite similarly to the bash version.
`comint-use-prompt-regexp'. The old name has been kept as an alias,
but declared obsolete.
+++
*** The EMACS environment variable now defaults to Emacs's absolute
file name, instead of to "t".
** M-x Compile changes:
---
@ -1490,6 +1494,10 @@ it doesn't scroll the compilation output window. If there is no left fringe,
no arrow is displayed and a value of nil means display the message at the top
of the window.
+++
*** The EMACS environment variable now defaults to Emacs's absolute
file name, instead of to "t".
** Occur mode changes:
+++

View File

@ -540,7 +540,7 @@ on the flag to output ^M at the end of each line. You can fix the
problem by adding this to your .cshrc file:
if ($?EMACS) then
if ($EMACS == "t") then
if ("$EMACS" =~ /*) then
unset edit
stty -icrnl -onlcr -echo susp ^Z
endif

View File

@ -1,3 +1,12 @@
2006-09-12 Paul Eggert <eggert@cs.ucla.edu>
* comint.el (comint-exec-1): Set EMACS to the full name of Emacs,
not to "t".
* progmodes/compile.el (compilation-start): Likewise.
* progmodes/idlwave.el (idlwave-rescan-asynchronously):
Don't use expand-file-name on invocation-directory, since this
might mishandle special characters in invocation-directory.
2006-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
* pcvs-defs.el: Remove * in defcustom's docstrings.

View File

@ -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)

View File

@ -1068,7 +1068,8 @@ Returns the compilation buffer created."
(window-width))))
;; Set the EMACS variable, but
;; don't override users' setting of $EMACS.
(unless (getenv "EMACS") '("EMACS=t"))
(unless (getenv "EMACS")
(list (concat "EMACS=" invocation-directory invocation-name)))
(copy-sequence process-environment))))
(set (make-local-variable 'compilation-arguments)
(list command mode name-function highlight-regexp))

File diff suppressed because it is too large Load Diff

View File

@ -120,8 +120,7 @@ if [ ! -d src -o ! -f src/lisp.h -o ! -d lisp -o ! -f lisp/version.el ]; then
fi
### Find where to run Emacs.
### (We don't accept EMACS=t as an answer, since that probably only means
### that the shell is running in an Emacs window.)
### (Accept only absolute file names.)
if [ $update = yes ];
then
unset EMACS_UNIBYTE
@ -129,11 +128,15 @@ then
then
EMACS=`pwd`/src/emacs
else
if [ "x$EMACS" = "x" -o "x$EMACS" = "xt" ];
then
echo You must specify the EMACS environment variable 2>&1
exit 1
fi
case $EMACS in
/*) ;;
*)
if [ ! -f "$EMACS" ]; then
echo "$0: You must specify the EMACS environment variable " \
"to an absolute file name." 2>&1
exit 1
fi;;
esac
fi
fi

View File

@ -1,3 +1,10 @@
2006-09-12 Paul Eggert <eggert@cs.ucla.edu>
* 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.
* misc.texi (Interactive Shell): Likewise.
2006-09-11 Richard Stallman <rms@gnu.org>
* building.texi (Compilation Mode): Clarification.

View File

@ -2683,7 +2683,8 @@ shell init file. You have two alternatives to solve this:
@item
Make the alias conditioned on the @code{EMACS} variable in the
environment. When Emacs runs a subsidiary shell, it exports the
@code{EMACS} variable with the value @code{t} to that shell. You can
@code{EMACS} variable to that shell, with value equal to the absolute
file name of Emacs. You can
unalias @code{ls} when that happens, thus limiting the alias to your
interactive sessions.
@ -2753,7 +2754,7 @@ file:
@example
if ($?EMACS) then
if ("$EMACS" == t) then
if ("$EMACS" =~ /*) then
if ($?tcsh) unset edit
stty nl
endif

View File

@ -488,7 +488,8 @@ Coding}.
@cindex @env{EMACS} environment variable
Unless the environment variable @env{EMACS} is already defined,
Emacs defines it in the subshell, with value @code{t}. A shell script
Emacs defines it in the subshell, with value equal to Emacs's absolute
file name. A shell script
can check this variable to determine whether it has been run from an
Emacs subshell.

View File

@ -124,6 +124,10 @@ Boston, MA 02110-1301, USA. */
don't. */
#undef HAVE_DECL_SYS_SIGLIST
/* Define to 1 if you have the declaration of `tzname', and to 0 if you don't.
*/
#undef HAVE_DECL_TZNAME
/* Define to 1 if you have the declaration of `__sys_siglist', and to 0 if you
don't. */
#undef HAVE_DECL___SYS_SIGLIST
@ -796,7 +800,7 @@ Boston, MA 02110-1301, USA. */
/* If using the C implementation of alloca, define if you know the
direction of stack growth for your system; otherwise it will be
automatically deduced at run-time.
automatically deduced at runtime.
STACK_DIRECTION > 0 => grows toward higher addresses
STACK_DIRECTION < 0 => grows toward lower addresses
STACK_DIRECTION = 0 => direction of growth unknown */