comparison src/syntax.c @ 40205:d13b14b50715

(modify-syntax-entry): Fix argument names (use CHAR instead of C) and usage.
author Pavel Janík <Pavel@Janik.cz>
date Tue, 23 Oct 2001 12:00:50 +0000
parents 6b389fb978bc
children 0e7059267f7e
comparison
equal deleted inserted replaced
40204:2ee3c7f9fb40 40205:d13b14b50715
972 /* I really don't know why this is interactive 972 /* I really don't know why this is interactive
973 help-form should at least be made useful whilst reading the second arg 973 help-form should at least be made useful whilst reading the second arg
974 */ 974 */
975 DEFUN ("modify-syntax-entry", Fmodify_syntax_entry, Smodify_syntax_entry, 2, 3, 975 DEFUN ("modify-syntax-entry", Fmodify_syntax_entry, Smodify_syntax_entry, 2, 3,
976 "cSet syntax for character: \nsSet syntax for %s to: ", 976 "cSet syntax for character: \nsSet syntax for %s to: ",
977 doc: /* Set syntax for character C according to string NEWENTRY. 977 doc: /* Set syntax for character CHAR according to string NEWENTRY.
978 The syntax is changed only for table SYNTAX_TABLE, which defaults to 978 The syntax is changed only for table SYNTAX_TABLE, which defaults to
979 the current buffer's syntax table. 979 the current buffer's syntax table.
980 The first character of NEWENTRY should be one of the following: 980 The first character of NEWENTRY should be one of the following:
981 Space or - whitespace syntax. w word constituent. 981 Space or - whitespace syntax. w word constituent.
982 _ symbol constituent. . punctuation. 982 _ symbol constituent. . punctuation.
991 Two-character sequences are represented as described below. 991 Two-character sequences are represented as described below.
992 The second character of NEWENTRY is the matching parenthesis, 992 The second character of NEWENTRY is the matching parenthesis,
993 used only if the first character is `(' or `)'. 993 used only if the first character is `(' or `)'.
994 Any additional characters are flags. 994 Any additional characters are flags.
995 Defined flags are the characters 1, 2, 3, 4, b, p, and n. 995 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. 996 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. 997 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. 998 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. 999 4 means CHAR is the second character of such a sequence.
1000 1000
1001 There can be up to two orthogonal comment sequences. This is to support 1001 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 1002 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 1003 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 1004 of a comment-start, or the first character of a comment-end sequence) using
1005 this flag: 1005 this flag:
1006 b means C is part of comment sequence b. 1006 b means CHAR is part of comment sequence b.
1007 n means C is part of a nestable comment sequence. 1007 n means CHAR is part of a nestable comment sequence.
1008 1008
1009 p means C is a prefix character for `backward-prefix-chars'; 1009 p means CHAR is a prefix character for `backward-prefix-chars';
1010 such characters are treated as whitespace when they occur 1010 such characters are treated as whitespace when they occur
1011 between expressions. */) 1011 between expressions.
1012 usage: (modify-syntax-entry CHAR NEWENTRY &optional SYNTAX-TABLE) */)
1012 (c, newentry, syntax_table) 1013 (c, newentry, syntax_table)
1013 Lisp_Object c, newentry, syntax_table; 1014 Lisp_Object c, newentry, syntax_table;
1014 { 1015 {
1015 CHECK_NUMBER (c, 0); 1016 CHECK_NUMBER (c, 0);
1016 1017