aboutsummaryrefslogtreecommitdiffstats
path: root/src/syntax.c
Commit message (Collapse)AuthorAgeFilesLines
* (multibyte_syntax_as_symbol): New variable.Kenichi Handa2000-02-231-9/+32
| | | | | | | | | (syms_of_syntax): Declare it as a Lisp variable. (SYNTAX_WITH_MULTIBYTE_CHECK): New macro. (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are nonzero, treat all multibyte characters as symbol. (init_syntax_once): Give syntax `word' to all mutlbiyte characters.
* (Fforward_comment): Undo the previous change, since cc-modeStefan Monnier2000-02-171-3/+7
| | | | depends on the previous behavior.
* (back_comment): Make sure we only consider comment-startersStefan Monnier2000-02-151-6/+23
| | | | | | | | of the relevant style and return -1 in case of a failure to find the beginning of the comment. (Fforward_comment): If back_comment fails, go back to the position just after the comment-end. (scan_lists): Add comment describing a very minor bug.
* (Fforward_word): Undo previous change.Gerd Moellmann2000-01-011-4/+3
|
* (Fforward_word): Notice field boundaries only ifGerd Moellmann2000-01-011-4/+6
| | | | inhibit-field-text-motion is nil.
* * callproc.c (strerror): Remove decl.Paul Eggert1999-11-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fileio.c (strerror): Likewise. * process.c (strerror): Likewise. * emacs.c (strerror): Likewise. (Vsystem_messages_locale): Renamed from Vmessages_locale. All uses changed. (Vprevious_system_messages_locale): Likewise, from Vprevious_messages_locale. (Vsystem_time_locale): Likewise, from Vtime_locale. (Vprevious_system_time_locale): Likewise, from Vprevious_time_locale. (ABORT_RETURN_TYPE): New macro. (abort): Return type is now ABORT_RETURN_TYPE. (main): Always invoke init_signals, even if POSIX_SIGNALS is not defined. (syms_of_emacs): messages-locale -> system-messages-locale, previous-messages-locale -> previous-system-messages-locale, time-locale -> system-time-locale, previous-time-locale -> previous-system-time-locale. * gmalloc.c (PP, __ptr_t): Assume ANSI C if STDC_HEADERS is defined. (const): Do not define; that's config.h's job. (<limits.h>): Include if HAVE_LIMITS_H is defined. (CHAR_BIT): Move test for definedness outside of limits.h condition. (<stddef.h>): Include if STDC_HEADERS is defined. (FREE_RETURN_TYPE): New macro. (free): Return type is now FREE_RETURN_TYPE. * lisp.h (synchronize_system_time_locale): Renamed from synchronize_time_locale. All uses changed. (synchronize_system_messages_locale): Likewise, from synchronize_messages_locale. * process.c (sys_siglist): Remove. * syntax.c (scan_sexps_forward): Use abort, not assert. * sysdep.c (my_sys_siglist): New var. (sys_siglist): New macro. Remove old initialized vars of same name. (init_signals): Initialize sys_siglist. * xfns.c (abort): Remove decl; stdlib.h now does this.
* (Fforward_word): Handle fields even if would have hitRichard M. Stallman1999-11-091-9/+7
| | | | an edge of the buffer. Return nil if affected by fields.
* Remove whitespace after open or in front of closing parentheses.Gerd Moellmann1999-11-011-7/+7
|
* (Fforward_word): Supply new ESCAPE_FROM_EDGE parameterGerd Moellmann1999-10-171-10/+5
| | | | | | to Fconstrain_to_field. (Fforward_word): Likewise. Constrain to any field.
* (update_syntax_table, find_defun_start, back_comment,Gerd Moellmann1999-09-201-20/+21
| | | | | | describe_syntax, skip_chars): Remove unused variables. (back_comment, forw_comment): Add braces to if-statement with if-else as dependent statement.
* Use XCAR and XCDR instead of explicit member access.Ken Raeburn1999-09-131-2/+2
|
* (Fforward_word): Use prompt_end_charpos insteadGerd Moellmann1999-09-121-2/+2
| | | | of minibuffer_prompt_length.
* (Fforward_word): Stop at a mini-buffer prompt endGerd Moellmann1999-09-021-11/+10
| | | | in both directions. Extend documentation.
* (lisp_parse_state, back_comment, Fmodify_syntax_entry)Richard M. Stallman1999-08-291-134/+225
| | | | | | (Fforward_comment, scan_lists, scan_sexps_forward) (Fparse_partial_sexp): Add support for nested comments. (forw_comment): New subroutine used in them.
* (Fforward_word): If in a mini-buffer and movingGerd Moellmann1999-08-251-0/+11
| | | | | backwards, stop in front of the prompt to prevent accidentially moving into the read-only prompt.
* (Fforward_comment): Set comstyle for Scomment_fence.Karl Heuer1999-08-161-1/+3
|
* (Fparse_partial_sexp): Correct test for element 8 to beDave Love1999-05-141-1/+2
| | | | non-nil.
* (scan_sexps_forward): Delete duplicate codeKarl Heuer1999-01-221-2/+9
| | | | | to set prev_from_syntax, above start of main loop. At startinstring, check syntax when checking for a match.
* (syms_of_syntax): Fix the setup of Qscan_error.Richard M. Stallman1998-10-201-1/+1
|
* (scan_lists): Bring FROM back into range BEGV...ZV.Richard M. Stallman1998-10-081-1/+6
|
* (scan_sexps_forward): Set up the syntax table scanningRichard M. Stallman1998-08-101-4/+10
| | | | stuff before jumping into the loop.
* (Fmodify_syntax_entry): Use macro STRING_BYTES to getKenichi Handa1998-06-231-2/+2
| | | | byte size of a string.
* (skip_chars): Don't examine STRING before verifying that it is a string.Richard M. Stallman1998-06-141-3/+5
| | | | (scan_lists): Use prev_char_comend_first, not ...comstart...
* (Fforward_comment): Properly compute BYTEPOS arg to char_quoted.Richard M. Stallman1998-06-111-3/+2
|
* (struct lisp_parse_state): New field, levelstarts.Richard M. Stallman1998-06-081-2/+21
| | | | | (scan_sexps_forward): Use 10th elt of STATE to set levelstarts. (parse-partial-sexp): Add 10th elt to return value.
* (scan_lists): Properly skip the comment-fence characterRichard M. Stallman1998-06-061-43/+88
| | | | | | | | | | | | that ends a comment, when moving forward. (Fbackward_prefix_chars): Return immediately if point is at BEGV. (prev_char_comend_first): New function. (back_comment): Use that. Carefully update syntax table position for each character that is fetched. (Fforward_comment): Likewise. (scan_lists): Likewise. (prev_char_comstart_first): New function.
* (skip_chars): Fix previous change.Kenichi Handa1998-05-181-9/+10
|
* (skip_chars): Fix bug in handling a range whichKenichi Handa1998-05-181-8/+20
| | | | contains multibyte characters.
* (skip_chars): When fetching char after \,Richard M. Stallman1998-05-131-3/+7
| | | | don't fail to set c_leading_code.
* (scan_lists, scan_sexps_forward): Move complex expressionsRichard M. Stallman1998-05-091-4/+17
| | | | outside of the switch statement.
* Fix -Wimplicit warnings.Andreas Schwab1998-04-141-0/+3
|
* (Fbackward_prefix_chars): Set point properly while scanning.Richard M. Stallman1998-03-181-17/+26
| | | | | | | (scan_sexps_forward): Make INC_FROM do UPDATE_SYNTAX_TABLE_FORWARD. Delete the explicit calls to UPDATE_SYNTAX_TABLE_FORWARD. Also set prev_from_syntax (new local var). Test that in the loop, instead of fetching syntax of the previous char.
* (update_syntax_table): Properly update `position' field of used intervals.Richard M. Stallman1998-03-021-0/+15
|
* (update_syntax_table): Fix calculations using offset.Karl Heuer1998-02-221-26/+26
| | | | (skip_chars): Fix loop termination condition.
* (skip_chars): Use INC_POS instead of INC_BOTH.Richard M. Stallman1998-02-161-34/+36
| | | | | | | | (Fforward_comment): Always use both FROM and FROM_BYTE to set point. Use dec_bytepos not DEC_POS. (scan_lists): Handle unibyte buffers when decrementing temp_pos. (INC_FROM): Use INC_BOTH. (inc_bytepos, dec_bytepos): In unibyte mode, just increment bytepos.
* (back_comment): Move the find_defun_start callRichard M. Stallman1998-01-251-4/+19
| | | | | | out of the scan_sexps_forward call. No need to call find_defun_start if we found the defun start in the initial scan.
* (skip_chars): Use unibyte_char_to_multibyte,Richard M. Stallman1998-01-211-5/+2
|
* (skip_chars): Fix test for end of string, looking for `-'.Karl Heuer1998-01-181-11/+16
| | | | | (back_comment): Don't allow quoting a comment-end. (scan_lists): Likewise.
* (skip_chars): Handle multibyte and unibyte stringsRichard M. Stallman1998-01-091-31/+57
| | | | for either kind of buffer. Scan string by bytes and chars.
* (scan_sexps_forward): Additional arg FROM_BYTE. Calls changed.Richard M. Stallman1998-01-011-494/+325
| | | | | | | | | | | | | | | | (find_defun_start): Additional arg POS_BYTE. Save final byte pos in find_start_value_byte. (find_start_value_byte): New variable. (Fforward_comment): Scan by bytes and chars. (Fbackward_prefix_chars): Scan by bytes and chars. (scan_words, scan_sexps_forward): Scan bytes as well as chars. (skip_chars, scan_lists): Scan by bytes and chars. Now static. (char_quoted): Take charpos and bytepos as args. (back_comment): Likewise. (update_syntax_table): Arg renamed. (inc_bytepos, dec_bytepos): New functions.
* (Fparse_partial_sexp): Return nil for 9th elementRichard M. Stallman1997-12-211-17/+19
| | | | whenever not inside a string or a comment.
* Comment and whitespace changes.Richard M. Stallman1997-12-211-21/+23
|
* (back_comment): Handle 2-char comment startsKarl Heuer1997-11-231-17/+12
| | | | when reaching the first of the pair.
* (skip_chars): Check type of `string' before using it.Karl Heuer1997-11-201-2/+2
|
* (Fforward_comment): When count1 is negative, return nil if FROM reaches STOP.Richard M. Stallman1997-07-241-1/+7
|
* (init_syntax_once): Convert Fmake_vector argument to Lisp_Integer.Richard M. Stallman1997-07-121-1/+1
|
* Fix bugs with inappropriate mixing of Lisp_Object with int.Richard M. Stallman1997-07-041-3/+3
|
* (scan_sexps_forward): Split up a complex if-test.Richard M. Stallman1997-06-291-4/+18
|
* (Fsyntax_table_p, check_syntax_table): Use EQ.Richard M. Stallman1997-06-021-6/+6
| | | | | (Fmodify_syntax_entry): Use XINT to access c. (describe_syntax): Use XINT to access first.
* (Fforward_comment): Handle unmatched two-character comment starters.Richard M. Stallman1997-05-311-0/+11
|