diff options
| author | Pavel Janík | 2001-10-23 12:01:58 +0000 |
|---|---|---|
| committer | Pavel Janík | 2001-10-23 12:01:58 +0000 |
| commit | a50a10a02db37e323572c469d376674f5449c0ac (patch) | |
| tree | 9efd0a717910f358116031fafe3528c128b7ee31 /src | |
| parent | 03195c584db36c2d78e5e0f36296f19143b55604 (diff) | |
| download | emacs-a50a10a02db37e323572c469d376674f5449c0ac.tar.gz emacs-a50a10a02db37e323572c469d376674f5449c0ac.zip | |
(modify-syntax-entry): Fix argument names (use CHAR instead of C) and usage.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 9 | ||||
| -rw-r--r-- | src/syntax.c | 19 |
2 files changed, 19 insertions, 9 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 7dac489349c..f8f0ac3866c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2001-10-23 Pavel Jan,Bm(Bk <Pavel@Janik.cz> | ||
| 2 | |||
| 3 | * syntax.c: Fix argument names and usage. | ||
| 4 | |||
| 5 | * editfns.c: Fix argument names and usage. | ||
| 6 | |||
| 7 | * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top', | ||
| 8 | `left', `max_width' and `max_height'. | ||
| 9 | |||
| 1 | 2001-10-23 Gerd Moellmann <gerd@gnu.org> | 10 | 2001-10-23 Gerd Moellmann <gerd@gnu.org> |
| 2 | 11 | ||
| 3 | * xdisp.c (display_line): For a tab continued to the next line, | 12 | * xdisp.c (display_line): For a tab continued to the next line, |
diff --git a/src/syntax.c b/src/syntax.c index 72df6697602..c2a7c733734 100644 --- a/src/syntax.c +++ b/src/syntax.c | |||
| @@ -974,7 +974,7 @@ text property. */) | |||
| 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: |
| @@ -993,22 +993,23 @@ 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 | { |