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
b9859007
Commit
b9859007
authored
Mar 03, 1998
by
Kenichi Handa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(internal_self_insert): Avoid checking enable-multibyte-characters
twice.
parent
3b2d77fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/cmds.c
src/cmds.c
+4
-4
No files found.
src/cmds.c
View file @
b9859007
...
...
@@ -342,9 +342,6 @@ internal_self_insert (c, noautofill)
int
chars_to_delete
=
0
;
int
spaces_to_insert
=
0
;
if
(
!
NILP
(
current_buffer
->
enable_multibyte_characters
))
c
=
unibyte_char_to_multibyte
(
c
);
overwrite
=
current_buffer
->
overwrite_mode
;
if
(
!
NILP
(
Vbefore_change_function
)
||
!
NILP
(
Vafter_change_function
)
||
!
NILP
(
Vbefore_change_functions
)
||
!
NILP
(
Vafter_change_functions
))
...
...
@@ -352,7 +349,10 @@ internal_self_insert (c, noautofill)
/* At first, get multi-byte form of C in STR. */
if
(
!
NILP
(
current_buffer
->
enable_multibyte_characters
))
len
=
CHAR_STRING
(
c
,
workbuf
,
str
);
{
c
=
unibyte_char_to_multibyte
(
c
);
len
=
CHAR_STRING
(
c
,
workbuf
,
str
);
}
else
workbuf
[
0
]
=
c
,
str
=
workbuf
,
len
=
1
;
...
...
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