diff options
| author | Alan Mackenzie | 2022-01-22 11:02:50 +0000 |
|---|---|---|
| committer | Alan Mackenzie | 2022-01-22 11:02:50 +0000 |
| commit | 14d64a8adcc866deecd758b898e8ef2d836b354a (patch) | |
| tree | 83cff9669e266f8e283ccb8cd7518e909240f1e1 /src/syntax.c | |
| parent | bdd9b5b8a0d37dd09ee530c1dab3a44bee09e0f8 (diff) | |
| parent | ebe334cdc234de2897263aed4c05ac7088c11857 (diff) | |
| download | emacs-scratch/correct-warning-pos.tar.gz emacs-scratch/correct-warning-pos.zip | |
Merge branch 'master' into scratch/correct-warning-posscratch/correct-warning-pos
Diffstat (limited to 'src/syntax.c')
| -rw-r--r-- | src/syntax.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/syntax.c b/src/syntax.c index 9df878b8edf..13c36fdf3cd 100644 --- a/src/syntax.c +++ b/src/syntax.c | |||
| @@ -1101,10 +1101,11 @@ this is probably the wrong function to use, because it can't take | |||
| 1101 | `syntax-after' instead. */) | 1101 | `syntax-after' instead. */) |
| 1102 | (Lisp_Object character) | 1102 | (Lisp_Object character) |
| 1103 | { | 1103 | { |
| 1104 | int char_int; | ||
| 1105 | CHECK_CHARACTER (character); | 1104 | CHECK_CHARACTER (character); |
| 1106 | char_int = XFIXNUM (character); | 1105 | int char_int = XFIXNAT (character); |
| 1107 | SETUP_BUFFER_SYNTAX_TABLE (); | 1106 | SETUP_BUFFER_SYNTAX_TABLE (); |
| 1107 | if (NILP (BVAR (current_buffer, enable_multibyte_characters))) | ||
| 1108 | char_int = make_char_multibyte (char_int); | ||
| 1108 | return make_fixnum (syntax_code_spec[SYNTAX (char_int)]); | 1109 | return make_fixnum (syntax_code_spec[SYNTAX (char_int)]); |
| 1109 | } | 1110 | } |
| 1110 | 1111 | ||