aboutsummaryrefslogtreecommitdiffstats
path: root/src/composite.c
diff options
context:
space:
mode:
authorJoakim Verona2012-08-15 21:49:40 +0200
committerJoakim Verona2012-08-15 21:49:40 +0200
commitb648c26ec642a1dc58c0bd7e59d6011b964dbe37 (patch)
treef0f3b38ffa9054702f475fc53622e28da14f97b1 /src/composite.c
parentc8b0fc1999006af5a4317b44068fac13d9592143 (diff)
parent94c9ece10275f8ca9323c38f93607f1046035c79 (diff)
downloademacs-b648c26ec642a1dc58c0bd7e59d6011b964dbe37.tar.gz
emacs-b648c26ec642a1dc58c0bd7e59d6011b964dbe37.zip
upstream
Diffstat (limited to 'src/composite.c')
-rw-r--r--src/composite.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/composite.c b/src/composite.c
index 485e51467ca..4e90e9bb914 100644
--- a/src/composite.c
+++ b/src/composite.c
@@ -23,6 +23,9 @@ You should have received a copy of the GNU General Public License
23along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ 23along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
24 24
25#include <config.h> 25#include <config.h>
26
27#define COMPOSITE_INLINE EXTERN_INLINE
28
26#include <setjmp.h> 29#include <setjmp.h>
27#include "lisp.h" 30#include "lisp.h"
28#include "character.h" 31#include "character.h"
@@ -762,7 +765,7 @@ composition_gstring_width (Lisp_Object gstring, ptrdiff_t from, ptrdiff_t to,
762 } 765 }
763 metrics->width = metrics->lbearing = metrics->rbearing = 0; 766 metrics->width = metrics->lbearing = metrics->rbearing = 0;
764 } 767 }
765 for (glyph = &LGSTRING_GLYPH (gstring, from); from < to; from++, glyph++) 768 for (glyph = lgstring_glyph_addr (gstring, from); from < to; from++, glyph++)
766 { 769 {
767 int x; 770 int x;
768 771
@@ -906,7 +909,7 @@ static Lisp_Object
906autocmp_chars (Lisp_Object rule, ptrdiff_t charpos, ptrdiff_t bytepos, ptrdiff_t limit, struct window *win, struct face *face, Lisp_Object string) 909autocmp_chars (Lisp_Object rule, ptrdiff_t charpos, ptrdiff_t bytepos, ptrdiff_t limit, struct window *win, struct face *face, Lisp_Object string)
907{ 910{
908 ptrdiff_t count = SPECPDL_INDEX (); 911 ptrdiff_t count = SPECPDL_INDEX ();
909 FRAME_PTR f = XFRAME (WVAR (win, frame)); 912 FRAME_PTR f = XFRAME (win->frame);
910 Lisp_Object pos = make_number (charpos); 913 Lisp_Object pos = make_number (charpos);
911 ptrdiff_t to; 914 ptrdiff_t to;
912 ptrdiff_t pt = PT, pt_byte = PT_BYTE; 915 ptrdiff_t pt = PT, pt_byte = PT_BYTE;
@@ -942,7 +945,7 @@ autocmp_chars (Lisp_Object rule, ptrdiff_t charpos, ptrdiff_t bytepos, ptrdiff_t
942 } 945 }
943 else 946 else
944#endif /* not HAVE_WINDOW_SYSTEM */ 947#endif /* not HAVE_WINDOW_SYSTEM */
945 font_object = WVAR (win, frame); 948 font_object = win->frame;
946 lgstring = Fcomposition_get_gstring (pos, make_number (to), font_object, 949 lgstring = Fcomposition_get_gstring (pos, make_number (to), font_object,
947 string); 950 string);
948 if (NILP (LGSTRING_ID (lgstring))) 951 if (NILP (LGSTRING_ID (lgstring)))