aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/faces.el12
-rw-r--r--src/ChangeLog5
-rw-r--r--src/xfaces.c4
4 files changed, 19 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 3b8da6fa373..6d0a352ca3c 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12011-02-03 Glenn Morris <rgm@gnu.org>
2
3 * faces.el (set-face-attribute): Doc fix. (Bug#2659)
4
12011-02-02 Stefan Monnier <monnier@iro.umontreal.ca> 52011-02-02 Stefan Monnier <monnier@iro.umontreal.ca>
2 6
3 * pcomplete.el (pcomplete-here*): Backport fix for mistaken change 7 * pcomplete.el (pcomplete-here*): Backport fix for mistaken change
diff --git a/lisp/faces.el b/lisp/faces.el
index a3831084ad8..4a4acefa04c 100644
--- a/lisp/faces.el
+++ b/lisp/faces.el
@@ -616,10 +616,14 @@ It must be one of the symbols `ultra-condensed', `extra-condensed',
616 616
617`:height' 617`:height'
618 618
619VALUE must be either an integer specifying the height of the font to use 619VALUE specifies the height of the font, in either absolute or relative
620in 1/10 pt, a floating point number specifying the amount by which to 620terms. An absolute height is an integer, and specifies font height in
621scale any underlying face, or a function, which is called with the old 621units of 1/10 pt. A relative height is either a floating point number,
622height (from the underlying face), and should return the new height. 622which specifies a scaling factor for the underlying face height;
623or a function that takes a single argument (the underlying face height)
624and returns the new height. Note that for the `default' face,
625you can only specify an absolute height (since there is nothing
626for it to be relative to).
623 627
624`:weight' 628`:weight'
625 629
diff --git a/src/ChangeLog b/src/ChangeLog
index a665fd73047..2b02030fd4f 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12011-02-03 Glenn Morris <rgm@gnu.org>
2
3 * xfaces.c (Finternal_set_lisp_face_attribute):
4 Try to clarify some error messages. (Bug#2659)
5
12011-02-02 Stefan Monnier <monnier@iro.umontreal.ca> 62011-02-02 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * editfns.c (save_restriction_restore): Don't forget to invalidate the 8 * editfns.c (save_restriction_restore): Don't forget to invalidate the
diff --git a/src/xfaces.c b/src/xfaces.c
index ecd726f4540..e9e677d1b19 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -3060,7 +3060,7 @@ FRAME 0 means change the face on all frames, and change the default
3060 { 3060 {
3061 /* The default face must have an absolute size. */ 3061 /* The default face must have an absolute size. */
3062 if (!INTEGERP (value) || XINT (value) <= 0) 3062 if (!INTEGERP (value) || XINT (value) <= 0)
3063 signal_error ("Invalid default face height", value); 3063 signal_error ("Default face height not absolute and positive", value);
3064 } 3064 }
3065 else 3065 else
3066 { 3066 {
@@ -3070,7 +3070,7 @@ FRAME 0 means change the face on all frames, and change the default
3070 make_number (10), 3070 make_number (10),
3071 Qnil); 3071 Qnil);
3072 if (!INTEGERP (test) || XINT (test) <= 0) 3072 if (!INTEGERP (test) || XINT (test) <= 0)
3073 signal_error ("Invalid face height", value); 3073 signal_error ("Face height does not produce a positive integer", value);
3074 } 3074 }
3075 } 3075 }
3076 3076