974 |
*/ |
*/ |
975 |
DEFUN ("modify-syntax-entry", Fmodify_syntax_entry, Smodify_syntax_entry, 2, 3, |
DEFUN ("modify-syntax-entry", Fmodify_syntax_entry, Smodify_syntax_entry, 2, 3, |
976 |
"cSet syntax for character: \nsSet syntax for %s to: ", |
"cSet syntax for character: \nsSet syntax for %s to: ", |
977 |
doc: /* Set syntax for character C according to string NEWENTRY. |
doc: /* Set syntax for character CHAR according to string NEWENTRY. |
978 |
The syntax is changed only for table SYNTAX_TABLE, which defaults to |
The syntax is changed only for table SYNTAX_TABLE, which defaults to |
979 |
the current buffer's syntax table. |
the current buffer's syntax table. |
980 |
The first character of NEWENTRY should be one of the following: |
The first character of NEWENTRY should be one of the following: |
993 |
used only if the first character is `(' or `)'. |
used only if the first character is `(' or `)'. |
994 |
Any additional characters are flags. |
Any additional characters are flags. |
995 |
Defined flags are the characters 1, 2, 3, 4, b, p, and n. |
Defined flags are the characters 1, 2, 3, 4, b, p, and n. |
996 |
1 means C is the start of a two-char comment start sequence. |
1 means CHAR is the start of a two-char comment start sequence. |
997 |
2 means C is the second character of such a sequence. |
2 means CHAR is the second character of such a sequence. |
998 |
3 means C is the start of a two-char comment end sequence. |
3 means CHAR is the start of a two-char comment end sequence. |
999 |
4 means C is the second character of such a sequence. |
4 means CHAR is the second character of such a sequence. |
1000 |
|
|
1001 |
There can be up to two orthogonal comment sequences. This is to support |
There can be up to two orthogonal comment sequences. This is to support |
1002 |
language modes such as C++. By default, all comment sequences are of style |
language modes such as C++. By default, all comment sequences are of style |
1003 |
a, but you can set the comment sequence style to b (on the second character |
a, but you can set the comment sequence style to b (on the second character |
1004 |
of a comment-start, or the first character of a comment-end sequence) using |
of a comment-start, or the first character of a comment-end sequence) using |
1005 |
this flag: |
this flag: |
1006 |
b means C is part of comment sequence b. |
b means CHAR is part of comment sequence b. |
1007 |
n means C is part of a nestable comment sequence. |
n means CHAR is part of a nestable comment sequence. |
1008 |
|
|
1009 |
p means C is a prefix character for `backward-prefix-chars'; |
p means CHAR is a prefix character for `backward-prefix-chars'; |
1010 |
such characters are treated as whitespace when they occur |
such characters are treated as whitespace when they occur |
1011 |
between expressions. */) |
between expressions. |
1012 |
|
usage: (modify-syntax-entry CHAR NEWENTRY &optional SYNTAX-TABLE) */) |
1013 |
(c, newentry, syntax_table) |
(c, newentry, syntax_table) |
1014 |
Lisp_Object c, newentry, syntax_table; |
Lisp_Object c, newentry, syntax_table; |
1015 |
{ |
{ |