1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-08 12:40:49 -08:00
Commit graph

70 commits

Author SHA1 Message Date
Richard M. Stallman
b9145dbb57 (Fforward_comment): When count1 is negative, return nil if FROM reaches STOP. 1997-07-24 07:40:26 +00:00
Richard M. Stallman
44d8a79389 (init_syntax_once): Convert Fmake_vector argument to Lisp_Integer. 1997-07-12 06:38:27 +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
4c92063301 (scan_sexps_forward): Split up a complex if-test. 1997-06-29 00:33:39 +00:00
Richard M. Stallman
e704cb4bc6 (Fsyntax_table_p, check_syntax_table): Use EQ.
(Fmodify_syntax_entry): Use XINT to access c.
(describe_syntax): Use XINT to access first.
1997-06-02 02:21:48 +00:00
Richard M. Stallman
ae03af3444 (Fforward_comment): Handle unmatched two-character comment starters. 1997-05-31 18:30:56 +00:00
Richard M. Stallman
ea315ed6e4 (back_comment): Detect 2-char comment starts properly.
New arg COMSTYLE; callers changed.
1997-05-31 18:16:22 +00:00
Richard M. Stallman
e41819d480 (describe_syntax_1): Pass new args to describe_vector. 1997-05-13 19:36:15 +00:00
Richard M. Stallman
4c8535eb4d (skip_chars): Fix previous change in syntax/backward case. 1997-04-28 00:49:41 +00:00
Richard M. Stallman
7e68b0eaf3 (skip_chars): Merge mule changes back in. 1997-04-25 21:59:44 +00:00
Richard M. Stallman
b745025d2d Update copyright year. 1997-04-15 04:56:39 +00:00
Richard M. Stallman
195d13612d (SYNTAX_ENTRY_VIA_PROPERTY): Set to take `syntax-table'
text property into account when doing SYNTAX (c).
(ST_COMMENT_STYLE, ST_STRING_STYLE): New codes to denote
delimiters for new types of strings and comments.
(Vparse_sexp_lookup_properties): New variable.
(struct lisp_parse_state): Comment updated.
(gl_state): New global variable.
(update_syntax_table): New function.
(char_quoted): Move earlier, update gl_state when needed.
(find_defun_start): Update gl_state when needed.
(back_comment): New function.
(Scomment_fence, Sstring_fence): New delimeter char classes
denoted by `!' and `|'.
(Fchar_syntax, Fmatching_paren): Update gl_state to whole-bufferstate.
(scan_words): update gl_state when needed.
(Fskip_chars_forward): Move from search.c.
(Fskip_chars_backward): Move from search.c.
(Fskip_syntax_forward): Move from search.c.
(Fskip_syntax_backward): Move from search.c.
(skip_chars): Move from search.c.
(Fforward_comment, scan_lists): Update gl_state when needed.
Handle Scomment_fence, Sstring_fence.
(Fbackward_prefix_chars) Update gl_state when needed.
(scan_sexps_forward): Update gl_state when needed.
Handle Scomment_fence, Sstring_fence.  If comment_stop==-1, stop at start
or end of comment or string.
(Fparse-partial-sexp): Doc fix.
(syms_of_syntax): Move initialization of skip* from search.c.
1997-04-15 04:53:58 +00:00
Kenichi Handa
78f9a1f703 (init_syntax_once): Add trick to avoid compiler warning
of "comparison is always 1 ...".
1997-02-28 01:38:57 +00:00
Kenichi Handa
908b7fea57 (describe_syntax): Handle the case that the argument
VALUE is char-table.
1997-02-27 07:47:24 +00:00
Karl Heuer
93da5fff9b Include charset.h and category.h.
(Vsyntax_code_object): New variable.
(Fmodify_syntax_entry): Handle multibyte characters.  A multibyte
character in matching parenthesis is also handled correctly.  Use
shared object in the vector Vsyntax_code_object for an ASCII
character.
(describe_syntax): Handle a multibyte character in matching
parenthesis.
(describe_syntax_1): Describe also parent syntax tables.
(scan_words, Fforward_comment): Handle multibyte characters.
(scan_lists, char_quoted, Fbackward_prefix_chars): Likewise.
(scan_sexps_forward): Likewise.
(init_syntax_once): Initialize Vsyntax_code_object.
Initialize Vstandard_syntax_table by share objects in
Vsyntax_code_object.
(syms_of_syntax): Staticpro Vsyntax_code_object.
1997-02-20 06:56:29 +00:00
Richard M. Stallman
7bf5e9e404 (scan_lists): Signal errors using scan-error.
(syms_of_syntax): Set up Qscan_error.
1997-02-10 09:47:12 +00:00
Karl Heuer
6ec8bbd20d Change all references from point to PT. 1996-09-01 19:15:05 +00:00
Richard M. Stallman
0f86732408 (Fcopy_syntax_table): Set default to nil.
Set the parent only if it was nil.
1996-02-24 20:03:07 +00:00
Erik Naggum
3b7ad313e0 Update FSF's address in the preamble. 1996-01-15 09:18:04 +00:00
Erik Naggum
2203e1e8b7 (Fsyntax_table_p, Fchar_syntax, Fmatching_paren, Fmodify_syntax_entry):
Harmonize arguments with documentation.
1996-01-09 00:33:54 +00:00
Richard M. Stallman
d1be9f0f0d (check_syntax_table): Check the purpose slot.
Use Qsyntax_table_p for the error message.

(Fmodify_syntax_entry): Don't fail to init MATCH.
1995-11-11 20:28:26 +00:00
Richard M. Stallman
5ebaddf5f9 (Qsyntax_table): New variable.
(init_syntax_once): Call Fmake_char_table the new way.
Set up Qsyntax_table.
(Fsyntax_table_p): Check the `purpose' field.
1995-10-14 05:52:39 +00:00
Richard M. Stallman
8ea151b23b (describe_syntax): Handle new syntax-table data format.
(Fmodify_syntax_entry, init_syntax_once): Use SET_RAW_SYNTAX_ENTRY.
Handle new syntax-table data format.
(check_syntax_table): Use CHECK_CHAR_TABLE.  Now static.
Don't return anything; callers changed.
(Fcopy_syntax_table): Use Fcopy_sequence.
(Fchar_syntax, Fmatching_paren, Fforward_comment): Copy complex args
to SYNTAX into variables before using them.
(Fsyntax_table_p): Accept any char-table.
(syntax_parent_lookup): New function.
(syntax_temp): New variable.
1995-10-07 21:59:28 +00:00
Richard M. Stallman
308444156d (scan_sexps_forward): Fix previous change. 1995-08-19 17:00:34 +00:00
Richard M. Stallman
69b07ee13a (scan_sexps_forward): Use the initial depth
in the starting state for tracking when we reach TARGETDEPTH.
1995-08-16 15:03:24 +00:00
Karl Heuer
5588734e1a (describe_syntax_1): Pass new arg to describe_vector. 1995-05-29 06:07:10 +00:00
Karl Heuer
ee384542b3 (scan_lists): Make stringterm an unsigned char. 1995-05-25 18:17:25 +00:00
Richard M. Stallman
b7e6e61235 (Fforward_comment): Always clear immediate_quit for return. 1995-03-09 02:58:36 +00:00
Karl Heuer
0220c51857 Change all occurences of SWITCH_ENUM_BUG to use SWITCH_ENUM_CAST instead. 1995-01-18 20:52:48 +00:00
Karl Heuer
36cd82fe63 (describe_syntax_1): Set help-mode in *Help* buffer. 1994-11-09 05:56:23 +00:00
Richard M. Stallman
5a28e48c70 (scan_sexps_forward): At startincomment,
do notice a 2-char comment ender that straddles FROM.
1994-10-12 08:24:47 +00:00
Jim Blandy
be5357e28e * syntax.c (find_defun_start): Call scan_buffer with new args. 1994-10-08 22:15:36 +00:00
Karl Heuer
247e20a8ba (Fmodify_syntax_entry): Don't use XFASTINT as an lvalue. 1994-10-04 17:32:17 +00:00
Karl Heuer
1e142fb79d (Fcopy_syntax_table, Fmodify_syntax_entry, scan_lists, init_syntax_once):
Don't use XFASTINT as an lvalue.
1994-10-04 16:13:34 +00:00
Karl Heuer
330cf232bf (Fsyntax_table_p, describe_syntax): Use type test macros. 1994-09-27 01:20:25 +00:00
Richard M. Stallman
2eb1d6a2a2 (Fforward_comment): Do increment from, when reaching
single-char comment end going forward.
1994-09-17 19:49:03 +00:00
Richard M. Stallman
4841063fd9 (scan_lists, Fforward_comment): When moving backward over
a comment, ignore a comment-starter that overlaps the comment-ender.
1994-06-24 21:52:16 +00:00
Richard M. Stallman
a8bd7cd809 (Fmatching_paren): Fix typo. 1994-06-20 17:07:22 +00:00
Richard M. Stallman
beefa22e7b (Fmatching_paren): New function.
(Fchar_syntax): Pass arg directly to SYNTAX, no masking.
1994-06-19 18:20:52 +00:00
Richard M. Stallman
c01f7ec05d (scan_lists): Get error if eob within comment with depth!=0. 1994-06-16 15:03:04 +00:00
Karl Heuer
3a22ee3595 Update copyright. 1994-05-04 02:41:09 +00:00
Karl Heuer
048822963e (Fforward_comment): Do the right thing at eob. 1994-03-02 05:31:15 +00:00
Richard M. Stallman
45eb8d9d68 (find_defun_start): Pass new arg to scan_buffer. 1994-02-03 05:05:42 +00:00
Richard M. Stallman
6cb71bf6c6 (describe_syntax): Handle Sinherit.
(syntax_code_spec, syntax_spec_code): Add entry for @ and Sinherit.
1994-01-05 20:33:23 +00:00
Richard M. Stallman
abae13bd2c (Fmodify_syntax_entry): Doc fix. 1993-12-24 23:12:07 +00:00
Richard M. Stallman
7fc8191e85 (Fforward_comment): On backward scan, exit inner loop
after we reach beginning of a comment.
Check the SYNTAX_COMMENT_STYLE of a one-character comment ender.
(scan_lists): Check the SYNTAX_COMMENT_STYLE
of a one-character comment ender.
1993-11-10 19:45:50 +00:00
Roland McGrath
18160b98ce Include <config.h> instead of "config.h". 1993-09-10 06:15:46 +00:00
Richard M. Stallman
af50f9e585 Doc fix. 1993-08-05 17:38:20 +00:00
Richard M. Stallman
ec11639d93 Doc fix. 1993-08-01 08:42:46 +00:00
Richard M. Stallman
58980a95f8 (scan_sexps_forward): Delete extra Fcdr when analyzing OLDSTATE. 1993-07-27 16:49:34 +00:00