Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
a50a10a0
Commit
a50a10a0
authored
Oct 23, 2001
by
Pavel Janík
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(modify-syntax-entry): Fix argument names (use CHAR instead of C) and usage.
parent
03195c58
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
9 deletions
+19
-9
src/ChangeLog
src/ChangeLog
+9
-0
src/syntax.c
src/syntax.c
+10
-9
No files found.
src/ChangeLog
View file @
a50a10a0
2001-10-23 Pavel Jan,Bm(Bk <Pavel@Janik.cz>
* syntax.c: Fix argument names and usage.
* editfns.c: Fix argument names and usage.
* xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
`left', `max_width' and `max_height'.
2001-10-23 Gerd Moellmann <gerd@gnu.org>
* xdisp.c (display_line): For a tab continued to the next line,
...
...
src/syntax.c
View file @
a50a10a0
...
...
@@ -974,7 +974,7 @@ text property. */)
*/
DEFUN
(
"modify-syntax-entry"
,
Fmodify_syntax_entry
,
Smodify_syntax_entry
,
2
,
3
,
"cSet syntax for character:
\n
sSet syntax for %s to: "
,
doc
:
/* Set syntax for character C according to string NEWENTRY.
doc
:
/* Set syntax for character C
HAR
according to string NEWENTRY.
The syntax is changed only for table SYNTAX_TABLE, which defaults to
the current buffer's syntax table.
The first character of NEWENTRY should be one of the following:
...
...
@@ -993,22 +993,23 @@ The second character of NEWENTRY is the matching parenthesis,
used only if the first character is `(' or `)'.
Any additional characters are flags.
Defined flags are the characters 1, 2, 3, 4, b, p, and n.
1 means C is the start of a two-char comment start sequence.
2 means C is the second character of such a sequence.
3 means C is the start of a two-char comment end sequence.
4 means C is the second character of such a sequence.
1 means C
HAR
is the start of a two-char comment start sequence.
2 means C
HAR
is the second character of such a sequence.
3 means C
HAR
is the start of a two-char comment end sequence.
4 means C
HAR
is the second character of such a sequence.
There can be up to two orthogonal comment sequences. This is to support
language modes such as C++. By default, all comment sequences are of style
a, but you can set the comment sequence style to b (on the second character
of a comment-start, or the first character of a comment-end sequence) using
this flag:
b means C is part of comment sequence b.
n means C is part of a nestable comment sequence.
b means C
HAR
is part of comment sequence b.
n means C
HAR
is part of a nestable comment sequence.
p means C is a prefix character for `backward-prefix-chars';
p means C
HAR
is a prefix character for `backward-prefix-chars';
such characters are treated as whitespace when they occur
between expressions. */
)
between expressions.
usage: (modify-syntax-entry CHAR NEWENTRY &optional SYNTAX-TABLE) */
)
(
c
,
newentry
,
syntax_table
)
Lisp_Object
c
,
newentry
,
syntax_table
;
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment