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
f4ac86af
Commit
f4ac86af
authored
Mar 16, 1998
by
Kenichi Handa
Browse files
(Finsert_file_contents): Comment modified. Give
adjust_after_replace the new arg REPLACE as 0.
parent
01364a75
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
src/fileio.c
src/fileio.c
+9
-4
No files found.
src/fileio.c
View file @
f4ac86af
...
...
@@ -3771,6 +3771,9 @@ This does code conversion according to the value of\n\
{
if
(
CODING_MAY_REQUIRE_DECODING
(
&
coding
))
{
/* Here, we don't have to consider byte combining (see the
comment below) because code_convert_region takes care of
it. */
code_convert_region
(
PT
,
PT_BYTE
,
PT
+
inserted
,
PT_BYTE
+
inserted
,
&
coding
,
0
,
0
);
inserted
=
(
NILP
(
current_buffer
->
enable_multibyte_characters
)
...
...
@@ -3780,8 +3783,11 @@ This does code conversion according to the value of\n\
{
int
inserted_byte
=
inserted
;
/* At first, reset positions to the state of before
insertion. */
/* There's a possibility that we must combine bytes at the
head (resp. the tail) of the just inserted text with the
bytes before (resp. after) the gap to form a single
character. Thus, we, at first, rewind the adjusted
character positions (GPT, ZV, Z), then adjust them again. */
GAP_SIZE
+=
inserted
;
GPT_BYTE
-=
inserted
;
ZV_BYTE
-=
inserted
;
...
...
@@ -3790,10 +3796,9 @@ This does code conversion according to the value of\n\
ZV
-=
inserted
;
Z
-=
inserted
;
/* Then adjust positions. */
inserted
=
multibyte_chars_in_text
(
GPT_ADDR
,
inserted
);
adjust_after_replace
(
PT
,
PT_BYTE
,
PT
,
PT_BYTE
,
inserted, inserted_byte);
inserted
,
inserted_byte
,
0
);
}
#ifdef DOS_NT
...
...
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