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
46f905e1
Commit
46f905e1
authored
Sep 17, 2008
by
Stefan Monnier
Browse files
(Fcomposition_get_gstring): Yet another int/Lisp_Oject mixup (YAILOM).
parent
051facec
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
src/ChangeLog
src/ChangeLog
+5
-0
src/composite.c
src/composite.c
+8
-2
No files found.
src/ChangeLog
View file @
46f905e1
2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
* composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Oject
mixup (YAILOM).
2008-09-17 Chong Yidong <cyd@stupidchicken.com>
* indent.c (Fvertical_motion): Use position reported by iterator
...
...
src/composite.c
View file @
46f905e1
...
...
@@ -1489,6 +1489,7 @@ must be ignore. */)
Lisp_Object font_object, from, to, string;
{
Lisp_Object gstring, header;
EMACS_INT frompos, topos;
if (! NILP (font_object))
CHECK_FONT_OBJECT (font_object);
...
...
@@ -1496,8 +1497,13 @@ must be ignore. */)
gstring = gstring_lookup_cache (header);
if (! NILP (gstring))
return gstring;
if (LGSTRING_GLYPH_LEN (gstring_work) < to - from)
gstring_work = Fmake_vector (make_number (to - from + 2), Qnil);
/* Maybe we should check this at the function's entry. --Stef */
CHECK_NATNUM (from); frompos = XINT (from);
CHECK_NATNUM (to); topos = XINT (to);
if (LGSTRING_GLYPH_LEN (gstring_work) < topos - frompos)
gstring_work = Fmake_vector (make_number (topos - frompos + 2), Qnil);
LGSTRING_SET_HEADER (gstring_work, header);
LGSTRING_SET_ID (gstring_work, Qnil);
fill_gstring_body (gstring_work);
...
...
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