aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa2000-03-22 01:58:18 +0000
committerKenichi Handa2000-03-22 01:58:18 +0000
commitff1a0d8e5b71fa7a031eb464d6c750fea8e67ad8 (patch)
treeed55184cc2fad26615634c918329bd010af2f7e6
parentfdaa1f77d0c8ad0e8c3982defdd591fb38f26e80 (diff)
downloademacs-ff1a0d8e5b71fa7a031eb464d6c750fea8e67ad8.tar.gz
emacs-ff1a0d8e5b71fa7a031eb464d6c750fea8e67ad8.zip
[!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P,
FACE_FOR_CHAR): Define them differently for the configuration of --without-x.
-rw-r--r--src/ChangeLog6
-rw-r--r--src/dispextern.h9
2 files changed, 10 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index e281662c2e8..b334a56ab98 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,8 +1,8 @@
12000-03-22 Kenichi Handa <handa@etl.go.jp> 12000-03-22 Kenichi Handa <handa@etl.go.jp>
2 2
3 * dispextern.h: Define FACE_SUITABLE_FOR_CHAR_P and FACE_FOR_CHAR 3 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P,
4 differently for the configuration of --without-x by "ifdef 4 FACE_FOR_CHAR): Define them differently for the configuration of
5 HAVE_WINDOW_SYSTEM". 5 --without-x.
6 6
72000-03-21 Dave Love <fx@gnu.org> 72000-03-21 Dave Love <fx@gnu.org>
8 8
diff --git a/src/dispextern.h b/src/dispextern.h
index 34dd9712c86..355454a4217 100644
--- a/src/dispextern.h
+++ b/src/dispextern.h
@@ -1330,6 +1330,8 @@ struct face_cache
1330 ? FRAME_FACE_CACHE (F)->faces_by_id[ID] \ 1330 ? FRAME_FACE_CACHE (F)->faces_by_id[ID] \
1331 : NULL) 1331 : NULL)
1332 1332
1333#ifdef HAVE_WINDOW_SYSTEM
1334
1333/* Non-zero if FACE is suitable for displaying character CHAR. */ 1335/* Non-zero if FACE is suitable for displaying character CHAR. */
1334 1336
1335#define FACE_SUITABLE_FOR_CHAR_P(FACE, CHAR) \ 1337#define FACE_SUITABLE_FOR_CHAR_P(FACE, CHAR) \
@@ -1346,9 +1348,12 @@ struct face_cache
1346 ? (FACE)->ascii_face->id \ 1348 ? (FACE)->ascii_face->id \
1347 : face_for_char ((F), (FACE), (CHAR))) 1349 : face_for_char ((F), (FACE), (CHAR)))
1348 1350
1349/* The default registry and encoding to use. */ 1351#else /* not HAVE_WINDOW_SYSTEM */
1350 1352
1351extern Lisp_Object Vface_default_registry; 1353#define FACE_SUITABLE_FOR_CHAR_P(FACE, CHAR) 1
1354#define FACE_FOR_CHAR(F, FACE, CHAR) ((FACE)->id)
1355
1356#endif /* not HAVE_WINDOW_SYSTEM */
1352 1357
1353/* Non-zero means face attributes have been changed since the last 1358/* Non-zero means face attributes have been changed since the last
1354 redisplay. Used in redisplay_internal. */ 1359 redisplay. Used in redisplay_internal. */