Commit Graph

165 Commits

Author SHA1 Message Date
Richard M. Stallman
2965dff979 (vmotion): When moving up, check the newline before.
Make prevline an int, not a Lisp_Object.
2004-10-27 10:57:40 +00:00
Kim F. Storm
8cc08515f4 (compute_motion): Fix last change. 2004-08-02 23:59:28 +00:00
Kim F. Storm
ed5c373cab (compute_motion): Fix check for full width window
in non-window case.  Do not count left truncation glyph on
window systems.
2004-08-02 23:42:14 +00:00
Kim F. Storm
361f14bf11 (compute_motion): Use actual window width if WIDTH is -1,
properly accounting for continuation glyph on non-window systems.
(Fcompute_motion): Use actual window width if WIDTH is nil, and
actual window width/height if TOPOS is nil, properly accounting for
continuation glyphs on non-window systems, and optional header lines.
(vmotion): Let compute_motion calculate actual window width.
2004-08-02 15:06:06 +00:00
Stefan Monnier
6cbc951e92 (compute_motion): Save vpos in prev_vpos when dealing
with continuation lines, too.
2004-05-02 16:57:32 +00:00
Kim F. Storm
7b8339b603 (vmotion): Do not reserve one column for continuation
marks on window frames.
2004-04-05 21:41:08 +00:00
Richard M. Stallman
357589bfb4 (compute_motion): Save vpos in prev_vpos, like hpos etc. 2004-03-02 16:04:57 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Stefan Monnier
3ea2f6f3ef (current_column): Use new type for overlays_(before|after). 2003-07-09 14:50:21 +00:00
Kim F. Storm
90022f5a3e Make (few) trivial substitutions for renamed and
new macros in dispextern.h, frame.h and window.h.
2003-05-24 22:07:03 +00:00
Richard M. Stallman
e70d557978 Comment change. 2002-11-29 15:13:50 +00:00
Ken Raeburn
d5db40779d Most uses of XSTRING combined with STRING_BYTES or indirection changed to
SCHARS, SBYTES, STRING_INTERVALS, SREF, SDATA; explicit size_byte references
left unchanged for now.
2002-07-15 00:01:34 +00:00
Richard M. Stallman
76e20cb028 (last_known_column): Declare as double, not float.
(current_column, current_column_1, string_display_width)
(position_indentation): Return `double'.
(indented_beyond_p): Arg `column' is `double'.  Callers changed.
2002-07-11 17:38:49 +00:00
Thien-Thi Nguyen
097812fb66 (last_known_column): Now a float.
(current_column_1, position_indentation, current_column,
string_display_width): Return float.
(Fcurrent_column): Cast `current_column' return value to int.
(Fcurrent_indentation): Cast `position_indentation' retval to int.
(indented_beyond_p): Third arg now a float.
(compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
2002-06-03 01:52:02 +00:00
Pavel Janík
6f4426332d (Fvertical_motion): Fix last change. 2002-04-25 12:15:14 +00:00
Gerd Moellmann
3a46a5dec0 (Fvertical_motion): Move to the start of the line
containing PT before moving up or down.
2002-04-25 10:39:57 +00:00
Juanma Barranquero
58b1103e0e (Fmove_to_column): Remove unused local variable `next_boundary_byte'.
(current_column_1): Likewise.
2002-04-19 13:46:02 +00:00
Juanma Barranquero
59b7fa6569 (Fmove_to_column): Remove unused local variable `end_byte'. 2002-04-17 14:19:15 +00:00
Stefan Monnier
662152ddd2 (skip_invisible): Fix my brain fart. 2002-03-05 18:56:16 +00:00
Pavel Janík
8a00d89535 (compute_motion): Likewise. 2001-12-09 00:57:28 +00:00
Richard M. Stallman
36974b5ecb (current_column_1): Fix handling of scan_bytes for mb chars. 2001-11-19 06:25:33 +00:00
Pavel Janík
40ef1eda44 (current_column_1): Remove unused variable `prev_col'. 2001-11-09 06:22:21 +00:00
Pavel Janík
4d994a7910 (current_column_1): Remove unused variable `prev_col'. 2001-11-06 13:22:01 +00:00
Richard M. Stallman
d6e483a4da (current_column_1, Fmove_to_column): Separate the code
for display-table glyphs from the code buffer text, to fix
bugs in the former.
2001-11-04 23:26:52 +00:00
Pavel Janík
b782650360 Update usage of CHECK_ macros (remove unused second argument). 2001-11-02 20:46:55 +00:00
Pavel Janík
8c1a1077c0 Change doc-string comments to new style' [w/doc:' keyword]. 2001-10-21 12:13:46 +00:00
Ken Raeburn
f3fbd15535 Avoid (most) uses of XCAR/XCDR as lvalues, for flexibility in experimenting
with lisp system changes.
2001-10-16 09:09:51 +00:00
Stefan Monnier
67964c67c6 (skip_invisible): Use new retval of TEXT_PROP_MEANS_INVISIBLE. 2001-10-14 20:19:10 +00:00
Eli Zaretskii
79c2a4fc68 Fix a typo in a comment. 2001-10-14 08:42:52 +00:00
Stefan Monnier
fe14a5445b (skip_invisible): Don't skip "ellipsisized" text. 2001-10-12 22:31:23 +00:00
Gerd Moellmann
32c82ac0a1 Don't define min/max. 2001-10-08 08:08:08 +00:00
Gerd Moellmann
f1004faf26 (current_column): Fix column computation in the
presence of display table entries.
(current_column_1, Fmove_to_column, compute_motion): Likewise.
2001-07-23 14:47:42 +00:00
Gerd Moellmann
f4a6687dd6 (string_display_width): Put in #if 0. 2001-05-28 12:04:47 +00:00
Gerd Moellmann
88c6e37e85 (current_column, current_column_1, Fmove_to_column)
(compute_motion): Handle characters from display vectors
differently.
2001-03-16 13:33:46 +00:00
Kenichi Handa
9ee6df62dd (check_composition): Check validity of composition. 2001-01-19 03:50:40 +00:00
Eli Zaretskii
8798a92b86 (current_column): Remove unused variable `stopchar'.
(Fcompute_motion): Remove unused variable `contin'.
2001-01-02 14:05:57 +00:00
Miles Bader
bcfbd63d88 (compute_motion): Keep pos_byte in sync with pos. 2000-11-25 02:08:59 +00:00
Gerd Moellmann
6bbd7a2959 Avoid some more compiler warnings. 2000-09-21 20:54:57 +00:00
Andrew Innes
2538fae4f8 Include keyboard.h before frame.h. 2000-08-22 22:41:00 +00:00
Dave Love
703af3d57e Fix nested comment. 2000-06-03 22:23:57 +00:00
Gerd Moellmann
154a424ac4 (Fmove_to_column): When ending within a tab, insert
spaces first so that markers at the end of the tab get adjusted.
2000-05-16 14:29:27 +00:00
Gerd Moellmann
e45001163e (compute_motion): Set immediate_quit. 2000-04-10 11:44:37 +00:00
Gerd Moellmann
39210e90ad (Fvertical_motion): Always use the current buffer.
Temporarily change the window's buffer, if necessary.
2000-03-24 13:31:20 +00:00
Kenichi Handa
012fd715d2 (check_composition): New function.
(MULTIBYTE_BYTES_WIDTH): Call STRING_CHAR_AND_LENGTH with
MAX_MULTIBYTE_LENGTH, not MAX_LENGTH_OF_MULTI_BYTE_FORM.
(current_column_1): Handle new way of composition.
(Fmove_to_column): Likewise.
(compute_motion): Likewise.
1999-12-15 00:13:13 +00:00
Gerd Moellmann
339ee9797d Remove USE_TEXT_PROPERTIES. 1999-11-11 11:45:06 +00:00
Ken Raeburn
70949dac51 Use XCAR, XCDR, XFLOAT_DATA instead of explicit member access. 1999-09-12 05:07:01 +00:00
Kenichi Handa
0377370fbb (MULTIBYTE_BYTES_WIDTH): Delete the 2nd arg C. Use the
macro STRING_CHAR_AND_LENGTH.  Caller changed.
1999-09-03 01:28:42 +00:00
Gerd Moellmann
4f13cc9959 Remove conditional compilation on NO_PROMPT_IN_BUFFER. 1999-08-21 19:29:47 +00:00
Gerd Moellmann
708ca3c8f9 (vmotion): Don't add in mini-buffer prompt width
if prompts are inserted into mini-buffer.
1999-08-12 20:49:57 +00:00
Karl Heuer
de4075cff3 (Fmove_to_column): Extend end of line only if FORCE is t. 1999-07-26 19:05:40 +00:00