aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXue Fuqiao2014-02-28 12:15:21 +0800
committerXue Fuqiao2014-02-28 12:15:21 +0800
commitecc384ac0abed461ae29a762261b1d69fc903093 (patch)
tree61a1cf3e01b32c801ec55f81a4998b43e3ea54bc
parent4f07dcdce61f54524a8efe63493e5db6e605dd2d (diff)
downloademacs-ecc384ac0abed461ae29a762261b1d69fc903093.tar.gz
emacs-ecc384ac0abed461ae29a762261b1d69fc903093.zip
Doc fix for `face-spec-set'.
* doc/lispref/display.texi (Defining Faces): Doc fix for `face-spec-set'. * etc/NEWS: Copyedit.
-rw-r--r--doc/lispref/ChangeLog2
-rw-r--r--doc/lispref/display.texi16
-rw-r--r--etc/NEWS17
3 files changed, 20 insertions, 15 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index 650f97375d6..b7148b92186 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,5 +1,7 @@
12014-02-28 Xue Fuqiao <xfq@gnu.org> 12014-02-28 Xue Fuqiao <xfq@gnu.org>
2 2
3 * display.texi (Defining Faces): Doc fix for `face-spec-set'.
4
3 * elisp.texi (Top): 5 * elisp.texi (Top):
4 * commands.texi (Generic Commands): 6 * commands.texi (Generic Commands):
5 (Defining Commands): Document `define-alternatives'. 7 (Defining Commands): Document `define-alternatives'.
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi
index 496fbf87041..9aae04ae32a 100644
--- a/doc/lispref/display.texi
+++ b/doc/lispref/display.texi
@@ -2359,16 +2359,20 @@ This function applies @var{spec} as a face spec for @code{face}.
2359@var{spec} should be a face spec, as described in the above 2359@var{spec} should be a face spec, as described in the above
2360documentation for @code{defface}. 2360documentation for @code{defface}.
2361 2361
2362This function also defines @var{face} as a valid face name if it is
2363not already one, and (re)calculates its attributes on existing frames.
2364
2362@cindex override spec @r{(for a face)} 2365@cindex override spec @r{(for a face)}
2363The argument @var{spec-type} determines which spec to set. If it is 2366The argument @var{spec-type} determines which spec to set. If it is
2364@code{nil} or @code{face-override-spec}, this function sets the 2367@code{nil} or @code{face-override-spec}, this function sets the
2365@dfn{override spec}, which overrides over all other face specs on 2368@dfn{override spec}, which overrides over all other face specs on
2366@var{face}. If it is @code{face-defface-spec}, this function sets the 2369@var{face}. If it is @code{customized-face} or @code{saved-face},
2367default face spec (the same one set by @code{defface}). If it is 2370this function sets the customized spec or the saved custom spec. If
2368@code{reset}, this function clears out all customization specs and 2371it is @code{face-defface-spec}, this function sets the default face
2369override specs from @var{face} (in this case, the value of @var{spec} 2372spec (the same one set by @code{defface}). If it is @code{reset},
2370is ignored). Any other value of @var{spec-type} is reserved for 2373this function clears out all customization specs and override specs
2371internal use. 2374from @var{face} (in this case, the value of @var{spec} is ignored).
2375Any other value of @var{spec-type} is reserved for internal use.
2372@end defun 2376@end defun
2373 2377
2374@node Attribute Functions 2378@node Attribute Functions
diff --git a/etc/NEWS b/etc/NEWS
index 3d45dfb8011..befe939a0e0 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -278,6 +278,13 @@ buffer.
278`display-buffer' choose or make a window at the bottom of the selected 278`display-buffer' choose or make a window at the bottom of the selected
279frame. 279frame.
280 280
281*** New display action function `display-buffer-no-window' to not
282display the buffer in a window.
283
284*** New display action alist entry `allow-no-window' to indicate the
285caller of `display-buffer' is ready to handle the case of not
286displaying the buffer in a window.
287
281** Lisp evaluation changes 288** Lisp evaluation changes
282+++ 289+++
283*** `eval-defun' on an already defined defcustom calls the :set function, 290*** `eval-defun' on an already defined defcustom calls the :set function,
@@ -1224,15 +1231,6 @@ frame.
1224*** The hook `term-setup-hook' is obsolete. It is entirely equivalent 1231*** The hook `term-setup-hook' is obsolete. It is entirely equivalent
1225to `emacs-startup-hook'. See also the new `tty-setup-hook'. 1232to `emacs-startup-hook'. See also the new `tty-setup-hook'.
1226 1233
1227** Window Handling
1228
1229*** New display action function `display-buffer-no-window' to not
1230display the buffer in a window.
1231
1232*** New display action alist entry `allow-no-window' to indicate the
1233caller of `display-buffer' is ready to handle the case of not
1234displaying the buffer in a window.
1235
1236** New hook `pre-redisplay-function'. 1234** New hook `pre-redisplay-function'.
1237 1235
1238+++ 1236+++
@@ -1353,6 +1351,7 @@ of remote files when set to non-nil.
1353 1351
1354** Face changes 1352** Face changes
1355 1353
1354+++
1356*** The function `face-spec-set' is now like `setq' for face specs. 1355*** The function `face-spec-set' is now like `setq' for face specs.
1357Its third arg now accepts values specifying a face spec type (defface, 1356Its third arg now accepts values specifying a face spec type (defface,
1358custom, or override spec), and the relevant spec is set accordingly. 1357custom, or override spec), and the relevant spec is set accordingly.