summaryrefslogtreecommitdiff
path: root/src/indent.c
Commit message (Collapse)AuthorAgeFilesLines
* (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
|
* Make current-column, move-to-column and current-indentationRichard M. Stallman1996-06-231-49/+200
| | | | | | | | | handle invisible chars (both text properties and overlays). (skip_invisible): New function. (Fmove_to_column): Use skip_invisible. Get rid of `retry' label. (compute_motion): Use skip_invisible. (current_column_1): New function. (current_column): Use current_column_1 if might have invisible text.
* (compute_motion): When calling Fget_char_property,Karl Heuer1996-05-221-4/+8
| | | | don't pass window if window is displaying the wrong buffer.
* (compute_motion): Pass window to Fget_char_property.Richard M. Stallman1996-04-211-2/+3
|
* Update FSF's address in the preamble.Erik Naggum1996-01-151-1/+2
|
* (Findent_to): Harmonize arguments with documentation.Erik Naggum1996-01-091-10/+10
|
* (Fmove_to_column): Doc fix.Richard M. Stallman1995-11-101-1/+13
| | | | | (compute_motion): Update next_boundary when we skip to next newline.
* (BITS_PER_SHORT, BITS_PER_INT, BITS_PER_LONG):Karl Heuer1995-10-311-3/+3
| | | | Rename from SHORTBITS, INTBITS, LONGBITS.
* (buffer_display_table): Use DISP_TABLE_P.Richard M. Stallman1995-10-111-13/+12
| | | | | | | | | Return type is now struct Lisp_Char_Table * since display tables are now char-tables. (character_width, disptab_matches_widthtab, recompute_width_table) (current_column, Fmove_to_column, compute_motion): Corresponding changes.
* (Fmove_to_column): Make it interactive.Richard M. Stallman1995-10-051-1/+1
|
* Update GPL to version 2.Karl Heuer1995-06-151-1/+1
|
* (Fvertical_motion): Add cast.Karl Heuer1995-06-061-1/+1
|
* (compute_motion): Handle overlay strings.Karl Heuer1995-05-181-154/+166
| | | | New arg DID_MOTION. All callers changed.