]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix last documentation change
authorEli Zaretskii <eliz@gnu.org>
Fri, 18 Oct 2024 12:46:17 +0000 (15:46 +0300)
committerEshel Yaron <me@eshelyaron.com>
Tue, 22 Oct 2024 18:53:31 +0000 (20:53 +0200)
* doc/misc/efaq.texi (Colors on a TTY):
* doc/lispref/frames.texi (Font and Color Parameters):
* doc/emacs/cmdargs.texi (Colors X): More accurate documentation
of TTY color modes and 'tty-color-mode' frame parameter.
(Bug#73813)

(cherry picked from commit 19049efd30f5476baa4b69c4b79af15674c2650b)

doc/emacs/cmdargs.texi
doc/lispref/frames.texi
doc/misc/efaq.texi

index 9b72b8836289acf1290ea9413c734f35c6771d52..08e67c891a5a3bd43e8001568ca98d381101c6a1 100644 (file)
@@ -1027,10 +1027,20 @@ there is no mode that supports @var{num} colors, Emacs acts as if
 @var{num} were 0, i.e., it uses the terminal's default color support
 mode.
 @end table
-If @var{mode} is omitted, it defaults to @var{ansi8}.  This support is
-dynamic: the current mode is available via the @code{tty-color-mode}
-frame parameter, and it can be changed by modifying that frame parameter.
-This means you can also specify the initial value via
+
+This option has no effect on MS-Windows and MS-DOS.
+
+@cindex colors on character terminal, changing during session
+@cindex character terminal, change color mode
+@vindex tty-color-mode@r{, frame parameter}
+If @var{mode} is omitted, it defaults to @var{ansi8}.
+
+The color mode can be changed dynamically during a running Emacs
+session: the current mode is available via the @code{tty-color-mode}
+frame parameter, and it can be changed by modifying that frame
+parameter.@footnote{
+This does not work on MS-Windows and MS-DOS text-mode terminals.
+}  This means you can also specify the initial value via
 @code{default-frame-alist} instead of the command-line option.
 @end table
 
index a01894897cffae2cd1b7774bb42bde8a299b9cb1..edeba3288fc7bdfdc59da174d895ff73b151a920 100644 (file)
@@ -2447,7 +2447,8 @@ off color support.
 
 If the parameter's value is a symbol, it specifies a number through
 the value of @code{tty-color-mode-alist}, and the associated number is
-used instead.  This parameter supports dynamic changes.
+used instead.  This parameter supports dynamic changes during a running
+Emacs session (but not on MS-Windows and MS-DOS).
 
 @vindex screen-gamma@r{, a frame parameter}
 @item screen-gamma
index cf9bce79039c6ea66e3122097ae14f516b3b1b74..4df091dbeaca58d8164eca789da7f117c99e7e8c 100644 (file)
@@ -1879,12 +1879,17 @@ putting the following in your init file:
 (push '(tty-color-mode . no) default-frame-alist)
 @end lisp
 
-To disable tty color support in the @emph{current} frame you can run:
+@noindent
+To disable tty color support in the @emph{current} frame you can
+evaluate:
 
 @lisp
 (set-frame-parameter nil 'tty-color-mode 'no)
 @end lisp
 
+Note that this currently doesn't work on MS-Windows and MS-DOS, whose
+text-mode terminals always use the fixed number of 16 text colors.
+
 The command @kbd{M-x list-colors-display} pops up a window which
 exhibits all the colors Emacs knows about on the current display.