From: Paul Eggert Date: Thu, 7 Apr 2016 23:52:01 +0000 (-0700) Subject: Don’t recommend obsolete EMACS env var X-Git-Tag: emacs-25.0.93~60 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f36df4b97ba6f335c24ada099203a9244ac84ce5;p=emacs.git Don’t recommend obsolete EMACS env var * doc/misc/efaq.texi (Escape sequences in shell output): Remove long-obsolete (and now-confusing) notes about the EMACS environment variable in Emacs 21.1 and earlier. * doc/misc/efaq.texi (^M in the shell buffer): * etc/PROBLEMS: Remove obsolescent recommendation to consult the EMACS environment variable. --- diff --git a/doc/misc/efaq.texi b/doc/misc/efaq.texi index 5008db31f25..1fa46492080 100644 --- a/doc/misc/efaq.texi +++ b/doc/misc/efaq.texi @@ -2664,11 +2664,6 @@ by typing @kbd{M-x ansi-color-for-comint-mode} in the Shell buffer, or by adding @code{(add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on)} to your init file. -In Emacs versions before 21.1, the @code{ansi-color} package is not -included. In that case, you need to unalias @code{ls} for interactive -shells running in Emacs; this can be done by checking the @code{EMACS} -variable in the environment. - @node Fullscreen mode on MS-Windows @section How can I start Emacs in fullscreen mode on MS-Windows? @cindex Maximize frame @@ -2757,11 +2752,9 @@ For @code{tcsh}, put this in your @file{.cshrc} (or @file{.tcshrc}) file: @example -if ($?EMACS) then - if ("$EMACS" =~ /*) then - if ($?tcsh) unset edit - stty nl - endif +if ($?INSIDE_EMACS && $?tcsh) + unset edit + stty -icrnl -onlcr -echo susp ^Z endif @end example @@ -2769,7 +2762,7 @@ Or put this in your @file{.emacs_tcsh} or @file{~/.emacs.d/init_tcsh.sh} file: @example unset edit -stty nl +stty -icrnl -onlcr -echo susp ^Z @end example Alternatively, use @code{csh} in your shell buffers instead of diff --git a/etc/PROBLEMS b/etc/PROBLEMS index d5313677113..b0c21ee25dd 100644 --- a/etc/PROBLEMS +++ b/etc/PROBLEMS @@ -459,11 +459,9 @@ smart. It sees that the Shell uses terminal type 'unknown' and turns 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" =~ /*) then - unset edit - stty -icrnl -onlcr -echo susp ^Z - endif + if ($?INSIDE_EMACS && $?tcsh) + unset edit + stty -icrnl -onlcr -echo susp ^Z endif *** Emacs startup on GNU/Linux systems (and possibly other systems) is slow.