1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-03 18:41:25 -08:00
Commit graph

124 commits

Author SHA1 Message Date
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
Gerd Moellmann
8720a429d9 (Fvertical_motion): Rewritten. 1999-07-21 21:43:52 +00:00
Karl Heuer
a9a679b70e (compute_motion): Fix boundary case. 1999-06-12 03:50:37 +00:00
Kenichi Handa
f35b0e56f0 (MULTIBYTE_BYTES_WIDTH): Check validity of a multibyte character. 1998-11-06 00:44:16 +00:00
Richard M. Stallman
7ac57cb36c (vmotion): Don't use WINDOW for Fget_char_property
when it is not showing the right buffer.
1998-08-16 02:10:56 +00:00
Richard M. Stallman
8f9db2b73f (indented_beyond_p): Return the right kind of value. 1998-06-23 20:31:53 +00:00
Richard M. Stallman
f9ba10b011 (compute_motion): Check for past vpos/hpos target
before skipping invisible chars.
1998-05-25 22:33:38 +00:00
Kenichi Handa
9129bcc3bd Fix previous change. 1998-05-09 01:23:58 +00:00
Richard M. Stallman
c71c19f497 Comment change. 1998-05-08 05:10:29 +00:00
Kenichi Handa
c38bd42839 (compute_motion): Fix, in a different way, the bug of handling
wide-column character around right margin.
1998-05-08 04:17:48 +00:00
Richard M. Stallman
33fe7d2059 (compute_motion): Undo both May 7 changes. 1998-05-08 02:28:22 +00:00
Kenichi Handa
4aa5eb5a42 (compute_motion): Fix previous change. 1998-05-08 00:08:09 +00:00
Kenichi Handa
dbc08868a2 (compute_motion): Fix bug of handling wide-column
character around right margin.
1998-05-07 06:41:12 +00:00
Richard M. Stallman
e8cb089b39 (compute_motion): When invisible text cross TO,
return TO, not the start of the invisible text.
1998-05-03 04:33:27 +00:00
Andreas Schwab
d5d6f7060f (indented_beyond_p): Fix mixing of Lisp_Object and int. 1998-04-14 13:00:27 +00:00
Andreas Schwab
dfcf069d56 Fix -Wimplicit warnings. 1998-04-14 12:25:56 +00:00
Karl Heuer
9fdae274dd (Fcompute_motion): Check that TO and FROM are in range. 1998-04-13 18:56:00 +00:00
Kenichi Handa
4116deeea8 (compute_motion): Call strwidth only when necessary.
Set wide_column_end_hpos only when MULTIBYTE_BYTES_WIDTH set
nonzero to wide_column.
1998-03-25 10:45:59 +00:00
Kenichi Handa
2436e18031 (MULTIBYTE_BYTES_WIDTH): Set wide_column only when we
encounter a wide-column character.
1998-03-24 05:41:38 +00:00
Andreas Schwab
ef3af330d2 (compute_motion): If we just moved over a continuation
return contin_hpos as prevhpos.
1998-02-27 09:38:41 +00:00
Kenichi Handa
c9c0f7cf48 (MULTIBYTE_BYTES_WIDTH): New macro.
(current_column_1): Don't follow a display table for a heading
byte of a multibyte character.  Use the macro
MULTIBYTE_BYTES_WIDTH.
(Fmove_to_column): Likewise.
(compute_motion): Likewise.  Handling of wide-column character
fixed.
1998-02-20 01:40:47 +00:00
Andreas Schwab
529724fec7 (compute_motion): If right margin is reached and we are
truncating don't clobber PREV_HPOS if we are already past TO.
1998-02-09 11:16:35 +00:00
Richard M. Stallman
31c8f88101 Update copyright year. 1998-01-21 22:22:17 +00:00
Richard M. Stallman
813b81b37d (current_column_1): Eliminate argument POS; use PT and PT_BYTE.
When doing FETCH_BYTE, use scan_byte.
(current_column): Check whether buffer really has multibyte chars,
not whether they are enabled.
1998-01-21 08:16:28 +00:00
Richard M. Stallman
fe0066f50f (current_column_1, Fmove_to_column):
Update call to CHAR_HEAD_P.

(indented_beyond_p): Take POS in bytes and chars.  Callers changed.
(pos_tab_indent): Function moved to xdisp.c.

(Fcurrent_indentation): Use scan_newline and SET_PT_BOTH.
(indented_beyond_p, current_column_1): Likewise.

(vmotion, compute_motion): Set up bytepos value to return it.
(current_column): Handle bytepos and charpos.
(position_indentation): Take bytepos as arg, and scan with it.  Calls changed.
(Fmove_to_column): Scan with bytepos and charpos.
(pos_tab_offset): Use bytepos to do FETCH_BYTE.
(skip_invisible): Don't worry about position in middle of character.
1998-01-02 21:43:42 +00:00
Kenichi Handa
c9667ae1a9 (invalidate_current_column): Declare it as void. 1997-11-27 12:12:50 +00:00
Karl Heuer
fb9117773d (position_indentation): Detect non-breaking space,
in either single-byte form or multibyte form (using category ' ').
1997-11-15 20:22:20 +00:00
Richard M. Stallman
39ffc6175d (compute_motion): Ignore the display table entry for a
base leading code when dealing with multibyte characters.
1997-09-15 19:51:28 +00:00
Richard M. Stallman
7050d53077 (current_column): Update ptr differently at newline
so that current_column_bol_cache is set properly.
1997-08-07 09:01:52 +00:00
Richard M. Stallman
1d78452128 (compute_motion): Correct the criterion for when to
move back 1 space when we terminate just after continuing the line.
1997-08-02 09:30:17 +00:00
Kenichi Handa
0f706dacee (compute_motion): Handle display table correctly for
multibyte characters.
1997-07-25 08:01:02 +00:00
Richard M. Stallman
2e34157cd9 Fix bugs with inappropriate mixing of Lisp_Object with int. 1997-07-04 20:44:52 +00:00
Richard M. Stallman
5db0afb7fb (compute_motion): Use XFASTINT on width_table elts. 1997-06-02 00:45:18 +00:00
Richard M. Stallman
98136db32a (compute_motion): Return correctly if skip_invisible
takes us past TO.
1997-05-27 04:59:29 +00:00
Kenichi Handa
626665b47b (compute_motion): When POS >= TO, don't call
find_before_next_newline() as it assumes POS < TO.
1997-03-05 01:42:06 +00:00
Karl Heuer
a997a7ca07 (current_column_bol_cache): New variable. This makes
move_to_column faster.
(current_column): Set current_column_bol_cache.
(current_column_1): Likewise.
(Fmove_to_column): Use current_column_bol_cache.

(current_column): When the buffer may have multi-byte
characters, call current_column_1.
(compute_motion): Handle multi-byte characters.
(current_column_1): Likewise.
(Fmove_to_column): Likewise.

Include "charset.h".
(compute_motion): Remove the variable PREV_VPOS.
Introduce new local variables (multibyte, wide_column, prev_pos,
contin_hpos, prev_tab_offset) to handle multi-byte characters and
wide-column characters.

(pos_tab_offset): Specify "- (1 << (BITS_PER_SHORT - 1))"
to express big negative number (for consistency with xdisp.c).

(vmotion): Specify "1 << (BITS_PER_SHORT - 1)" to
express "Don't care".
1997-02-20 06:39:27 +00:00
Richard M. Stallman
2dd4e608e1 (pos_tab_offset): Take the width of the minibuffer prompt into account.
(vmotion): In calls to compute_motion use a value for tab_offset
that is corrected by the minibuffer prompt width.
1997-01-24 09:31:18 +00:00
Richard M. Stallman
927b5a55b8 (vmotion, compute_motion): Fill in ovstring_chars_done in the return value. 1996-10-06 20:44:10 +00:00
Richard M. Stallman
d7c64de6bf Comment change. 1996-09-21 01:25:11 +00:00
Karl Heuer
6ec8bbd20d Change all references from point to PT. 1996-09-01 19:15:05 +00:00
Karl Heuer
5f25660ca7 (Fvertical_motion): Doc fix. 1996-07-13 01:03:02 +00:00
Miles Bader
f3e9aa2d38 (Fvertical_motion): Doc fix. 1996-07-06 20:02:35 +00:00