aboutsummaryrefslogtreecommitdiffstats
path: root/src/indent.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* (check_composition): New function.Kenichi Handa1999-12-151-17/+84
| | | | | | | | (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.
* Remove USE_TEXT_PROPERTIES.Gerd Moellmann1999-11-111-8/+2
|
* Use XCAR, XCDR, XFLOAT_DATA instead of explicit member access.Ken Raeburn1999-09-121-12/+12
|
* (MULTIBYTE_BYTES_WIDTH): Delete the 2nd arg C. Use theKenichi Handa1999-09-031-63/+20
| | | | macro STRING_CHAR_AND_LENGTH. Caller changed.
* Remove conditional compilation on NO_PROMPT_IN_BUFFER.Gerd Moellmann1999-08-211-15/+0
|
* (vmotion): Don't add in mini-buffer prompt widthGerd Moellmann1999-08-121-0/+2
| | | | if prompts are inserted into mini-buffer.
* (Fmove_to_column): Extend end of line only if FORCE is t.Karl Heuer1999-07-261-4/+5
|
* (Fvertical_motion): Rewritten.Gerd Moellmann1999-07-211-6/+27
|
* (compute_motion): Fix boundary case.Karl Heuer1999-06-121-1/+3
|
* (MULTIBYTE_BYTES_WIDTH): Check validity of a multibyte character.Kenichi Handa1998-11-061-5/+9
|
* (vmotion): Don't use WINDOW for Fget_char_propertyRichard M. Stallman1998-08-161-2/+11
| | | | when it is not showing the right buffer.
* (indented_beyond_p): Return the right kind of value.Richard M. Stallman1998-06-231-1/+1
|
* (compute_motion): Check for past vpos/hpos targetRichard M. Stallman1998-05-251-0/+20
| | | | before skipping invisible chars.
* Fix previous change.Kenichi Handa1998-05-091-1/+2
|
* Comment change.Richard M. Stallman1998-05-081-2/+3
|
* (compute_motion): Fix, in a different way, the bug of handlingKenichi Handa1998-05-081-2/+1
| | | | wide-column character around right margin.
* (compute_motion): Undo both May 7 changes.Richard M. Stallman1998-05-081-3/+19
|
* (compute_motion): Fix previous change.Kenichi Handa1998-05-081-1/+1
|
* (compute_motion): Fix bug of handling wide-columnKenichi Handa1998-05-071-19/+3
| | | | character around right margin.
* (compute_motion): When invisible text cross TO,Richard M. Stallman1998-05-031-1/+4
| | | | return TO, not the start of the invisible text.
* (indented_beyond_p): Fix mixing of Lisp_Object and int.Andreas Schwab1998-04-141-2/+2
|
* Fix -Wimplicit warnings.Andreas Schwab1998-04-141-0/+3
|
* (Fcompute_motion): Check that TO and FROM are in range.Karl Heuer1998-04-131-0/+5
|
* (compute_motion): Call strwidth only when necessary.Kenichi Handa1998-03-251-2/+4
| | | | | Set wide_column_end_hpos only when MULTIBYTE_BYTES_WIDTH set nonzero to wide_column.
* (MULTIBYTE_BYTES_WIDTH): Set wide_column only when weKenichi Handa1998-03-241-2/+6
| | | | encounter a wide-column character.
* (compute_motion): If we just moved over a continuationAndreas Schwab1998-02-271-1/+4
| | | | return contin_hpos as prevhpos.
* (MULTIBYTE_BYTES_WIDTH): New macro.Kenichi Handa1998-02-201-107/+95
| | | | | | | | | (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.
* (compute_motion): If right margin is reached and we areAndreas Schwab1998-02-091-10/+11
| | | | truncating don't clobber PREV_HPOS if we are already past TO.
* Update copyright year.Richard M. Stallman1998-01-211-1/+1
|
* (current_column_1): Eliminate argument POS; use PT and PT_BYTE.Richard M. Stallman1998-01-211-11/+10
| | | | | | When doing FETCH_BYTE, use scan_byte. (current_column): Check whether buffer really has multibyte chars, not whether they are enabled.
* (current_column_1, Fmove_to_column):Richard M. Stallman1998-01-021-108/+161
| | | | | | | | | | | | | | | | | 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.
* (invalidate_current_column): Declare it as void.Kenichi Handa1997-11-271-0/+1
|
* (position_indentation): Detect non-breaking space,Karl Heuer1997-11-151-1/+19
| | | | in either single-byte form or multibyte form (using category ' ').
* (compute_motion): Ignore the display table entry for aRichard M. Stallman1997-09-151-1/+2
| | | | base leading code when dealing with multibyte characters.
* (current_column): Update ptr differently at newlineRichard M. Stallman1997-08-071-5/+7
| | | | so that current_column_bol_cache is set properly.
* (compute_motion): Correct the criterion for when toRichard M. Stallman1997-08-021-1/+1
| | | | move back 1 space when we terminate just after continuing the line.
* (compute_motion): Handle display table correctly forKenichi Handa1997-07-251-28/+22
| | | | multibyte characters.
* Fix bugs with inappropriate mixing of Lisp_Object with int.Richard M. Stallman1997-07-041-4/+5
|
* (compute_motion): Use XFASTINT on width_table elts.Richard M. Stallman1997-06-021-2/+2
|
* (compute_motion): Return correctly if skip_invisibleRichard M. Stallman1997-05-271-1/+10
| | | | takes us past TO.
* (compute_motion): When POS >= TO, don't callKenichi Handa1997-03-051-14/+20
| | | | find_before_next_newline() as it assumes POS < TO.
* (current_column_bol_cache): New variable. This makesKarl Heuer1997-02-201-40/+310
| | | | | | | | | | | | | | | | | | | | | | | | | 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".
* (pos_tab_offset): Take the width of the minibuffer prompt into account.Richard M. Stallman1997-01-241-4/+21
| | | | | (vmotion): In calls to compute_motion use a value for tab_offset that is corrected by the minibuffer prompt width.
* (vmotion, compute_motion): Fill in ovstring_chars_done in the return value.Richard M. Stallman1996-10-061-0/+3
|
* Comment change.Richard M. Stallman1996-09-211-5/+0
|
* Change all references from point to PT.Karl Heuer1996-09-011-14/+14
|
* (Fvertical_motion): Doc fix.Karl Heuer1996-07-131-11/+16
|
* (Fvertical_motion): Doc fix.Miles Bader1996-07-061-2/+4
|
* (Fmove_to_column): Go after invis chars at the goal column.Richard M. Stallman1996-06-281-1/+7
|
* (current_column_1): Add declaration.Richard M. Stallman1996-06-231-0/+2
|