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
0f867324
Commit
0f867324
authored
Feb 24, 1996
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(Fcopy_syntax_table): Set default to nil.
Set the parent only if it was nil.
parent
3efb840d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
src/syntax.c
src/syntax.c
+10
-1
No files found.
src/syntax.c
View file @
0f867324
...
...
@@ -163,7 +163,16 @@ It is a copy of the TABLE, which defaults to the standard syntax table.")
table
=
Vstandard_syntax_table
;
copy
=
Fcopy_sequence
(
table
);
Fset_char_table_parent
(
copy
,
Vstandard_syntax_table
);
/* Only the standard syntax table should have a default element.
Other syntax tables should inherit from parents instead. */
XCHAR_TABLE
(
copy
)
->
defalt
=
Qnil
;
/* Copied syntax tables should all have parents.
If we copied one with no parent, such as the standard syntax table,
use the standard syntax table as the copy's parent. */
if
(
NILP
(
XCHAR_TABLE
(
copy
)
->
parent
))
Fset_char_table_parent
(
copy
,
Vstandard_syntax_table
);
return
copy
;
}
...
...
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