emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-25 f36df4b: Don’t recommend obsolete EMACS env var


From: Paul Eggert
Subject: [Emacs-diffs] emacs-25 f36df4b: Don’t recommend obsolete EMACS env var
Date: Thu, 07 Apr 2016 23:52:31 +0000

branch: emacs-25
commit f36df4b97ba6f335c24ada099203a9244ac84ce5
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>

    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.
---
 doc/misc/efaq.texi |   15 ++++-----------
 etc/PROBLEMS       |    8 +++-----
 2 files changed, 7 insertions(+), 16 deletions(-)

diff --git a/doc/misc/efaq.texi b/doc/misc/efaq.texi
index 5008db3..1fa4649 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 d531367..b0c21ee 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]