diff options
| author | Kim F. Storm | 2008-02-27 22:49:07 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2008-02-27 22:49:07 +0000 |
| commit | f59836fede1fd5e29de705d9227473e2ab909079 (patch) | |
| tree | f3c1111f96d4d70b29a4e32730913eeb380f181a /src | |
| parent | ea92fc1a436175578c9bccec7417cd75fc4fddc7 (diff) | |
| download | emacs-f59836fede1fd5e29de705d9227473e2ab909079.tar.gz emacs-f59836fede1fd5e29de705d9227473e2ab909079.zip | |
(current_column, current_column_1, Fmove_to_column)
(compute_motion): Adapt to new glyph code encoding.
Diffstat (limited to 'src')
| -rw-r--r-- | src/indent.c | 31 |
1 files changed, 14 insertions, 17 deletions
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 () | |||
| 447 | next_element_from_display_vector does it. */ | 447 | next_element_from_display_vector does it. */ |
| 448 | Lisp_Object entry = AREF (charvec, i); | 448 | Lisp_Object entry = AREF (charvec, i); |
| 449 | 449 | ||
| 450 | if (INTEGERP (entry) | 450 | if (GLYPH_CODE_P (entry) |
| 451 | && GLYPH_CHAR_VALID_P (XFASTINT (entry))) | 451 | && GLYPH_CODE_CHAR_VALID_P (entry)) |
| 452 | c = FAST_GLYPH_CHAR (XFASTINT (entry)); | 452 | c = GLYPH_CODE_CHAR (entry); |
| 453 | else | 453 | else |
| 454 | c = ' '; | 454 | c = ' '; |
| 455 | } | 455 | } |
| @@ -583,12 +583,11 @@ current_column_1 () | |||
| 583 | { | 583 | { |
| 584 | /* This should be handled the same as | 584 | /* This should be handled the same as |
| 585 | next_element_from_display_vector does it. */ | 585 | next_element_from_display_vector does it. */ |
| 586 | Lisp_Object entry; | 586 | Lisp_Object entry = AREF (charvec, i); |
| 587 | entry = AREF (charvec, i); | ||
| 588 | 587 | ||
| 589 | if (INTEGERP (entry) | 588 | if (GLYPH_CODE_P (entry) |
| 590 | && GLYPH_CHAR_VALID_P (XFASTINT (entry))) | 589 | && GLYPH_CODE_CHAR_VALID_P (entry)) |
| 591 | c = FAST_GLYPH_CHAR (XFASTINT (entry)); | 590 | c = GLYPH_CODE_CHAR (entry); |
| 592 | else | 591 | else |
| 593 | c = ' '; | 592 | c = ' '; |
| 594 | 593 | ||
| @@ -1021,13 +1020,11 @@ The return value is the current column. */) | |||
| 1021 | { | 1020 | { |
| 1022 | /* This should be handled the same as | 1021 | /* This should be handled the same as |
| 1023 | next_element_from_display_vector does it. */ | 1022 | next_element_from_display_vector does it. */ |
| 1023 | Lisp_Object entry = AREF (charvec, i); | ||
| 1024 | 1024 | ||
| 1025 | Lisp_Object entry; | 1025 | if (GLYPH_CODE_P (entry) |
| 1026 | entry = AREF (charvec, i); | 1026 | && GLYPH_CODE_CHAR_VALID_P (entry)) |
| 1027 | 1027 | c = GLYPH_CODE_CHAR (entry); | |
| 1028 | if (INTEGERP (entry) | ||
| 1029 | && GLYPH_CHAR_VALID_P (XFASTINT (entry))) | ||
| 1030 | c = FAST_GLYPH_CHAR (XFASTINT (entry)); | ||
| 1031 | else | 1028 | else |
| 1032 | c = ' '; | 1029 | c = ' '; |
| 1033 | 1030 | ||
| @@ -1627,9 +1624,9 @@ compute_motion (from, fromvpos, fromhpos, did_motion, to, tovpos, tohpos, width, | |||
| 1627 | next_element_from_display_vector does it. */ | 1624 | next_element_from_display_vector does it. */ |
| 1628 | Lisp_Object entry = AREF (charvec, i); | 1625 | Lisp_Object entry = AREF (charvec, i); |
| 1629 | 1626 | ||
| 1630 | if (INTEGERP (entry) | 1627 | if (GLYPH_CODE_P (entry) |
| 1631 | && GLYPH_CHAR_VALID_P (XFASTINT (entry))) | 1628 | && GLYPH_CODE_CHAR_VALID_P (entry)) |
| 1632 | c = FAST_GLYPH_CHAR (XFASTINT (entry)); | 1629 | c = GLYPH_CODE_CHAR (entry); |
| 1633 | else | 1630 | else |
| 1634 | c = ' '; | 1631 | c = ' '; |
| 1635 | } | 1632 | } |