Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
b50504f5
Commit
b50504f5
authored
Apr 17, 2009
by
Kenichi Handa
Browse files
(ftfont_pattern_entity): Return a newly allocated
entity even if the cache hits.
parent
873f4645
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
src/ChangeLog
src/ChangeLog
+5
-0
src/ftfont.c
src/ftfont.c
+8
-1
No files found.
src/ChangeLog
View file @
b50504f5
2009-04-17 Kenichi Handa <handa@m17n.org>
* ftfont.c (ftfont_pattern_entity): Return a newly allocated
entity even if the cache hits.
2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
* search.c (boyer_moore): Use zero as marker value for a possible
...
...
src/ftfont.c
View file @
b50504f5
...
...
@@ -208,7 +208,14 @@ ftfont_pattern_entity (p, extra)
cache
=
ftfont_lookup_cache
(
key
,
FTFONT_CACHE_FOR_ENTITY
);
entity
=
XCAR
(
cache
);
if
(
!
NILP
(
entity
))
return
entity
;
{
Lisp_Object
val
=
font_make_entity
();
int
i
;
for
(
i
=
0
;
i
<
FONT_OBJLIST_INDEX
;
i
++
)
ASET
(
val
,
i
,
AREF
(
entity
,
i
));
return
val
;
}
entity
=
font_make_entity
();
XSETCAR
(
cache
,
entity
);
...
...
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