From: Kim F. Storm Date: Wed, 27 Feb 2008 22:49:07 +0000 (+0000) Subject: (current_column, current_column_1, Fmove_to_column) X-Git-Tag: emacs-pretest-23.0.90~7614 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f59836fede1fd5e29de705d9227473e2ab909079;p=emacs.git (current_column, current_column_1, Fmove_to_column) (compute_motion): Adapt to new glyph code encoding. --- diff --git a/src/indent.c b/src/indent.c index 4f5b55acc47..b4443825c5d 100644 --- a/src/indent.c +++ b/src/indent.c @@ -447,9 +447,9 @@ current_column () next_element_from_display_vector does it. */ Lisp_Object entry = AREF (charvec, i); - if (INTEGERP (entry) - && GLYPH_CHAR_VALID_P (XFASTINT (entry))) - c = FAST_GLYPH_CHAR (XFASTINT (entry)); + if (GLYPH_CODE_P (entry) + && GLYPH_CODE_CHAR_VALID_P (entry)) + c = GLYPH_CODE_CHAR (entry); else c = ' '; } @@ -583,12 +583,11 @@ current_column_1 () { /* This should be handled the same as next_element_from_display_vector does it. */ - Lisp_Object entry; - entry = AREF (charvec, i); + Lisp_Object entry = AREF (charvec, i); - if (INTEGERP (entry) - && GLYPH_CHAR_VALID_P (XFASTINT (entry))) - c = FAST_GLYPH_CHAR (XFASTINT (entry)); + if (GLYPH_CODE_P (entry) + && GLYPH_CODE_CHAR_VALID_P (entry)) + c = GLYPH_CODE_CHAR (entry); else c = ' '; @@ -1021,13 +1020,11 @@ The return value is the current column. */) { /* This should be handled the same as next_element_from_display_vector does it. */ + Lisp_Object entry = AREF (charvec, i); - Lisp_Object entry; - entry = AREF (charvec, i); - - if (INTEGERP (entry) - && GLYPH_CHAR_VALID_P (XFASTINT (entry))) - c = FAST_GLYPH_CHAR (XFASTINT (entry)); + if (GLYPH_CODE_P (entry) + && GLYPH_CODE_CHAR_VALID_P (entry)) + c = GLYPH_CODE_CHAR (entry); else c = ' '; @@ -1627,9 +1624,9 @@ compute_motion (from, fromvpos, fromhpos, did_motion, to, tovpos, tohpos, width, next_element_from_display_vector does it. */ Lisp_Object entry = AREF (charvec, i); - if (INTEGERP (entry) - && GLYPH_CHAR_VALID_P (XFASTINT (entry))) - c = FAST_GLYPH_CHAR (XFASTINT (entry)); + if (GLYPH_CODE_P (entry) + && GLYPH_CODE_CHAR_VALID_P (entry)) + c = GLYPH_CODE_CHAR (entry); else c = ' '; }