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

169 commits

Author SHA1 Message Date
Andreas Schwab
57951c2efa (skip_chars): Treat '-' at end of string as ordinary
character.
2004-01-06 16:11:00 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Richard M. Stallman
29e16385d0 (Fforward_word): Argument changed to optional. Set default value to 1. 2003-08-17 00:25:17 +00:00
Richard M. Stallman
1fd1cc2fc2 (find_defun_start): When open_paren_in_column_0_is_defun_start,
return beginning of buffer.
2003-05-17 12:50:31 +00:00
Kenichi Handa
4e837cd04f (skip_chars): Fix previous change. 2003-04-24 23:25:09 +00:00
Kenichi Handa
9af7511a2a (skip_chars): Make the code faster by using the common
technique of *p, *stop, and *endp.
2003-04-24 01:28:43 +00:00
Stefan Monnier
d070eb221d (back_comment): Only check nestedness of 2nd char if needed. 2003-02-25 01:36:23 +00:00
Juanma Barranquero
177c0ea743 Trailing whitespace deleted. 2003-02-04 14:56:31 +00:00
Dave Love
b222e4153c (Fskip_chars_forward)
(open-paren-in-column-0-is-defun-start): Doc fix.
2003-01-31 15:39:48 +00:00
Dave Love
ddc447fcff (scan_sexps_forward):
Declare all args (per C99).
2002-11-14 14:17:40 +00:00
Stefan Monnier
3ceb4629cf (scan_sexps_forward): Undo last patch.
Use a more obvious fix: check eob before updating the syntax table.
2002-11-12 20:41:14 +00:00
Stefan Monnier
79bd6490a2 (scan_sexps_forward): Update syntax table before reading
a char rather than after so we don't update the table past eob.
2002-11-09 22:20:02 +00:00
Dave Love
ee648c1188 (Fforward_comment): Doc fix. 2002-10-30 19:17:31 +00:00
Juanma Barranquero
7d0393cf12 Fix typo in comment. 2002-10-18 10:09:43 +00:00
Stefan Monnier
240c43e89c (scan_lists): Don't get fooled by a symbol ending with a backslash-quoted char.
(scan_lists, scan_sexps_forward): Pacify the compiler.
2002-10-14 04:44:24 +00:00
Ken Raeburn
2e567bd3ec (Fstring_to_syntax, skip_chars): Treat Lisp string
contents as const.
2002-07-19 14:27:24 +00:00
Ken Raeburn
d5db40779d Most uses of XSTRING combined with STRING_BYTES or indirection changed to
SCHARS, SBYTES, STRING_INTERVALS, SREF, SDATA; explicit size_byte references
left unchanged for now.
2002-07-15 00:01:34 +00:00
Stefan Monnier
394e256115 (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
(describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
2001-11-26 23:37:01 +00:00
Stefan Monnier
a395ef6aae (describe_syntax): Add dummy arg.
(describe_syntax_1): Update call to describe_vector.
2001-11-19 22:47:32 +00:00
Stefan Monnier
62abe9cbe0 (describe_syntax): New wrapper.
(Finternal_describe_syntax_value): Rename from describe_syntax.
Don't insert space at front and \n at the end.
(syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
2001-11-02 23:27:02 +00:00
Pavel Janík
b782650360 Update usage of CHECK_ macros (remove unused second argument). 2001-11-02 20:46:55 +00:00
Stefan Monnier
2c9e190074 Fix comment ending. 2001-10-25 04:18:22 +00:00
Pavel Janík
a50a10a02d (modify-syntax-entry): Fix argument names (use CHAR instead of C) and usage. 2001-10-23 12:01:58 +00:00
Pavel Janík
fdb82f9337 Change doc-string comments to new style' [w/doc:' keyword]. 2001-10-20 20:56:10 +00:00
Stefan Monnier
bb0de08420 (update_syntax_table): Simplify.
(Fforward_comment): Don't skip quoted chars when going backward.
2001-10-12 01:37:54 +00:00
Stefan Monnier
e35f6ff793 Include keymap.h. 2001-10-10 16:05:21 +00:00
Richard M. Stallman
7cc80f0aef Comment change. 2001-09-08 14:30:12 +00:00
Eli Zaretskii
db9f48c3ca Fixed a typo in a comment. 2001-06-15 07:31:16 +00:00
Stefan Monnier
423e705d9c (update_syntax_table): Check that oldi has the same
properties as old_prop before deciding not to invalidate.
2001-05-01 13:49:44 +00:00
Stefan Monnier
42ebfa3190 (scan_lists): Check that the right quote char has the
right Sstring syntax when jumping over strings.
(init_syntax_once): Use Smax rather than 13.
2000-12-09 20:17:59 +00:00
Kenichi Handa
7ae339a717 *** empty log message *** 2000-10-24 00:09:09 +00:00
Stefan Monnier
d671382e93 (describe_syntax): Add code for comment and string fences. 2000-10-15 22:12:01 +00:00
Stefan Monnier
c65adb44b0 (Fstring_to_syntax): New function extracted from Fmodify_syntax_entry.
(Fmodify_syntax_entry): Use it and document the ! and | fences.
(skip_chars, Fforward_comment): Remove unused variables.
(syms_of_syntax): Add defsubr for string-to-syntax.
2000-10-15 21:42:41 +00:00
Eli Zaretskii
ef6d59c99e Fix wording in a comment. 2000-10-15 05:55:40 +00:00
Kenichi Handa
465cf84ccd (skip_chars): Change the way of handling a range from unibyte char to
multibyte char.
2000-10-12 02:54:26 +00:00
Stefan Monnier
3f679f55a2 (prev_char_comstart_first): Remove.
(back_comment): Check two-char comment markers more carefully
to better handle overlapping cases like *//* or /* */* */ ...
Match nestedness of ender/starter.
2000-10-02 22:15:27 +00:00
Stefan Monnier
abf8a9ffcc (forw_comment): Match nestedness of ender/starter.
(Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
2000-10-02 21:59:00 +00:00
Kenichi Handa
9690d0263a (skip_chars): Handle negation correctly. 2000-09-28 01:42:31 +00:00
Stefan Monnier
f7c436c1c8 (back_comment): Detect cases where a comment-starter is
actually inside another comment as in:   /* a // b */ c // d \n.
Make it clear that `comstart_pos' is unused for nested comments.
2000-08-27 17:44:59 +00:00
Kenichi Handa
e39091b6dd * syntax.c (skip_chars): Fix previous change. Make the handling of
unibyte string consistent with that of regex search.
2000-08-07 05:57:08 +00:00
Kenichi Handa
82d497fc5c (skip_chars): Fix handling of multibyte<->unibyte conversion. 2000-08-05 01:45:10 +00:00
Gerd Moellmann
688351f25d (skip_chars): Fix typo in error message. 2000-08-04 15:07:44 +00:00
Gerd Moellmann
070fe99cf7 (Fforward_word): Add last arg nil in call of
Fconstrain_to_field.
2000-07-25 09:20:27 +00:00
Dave Love
89a1d3feb1 (back_comment): Add null default in switch for pcc. 2000-07-14 17:49:13 +00:00
Stefan Monnier
02010917df (back_comment): Use one switch rather than a few `if's.
Obey open_paren_in_column_0_is_defun_start.
When reverting to the `slow' method, try to nicely handle the case
of nested comments by checking that the comment-starter we found
does indeed match the comment-ender.
(scan_sexps_forward, scan_sexps_forward):
Ignore excessive opening parenthesis rather than throwing an error.
2000-07-12 01:08:46 +00:00
Stefan Monnier
3ee5041cf5 (back_comment): Simplify string-parity counting (with
the added benefit of handling multiple string-styles as long as
they are not nested).
Jump to the slow code as soon as a comment starter is found in
a "string_lossage" position.  Fixes the case:  " /* " /* " */.
2000-06-21 14:57:11 +00:00
Stefan Monnier
d355bd8ae6 (scan_sexps_forward):
Check the comstyle of single-char comment-starters.
Clarify control-flow around the Scomment case.
2000-06-20 22:49:34 +00:00
Stefan Monnier
e6365855eb (describe_syntax): Recognize the `n'estable bit.
(Fforward_comment, scan_lists):
Check the comstyle of single-char comment-starters.
(scan_sexps_forward): Don't try to recognize `half comment-enders' if
we're just at the beginning of the comment (f.ex with (*) ... (*)).
2000-06-20 22:34:00 +00:00
Dave Love
943e731c81 (Fparse_partial_sexp): Doc fix. 2000-06-19 22:22:47 +00:00
Gerd Moellmann
4467eb94e5 (find_defun_start): Move test for
open_paren_in_column_0_is_defun_start outside of the loop.
2000-05-29 16:16:45 +00:00