diff options
| author | Chong Yidong | 2012-08-05 17:24:55 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-08-05 17:24:55 +0800 |
| commit | 35b6586e9de5efc3f434105f0f18bfef7f1e697c (patch) | |
| tree | 11cd27e0b54c78cb3cbafe1f6890a2b0879b74df | |
| parent | 9e3b7800ff2e683e72a962ef14350181100c30be (diff) | |
| download | emacs-35b6586e9de5efc3f434105f0f18bfef7f1e697c.tar.gz emacs-35b6586e9de5efc3f434105f0f18bfef7f1e697c.zip | |
Manual fixes for frame-background-mode.
* doc/custom.texi (Face Customization): Move discussion of face
inheritance here, from Faces section.
* doc/display.texi (Faces): Document frame-background-mode.
* doc/lispref/display.texi (Defining Faces): Move documentation of
frame-background-mode to the Emacs manual (Bug#7774).
| -rw-r--r-- | doc/emacs/ChangeLog | 7 | ||||
| -rw-r--r-- | doc/emacs/custom.texi | 13 | ||||
| -rw-r--r-- | doc/emacs/display.texi | 20 | ||||
| -rw-r--r-- | doc/lispref/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/lispref/display.texi | 8 |
5 files changed, 34 insertions, 19 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index c753ab5a1a2..3f3592e64c9 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2012-08-05 Chong Yidong <cyd@gnu.org> | ||
| 2 | |||
| 3 | * display.texi (Faces): Document frame-background-mode (Bug#7774). | ||
| 4 | |||
| 5 | * custom.texi (Face Customization): Move discussion of face | ||
| 6 | inheritance here, from Faces section. | ||
| 7 | |||
| 1 | 2012-07-21 Eli Zaretskii <eliz@gnu.org> | 8 | 2012-07-21 Eli Zaretskii <eliz@gnu.org> |
| 2 | 9 | ||
| 3 | * frames.texi (Mouse Commands): Fix the description of mouse-2. | 10 | * frames.texi (Mouse Commands): Fix the description of mouse-2. |
diff --git a/doc/emacs/custom.texi b/doc/emacs/custom.texi index 2da70227c29..68219d7890f 100644 --- a/doc/emacs/custom.texi +++ b/doc/emacs/custom.texi | |||
| @@ -450,11 +450,14 @@ attribute; an empty checkbox, @samp{[ ]}, means that the face does not | |||
| 450 | specify any special value for the attribute. You can activate a | 450 | specify any special value for the attribute. You can activate a |
| 451 | checkbox to specify or unspecify its attribute. | 451 | checkbox to specify or unspecify its attribute. |
| 452 | 452 | ||
| 453 | Most faces only specify a few attributes (in the above example, | 453 | A face does not have to specify every single attribute; in fact, |
| 454 | @code{font-lock-comment-face} only specifies the foreground color). | 454 | most faces only specify a few attributes. In the above example, |
| 455 | Emacs has a special face, @code{default}, whose attributes are all | 455 | @code{font-lock-comment-face} only specifies the foreground color. |
| 456 | specified; it determines the attributes left unspecified by other | 456 | Any unspecified attribute is taken from the special face named |
| 457 | faces. | 457 | @code{default}, whose attributes are all specified. The |
| 458 | @code{default} face is the face used to display any text that does not | ||
| 459 | have an explicitly-assigned face; furthermore, its background color | ||
| 460 | attribute serves as the background color of the frame. | ||
| 458 | 461 | ||
| 459 | The @samp{Hide Unused Attributes} button, at the end of the | 462 | The @samp{Hide Unused Attributes} button, at the end of the |
| 460 | attribute list, hides the unspecified attributes of the face. When | 463 | attribute list, hides the unspecified attributes of the face. When |
diff --git a/doc/emacs/display.texi b/doc/emacs/display.texi index 2fa71127298..2238570eaa9 100644 --- a/doc/emacs/display.texi +++ b/doc/emacs/display.texi | |||
| @@ -475,18 +475,26 @@ type @kbd{M-x list-faces-display}. With a prefix argument, this | |||
| 475 | prompts for a regular expression, and displays only faces with names | 475 | prompts for a regular expression, and displays only faces with names |
| 476 | matching that regular expression (@pxref{Regexps}). | 476 | matching that regular expression (@pxref{Regexps}). |
| 477 | 477 | ||
| 478 | @vindex frame-background-mode | ||
| 478 | It's possible for a given face to look different in different | 479 | It's possible for a given face to look different in different |
| 479 | frames. For instance, some text terminals do not support all face | 480 | frames. For instance, some text terminals do not support all face |
| 480 | attributes, particularly font, height, and width, and some support a | 481 | attributes, particularly font, height, and width, and some support a |
| 481 | limited range of colors. | 482 | limited range of colors. In addition, most Emacs faces are defined so |
| 483 | that their attributes are different on light and dark frame | ||
| 484 | backgrounds, for reasons of legibility. By default, Emacs | ||
| 485 | automatically chooses which set of face attributes to display on each | ||
| 486 | frame, based on the frame's current background color. However, you | ||
| 487 | can override this by giving the variable @code{frame-background-mode} | ||
| 488 | a non-@code{nil} value. A value of @code{dark} makes Emacs treat all | ||
| 489 | frames as if they have a dark background, whereas a value of | ||
| 490 | @code{light} makes it treat all frames as if they have a light | ||
| 491 | background. | ||
| 482 | 492 | ||
| 483 | @cindex background color | 493 | @cindex background color |
| 484 | @cindex default face | 494 | @cindex default face |
| 485 | You can customize a face to alter its appearance, and save those | 495 | You can customize a face to alter its attributes, and save those |
| 486 | changes for future Emacs sessions. @xref{Face Customization}. A face | 496 | customizations for future Emacs sessions. @xref{Face Customization}, |
| 487 | does not have to specify every single attribute; often it inherits | 497 | for details. |
| 488 | most attributes from another face. Any ultimately unspecified | ||
| 489 | attribute is taken from the face named @code{default}. | ||
| 490 | 498 | ||
| 491 | The @code{default} face is the default for displaying text, and all | 499 | The @code{default} face is the default for displaying text, and all |
| 492 | of its attributes are specified. Its background color is also used as | 500 | of its attributes are specified. Its background color is also used as |
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 52007d3493f..c262cecb02c 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-08-05 Chong Yidong <cyd@gnu.org> | ||
| 2 | |||
| 3 | * display.texi (Defining Faces): Move documentation of | ||
| 4 | frame-background-mode to the Emacs manual (Bug#7774). | ||
| 5 | |||
| 1 | 2012-08-04 Chong Yidong <cyd@gnu.org> | 6 | 2012-08-04 Chong Yidong <cyd@gnu.org> |
| 2 | 7 | ||
| 3 | * syntax.texi (Syntax Basics): Rearrange the text for clarity. | 8 | * syntax.texi (Syntax Basics): Rearrange the text for clarity. |
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi index 01d177feb87..64aa891e56b 100644 --- a/doc/lispref/display.texi +++ b/doc/lispref/display.texi | |||
| @@ -2040,14 +2040,6 @@ function, which is used to apply customized face settings. | |||
| 2040 | specify a face to use. In the vast majority of cases, this is not | 2040 | specify a face to use. In the vast majority of cases, this is not |
| 2041 | necessary; it is preferable to simply use faces directly. | 2041 | necessary; it is preferable to simply use faces directly. |
| 2042 | 2042 | ||
| 2043 | @defopt frame-background-mode | ||
| 2044 | This option, if non-@code{nil}, specifies the background type to use for | ||
| 2045 | interpreting face definitions. If it is @code{dark}, then Emacs treats | ||
| 2046 | all frames as if they had a dark background, regardless of their actual | ||
| 2047 | background colors. If it is @code{light}, then Emacs treats all frames | ||
| 2048 | as if they had a light background. | ||
| 2049 | @end defopt | ||
| 2050 | |||
| 2051 | @node Face Attributes | 2043 | @node Face Attributes |
| 2052 | @subsection Face Attributes | 2044 | @subsection Face Attributes |
| 2053 | @cindex face attributes | 2045 | @cindex face attributes |