aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-03-05 23:56:43 +0000
committerRichard M. Stallman1993-03-05 23:56:43 +0000
commitdea4d2e67124b9ef943d54b265271e3af22e1e82 (patch)
tree8c9dc40edba1323efb5c8e67cc6eb0eabfdf843d
parent80ec1ba2ebdab91e5b34f8378f32c2a34fb93158 (diff)
downloademacs-dea4d2e67124b9ef943d54b265271e3af22e1e82.tar.gz
emacs-dea4d2e67124b9ef943d54b265271e3af22e1e82.zip
(current_column, Fmove_to_column, compute_motion):
Expect display table elts to be vectors.
-rw-r--r--src/indent.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/indent.c b/src/indent.c
index f991c56ef25..9258dcc74db 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -137,7 +137,7 @@ current_column ()
137 137
138 c = *--ptr; 138 c = *--ptr;
139 if (c >= 040 && c < 0177 139 if (c >= 040 && c < 0177
140 && (dp == 0 || XTYPE (DISP_CHAR_ROPE (dp, c)) != Lisp_String)) 140 && (dp == 0 || XTYPE (DISP_CHAR_VECTOR (dp, c)) != Lisp_Vector))
141 { 141 {
142 col++; 142 col++;
143 } 143 }
@@ -154,8 +154,8 @@ current_column ()
154 col = 0; 154 col = 0;
155 tab_seen = 1; 155 tab_seen = 1;
156 } 156 }
157 else if (dp != 0 && XTYPE (DISP_CHAR_ROPE (dp, c)) == Lisp_String) 157 else if (dp != 0 && XTYPE (DISP_CHAR_VECTOR (dp, c)) == Lisp_Vector)
158 col += XSTRING (DISP_CHAR_ROPE (dp, c))->size / sizeof (GLYPH); 158 col += XVECTOR (DISP_CHAR_VECTOR (dp, c))->size;
159 else 159 else
160 col += (ctl_arrow && c < 0200) ? 2 : 4; 160 col += (ctl_arrow && c < 0200) ? 2 : 4;
161 } 161 }
@@ -329,8 +329,8 @@ and if COLUMN is in the middle of a tab character, change it to spaces.")
329 col += tab_width; 329 col += tab_width;
330 col = col / tab_width * tab_width; 330 col = col / tab_width * tab_width;
331 } 331 }
332 else if (dp != 0 && XTYPE (DISP_CHAR_ROPE (dp, c)) == Lisp_String) 332 else if (dp != 0 && XTYPE (DISP_CHAR_VECTOR (dp, c)) == Lisp_Vector)
333 col += XSTRING (DISP_CHAR_ROPE (dp, c))->size / sizeof (GLYPH); 333 col += XVECTOR (DISP_CHAR_VECTOR (dp, c))->size;
334 else if (ctl_arrow && (c < 040 || c == 0177)) 334 else if (ctl_arrow && (c < 040 || c == 0177))
335 col++; 335 col++;
336 else if (c < 040 || c >= 0177) 336 else if (c < 040 || c >= 0177)
@@ -434,8 +434,8 @@ compute_motion (from, fromvpos, fromhpos, to, tovpos, tohpos, width, hscroll, ta
434 : !NILP (current_buffer->selective_display) ? -1 : 0; 434 : !NILP (current_buffer->selective_display) ? -1 : 0;
435 int prev_vpos, prev_hpos; 435 int prev_vpos, prev_hpos;
436 int selective_rlen 436 int selective_rlen
437 = (selective && dp && XTYPE (DISP_INVIS_ROPE (dp)) == Lisp_String 437 = (selective && dp && XTYPE (DISP_INVIS_VECTOR (dp)) == Lisp_Vector
438 ? XSTRING (DISP_INVIS_ROPE (dp))->size / sizeof (GLYPH) : 0); 438 ? XVECTOR (DISP_INVIS_VECTOR (dp))->size : 0);
439 439
440 if (tab_width <= 0 || tab_width > 20) tab_width = 8; 440 if (tab_width <= 0 || tab_width > 20) tab_width = 8;
441 for (pos = from; pos < to; pos++) 441 for (pos = from; pos < to; pos++)
@@ -450,7 +450,7 @@ compute_motion (from, fromvpos, fromhpos, to, tovpos, tohpos, width, hscroll, ta
450 450
451 c = FETCH_CHAR (pos); 451 c = FETCH_CHAR (pos);
452 if (c >= 040 && c < 0177 452 if (c >= 040 && c < 0177
453 && (dp == 0 || XTYPE (DISP_CHAR_ROPE (dp, c)) != Lisp_String)) 453 && (dp == 0 || XTYPE (DISP_CHAR_VECTOR (dp, c)) != Lisp_Vector))
454 hpos++; 454 hpos++;
455 else if (c == '\t') 455 else if (c == '\t')
456 { 456 {
@@ -506,8 +506,8 @@ compute_motion (from, fromvpos, fromhpos, to, tovpos, tohpos, width, hscroll, ta
506 hpos = width; 506 hpos = width;
507 } 507 }
508 } 508 }
509 else if (dp != 0 && XTYPE (DISP_CHAR_ROPE (dp, c)) == Lisp_String) 509 else if (dp != 0 && XTYPE (DISP_CHAR_VECTOR (dp, c)) == Lisp_Vector)
510 hpos += XSTRING (DISP_CHAR_ROPE (dp, c))->size / sizeof (GLYPH); 510 hpos += XVECTOR (DISP_CHAR_VECTOR (dp, c))->size;
511 else 511 else
512 hpos += (ctl_arrow && c < 0200) ? 2 : 4; 512 hpos += (ctl_arrow && c < 0200) ? 2 : 4;
513 513