aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2000-08-27 11:30:05 +0000
committerGerd Moellmann2000-08-27 11:30:05 +0000
commit6288c62f1ce640067d122ba82e4436067b6000d0 (patch)
tree2a5b056a293cf45d97f26ddcdc174c0056afab87 /src
parentf139e559139a1b1606558cf263bc6d0e31113de8 (diff)
downloademacs-6288c62f1ce640067d122ba82e4436067b6000d0.tar.gz
emacs-6288c62f1ce640067d122ba82e4436067b6000d0.zip
(lface_fully_specified_p): Handle :inherit.
(Finternal_set_lisp_face_attribute): Fix typo in error message.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/xfaces.c9
2 files changed, 11 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index fa1bea280d0..6b847d3f35d 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12000-08-27 Gerd Moellmann <gerd@gnu.org>
2
3 * xfaces.c (lface_fully_specified_p): Handle :inherit.
4 (Finternal_set_lisp_face_attribute): Fix typo in error message.
5
12000-08-27 Eli Zaretskii <eliz@is.elta.co.il> 62000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
2 7
3 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o) 8 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
diff --git a/src/xfaces.c b/src/xfaces.c
index 1f7ab1c0ac0..17f9c5928bb 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -2952,8 +2952,9 @@ lface_fully_specified_p (attrs)
2952 int i; 2952 int i;
2953 2953
2954 for (i = 1; i < LFACE_VECTOR_SIZE; ++i) 2954 for (i = 1; i < LFACE_VECTOR_SIZE; ++i)
2955 if (UNSPECIFIEDP (attrs[i]) && i != LFACE_FONT_INDEX) 2955 if (i != LFACE_FONT_INDEX && i != LFACE_INHERIT_INDEX)
2956 break; 2956 if (UNSPECIFIEDP (attrs[i]))
2957 break;
2957 2958
2958 return i == LFACE_VECTOR_SIZE; 2959 return i == LFACE_VECTOR_SIZE;
2959} 2960}
@@ -3161,6 +3162,7 @@ merge_face_vectors (f, from, to, cycle_check)
3161 to[LFACE_INHERIT_INDEX] = Qnil; 3162 to[LFACE_INHERIT_INDEX] = Qnil;
3162} 3163}
3163 3164
3165
3164/* Checks the `cycle check' variable CHECK to see if it indicates that 3166/* Checks the `cycle check' variable CHECK to see if it indicates that
3165 EL is part of a cycle; CHECK must be either Qnil or a value returned 3167 EL is part of a cycle; CHECK must be either Qnil or a value returned
3166 by an earlier use of CYCLE_CHECK. SUSPICIOUS is the number of 3168 by an earlier use of CYCLE_CHECK. SUSPICIOUS is the number of
@@ -3173,6 +3175,7 @@ merge_face_vectors (f, from, to, cycle_check)
3173 3175
3174 CHECK is evaluated multiple times, EL and SUSPICIOUS 0 or 1 times, so 3176 CHECK is evaluated multiple times, EL and SUSPICIOUS 0 or 1 times, so
3175 the caller should make sure that's ok. */ 3177 the caller should make sure that's ok. */
3178
3176#define CYCLE_CHECK(check, el, suspicious) \ 3179#define CYCLE_CHECK(check, el, suspicious) \
3177 (NILP (check) \ 3180 (NILP (check) \
3178 ? make_number (0) \ 3181 ? make_number (0) \
@@ -3886,7 +3889,7 @@ frame.")
3886 if (NILP (tail)) 3889 if (NILP (tail))
3887 LFACE_INHERIT (lface) = value; 3890 LFACE_INHERIT (lface) = value;
3888 else 3891 else
3889 signal_error ("Invalid font inheritance", value); 3892 signal_error ("Invalid face inheritance", value);
3890 } 3893 }
3891 else if (EQ (attr, QCbold)) 3894 else if (EQ (attr, QCbold))
3892 { 3895 {