Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
ef73e7be
Commit
ef73e7be
authored
Aug 27, 2009
by
Kenichi Handa
Browse files
(Fself_insert_command): Avoid unnecessay unibyte->multibyte
conversion.
parent
d3192c8f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
src/ChangeLog
src/ChangeLog
+8
-0
src/cmds.c
src/cmds.c
+1
-8
No files found.
src/ChangeLog
View file @
ef73e7be
2009-08-27 Kenichi Handa <handa@m17n.org>
* cmds.c (Fself_insert_command): Avoid unnecessay
unibyte->multibyte conversion.
2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
* callproc.c (Fcall_process): Remove always true #if.
...
...
@@ -32,6 +37,9 @@
2009-08-25 Kenichi Handa <handa@m17n.org>
* alloc.c (mark_char_table): New function.
(mark_object): Use mark_char_table for a char-table.
* lisp.h (CHAR_TABLE_REF_ASCII): New macro.
(CHAR_TABLE_REF): Use it.
...
...
src/cmds.c
View file @
ef73e7be
...
...
@@ -360,20 +360,13 @@ After insertion, the value of `auto-fill-function' is called if the
XINT
(
last_command_event
));
if
(
XINT
(
n
)
>=
2
&&
NILP
(
current_buffer
->
overwrite_mode
))
{
int
modified_char
=
character
;
/* Add the offset to the character, for Finsert_char.
We pass internal_self_insert the unmodified character
because it itself does this offsetting. */
if
(
!
NILP
(
current_buffer
->
enable_multibyte_characters
))
modified_char
=
unibyte_char_to_multibyte
(
modified_char
);
XSETFASTINT
(
n
,
XFASTINT
(
n
)
-
2
);
/* The first one might want to expand an abbrev. */
internal_self_insert
(
character
,
1
);
/* The bulk of the copies of this char can be inserted simply.
We don't have to handle a user-specified face specially
because it will get inherited from the first char inserted. */
Finsert_char
(
make_number
(
modified_cha
r
),
n
,
Qt
);
Finsert_char
(
make_number
(
characte
r
),
n
,
Qt
);
/* The last one might want to auto-fill. */
internal_self_insert
(
character
,
0
);
}
...
...
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