Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
23c8bcbf
Commit
23c8bcbf
authored
Jan 28, 2008
by
Kenichi Handa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(FONTP): Make it return 1 also for a font-object.
parent
9e067dbc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/font.h
src/font.h
+4
-2
No files found.
src/font.h
View file @
23c8bcbf
...
...
@@ -212,14 +212,16 @@ struct font_bitmap
/* Predicates to check various font-related objects. */
#define FONTP(x) \
(VECTORP (x) && (ASIZE (x) == FONT_SPEC_MAX || ASIZE (x) == FONT_ENTITY_MAX))
#define FONT_SPEC_P(x) \
(VECTORP (x) && ASIZE (x) == FONT_SPEC_MAX)
#define FONT_ENTITY_P(x) \
(VECTORP (x) && ASIZE (x) == FONT_ENTITY_MAX)
#define FONT_OBJECT_P(x) \
(XTYPE (x) == Lisp_Misc && XMISCTYPE (x) == Lisp_Misc_Save_Value)
#define FONTP(x) \
((VECTORP (x) && (ASIZE (x) == FONT_SPEC_MAX \
|| ASIZE (x) == FONT_ENTITY_MAX)) \
|| FONT_OBJECT_P (x))
#define FONT_ENTITY_NOT_LOADABLE(entity) \
EQ (AREF (entity, FONT_OBJLIST_INDEX), Qt)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment