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
2c3af338
Commit
2c3af338
authored
Feb 12, 1998
by
Richard M. Stallman
Browse files
(copy_text, count_size_as_multibyte): Use Vnonascii_translate_table.
parent
1134b854
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
src/insdel.c
src/insdel.c
+6
-2
No files found.
src/insdel.c
View file @
2c3af338
...
...
@@ -594,7 +594,9 @@ copy_text (from_addr, to_addr, nbytes,
if
(
c
>=
0200
&&
c
<
0400
)
{
if
(
nonascii_insert_offset
>
0
)
if
(
!
NILP
(
Vnonascii_translate_table
))
c
=
XINT
(
Faref
(
Vnonascii_translate_table
,
make_number
(
c
)));
else
if
(
nonascii_insert_offset
>
0
)
c
+=
nonascii_insert_offset
;
else
c
+=
DEFAULT_NONASCII_INSERT_OFFSET
;
...
...
@@ -629,7 +631,9 @@ count_size_as_multibyte (ptr, nbytes)
unsigned
int
c
=
*
ptr
++
;
if
(
c
>=
0200
&&
c
<
0400
)
{
if
(
nonascii_insert_offset
>
0
)
if
(
!
NILP
(
Vnonascii_translate_table
))
c
=
XINT
(
Faref
(
Vnonascii_translate_table
,
make_number
(
c
)));
else
if
(
nonascii_insert_offset
>
0
)
c
+=
nonascii_insert_offset
;
else
c
+=
DEFAULT_NONASCII_INSERT_OFFSET
;
...
...
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