aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2001-01-27 13:59:50 +0000
committerEli Zaretskii2001-01-27 13:59:50 +0000
commita5ffa6909ae07e4539859f18c8092e77d0e5e45c (patch)
treef870a48977c9abf29a8db0c846b0d637ecc43f6a
parentdc0274bd753539af49aa0a6c49c50ad5e765f25b (diff)
downloademacs-a5ffa6909ae07e4539859f18c8092e77d0e5e45c.tar.gz
emacs-a5ffa6909ae07e4539859f18c8092e77d0e5e45c.zip
(Escape sequences in shell output): New section.
-rw-r--r--man/faq.texi25
1 files changed, 24 insertions, 1 deletions
diff --git a/man/faq.texi b/man/faq.texi
index 5ab86b9f7c4..c78317f98d7 100644
--- a/man/faq.texi
+++ b/man/faq.texi
@@ -1223,6 +1223,7 @@ and on @code{xterm} with @kbd{emacs -nw}.
1223* Replacing highlighted text:: 1223* Replacing highlighted text::
1224* Editing MS-DOS files:: 1224* Editing MS-DOS files::
1225* Filling paragraphs with a single space:: 1225* Filling paragraphs with a single space::
1226* Escape sequences in shell output::
1226@end menu 1227@end menu
1227 1228
1228@node Setting up a customization file, Colors on a TTY, Common requests, Common requests 1229@node Setting up a customization file, Colors on a TTY, Common requests, Common requests
@@ -2526,7 +2527,7 @@ MS-DOS files as they are loaded and saved, allowing you to ignore the
2526different conventions that Unix and MS-DOS have for delineating the end 2527different conventions that Unix and MS-DOS have for delineating the end
2527of a line. 2528of a line.
2528 2529
2529@node Filling paragraphs with a single space, , Editing MS-DOS files, Common requests 2530@node Filling paragraphs with a single space, Escape sequences in shell output, Editing MS-DOS files, Common requests
2530@section How can I tell Emacs to fill paragraphs with a single space after each period? 2531@section How can I tell Emacs to fill paragraphs with a single space after each period?
2531@cindex One space following periods 2532@cindex One space following periods
2532@cindex Single space following periods 2533@cindex Single space following periods
@@ -2540,6 +2541,28 @@ following two lines to your @file{.emacs} file:
2540(setq sentence-end-double-space nil) 2541(setq sentence-end-double-space nil)
2541@end lisp 2542@end lisp
2542 2543
2544@node Escape sequences in shell output, , Filling paragraphs with a single space, Common requests
2545@section Why do I get these strange escape sequences when I run
2546@code{ls} from the Shell mode?
2547@cindex Escape sequences in @code{ls} output
2548@cindex @code{ls} in Shell mode
2549
2550This happens because @code{ls} is aliased to @samp{ls --color} in your
2551shell init file. You have two alternatives to solve this:
2552
2553@itemize @bullet
2554@item
2555Make the alias conditioned on the @code{EMACS} variable in the
2556environment. When Emacs runs a subsidiary shell, it exports the
2557@code{EMACS} variable with the value @code{t} to that shell. You can
2558unalias @code{ls} when that happens, thus limiting the alias to your
2559interactive sessions.
2560
2561@item
2562Install the @code{ansi-color} package (bundled with Emacs 21.1 and
2563later), which converts these ANSI escape sequences into colors.
2564@end itemize
2565
2543@c ------------------------------------------------------------ 2566@c ------------------------------------------------------------
2544@node Bugs and problems, Compiling and installing Emacs, Common requests, Top 2567@node Bugs and problems, Compiling and installing Emacs, Common requests, Top
2545@chapter Bugs and problems 2568@chapter Bugs and problems