summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1997-06-01 00:30:01 +0000
committerRichard M. Stallman <rms@gnu.org>1997-06-01 00:30:01 +0000
commit413533f7c7e7a4d7dad823ca6955a6931828b244 (patch)
tree89a3172b559fc8dbc6d44a46849182db805fd8b6 /src
parentaef088ba234c07d7968839d436ad77e5fe83a350 (diff)
downloademacs-413533f7c7e7a4d7dad823ca6955a6931828b244.tar.gz
Include frame.h unconditionally.
(Fframe_face_alist, Fset_frame_face_alist): Define unconditionally. (Finternal_next_face_id, next_face_id): Likewise. (syms_of_xfaces): Define unconditionally, but conditionalize some of the contents.
Diffstat (limited to 'src')
-rw-r--r--src/xfaces.c76
1 files changed, 40 insertions, 36 deletions
diff --git a/src/xfaces.c b/src/xfaces.c
index c033911e1de..bb746bb859b 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -28,6 +28,11 @@ Boston, MA 02111-1307, USA. */
#include "charset.h"
+#include "frame.h"
+
+/* The number of face-id's in use (same for all frames). */
+static int next_face_id;
+
#ifdef HAVE_FACES
#ifdef HAVE_X_WINDOWS
@@ -39,7 +44,6 @@ Boston, MA 02111-1307, USA. */
#endif
#include "buffer.h"
#include "dispextern.h"
-#include "frame.h"
#include "blockinput.h"
#include "window.h"
#include "intervals.h"
@@ -151,9 +155,6 @@ Boston, MA 02111-1307, USA. */
/* Definitions and declarations. */
-/* The number of face-id's in use (same for all frames). */
-static int next_face_id;
-
/* The number of the face to use to indicate the region. */
static int region_face;
@@ -1116,26 +1117,6 @@ recompute_basic_faces (f)
/* Lisp interface. */
-DEFUN ("frame-face-alist", Fframe_face_alist, Sframe_face_alist, 1, 1, 0,
- "")
- (frame)
- Lisp_Object frame;
-{
- CHECK_FRAME (frame, 0);
- return XFRAME (frame)->face_alist;
-}
-
-DEFUN ("set-frame-face-alist", Fset_frame_face_alist, Sset_frame_face_alist,
- 2, 2, 0, "")
- (frame, value)
- Lisp_Object frame, value;
-{
- CHECK_FRAME (frame, 0);
- XFRAME (frame)->face_alist = value;
- return value;
-}
-
-
DEFUN ("make-face-internal", Fmake_face_internal, Smake_face_internal, 1, 1, 0,
"Create face number FACE-ID on all frames.")
(face_id)
@@ -1277,14 +1258,6 @@ DEFUN ("set-face-attribute-internal", Fset_face_attribute_internal,
return Qnil;
}
-
-DEFUN ("internal-next-face-id", Finternal_next_face_id, Sinternal_next_face_id,
- 0, 0, 0, "")
- ()
-{
- return make_number (next_face_id++);
-}
-
/* Return the face id for name NAME on frame FRAME.
(It should be the same for all frames,
but it's as easy to use the "right" frame to look it up
@@ -1305,12 +1278,42 @@ face_name_id_number (f, name)
CHECK_NUMBER (tem, 0);
return XINT (tem);
}
+
+#endif /* HAVE_FACES */
+
+
+DEFUN ("frame-face-alist", Fframe_face_alist, Sframe_face_alist, 1, 1, 0,
+ "")
+ (frame)
+ Lisp_Object frame;
+{
+ CHECK_FRAME (frame, 0);
+ return XFRAME (frame)->face_alist;
+}
+
+DEFUN ("set-frame-face-alist", Fset_frame_face_alist, Sset_frame_face_alist,
+ 2, 2, 0, "")
+ (frame, value)
+ Lisp_Object frame, value;
+{
+ CHECK_FRAME (frame, 0);
+ XFRAME (frame)->face_alist = value;
+ return value;
+}
+
+DEFUN ("internal-next-face-id", Finternal_next_face_id, Sinternal_next_face_id,
+ 0, 0, 0, "")
+ ()
+{
+ return make_number (next_face_id++);
+}
/* Emacs initialization. */
void
syms_of_xfaces ()
{
+#ifdef HAVE_FACES
Qface = intern ("face");
staticpro (&Qface);
Qmouse_face = intern ("mouse-face");
@@ -1323,14 +1326,15 @@ syms_of_xfaces ()
The region is highlighted with this face\n\
when Transient Mark mode is enabled and the mark is active.");
+ defsubr (&Smake_face_internal);
+ defsubr (&Sset_face_attribute_internal);
+#endif /* HAVE_FACES */
+
#ifdef HAVE_X_WINDOWS
defsubr (&Spixmap_spec_p);
#endif
+
defsubr (&Sframe_face_alist);
defsubr (&Sset_frame_face_alist);
- defsubr (&Smake_face_internal);
- defsubr (&Sset_face_attribute_internal);
defsubr (&Sinternal_next_face_id);
}
-
-#endif /* HAVE_FACES */