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
838c9726
Commit
838c9726
authored
Aug 09, 2000
by
Kenichi Handa
Browse files
(Fcall_process): Terminate the unwind-protect around the
post-read-conversion of coding system.
parent
2f2174fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
13 deletions
+19
-13
src/callproc.c
src/callproc.c
+19
-13
No files found.
src/callproc.c
View file @
838c9726
/* Synchronous subprocess invocation for GNU Emacs.
Copyright (C) 1985,
86,87,88,93,94,95,
1999
Free Software Foundation, Inc.
Copyright (C) 1985,86,87,88,93,94,95,
99,2000
Free Software Foundation, Inc.
This file is part of GNU Emacs.
...
...
@@ -846,20 +846,26 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.")
coding_free_composition_data
(
&
process_coding
);
}
record_unwind_protect
(
save_excursion_restore
,
save_excursion_save
());
inserted
=
PT
-
pt_orig
;
TEMP_SET_PT_BOTH
(
pt_orig
,
pt_byte_orig
);
if
(
SYMBOLP
(
process_coding
.
post_read_conversion
)
&&
!
NILP
(
Ffboundp
(
process_coding
.
post_read_conversion
)))
call1
(
process_coding
.
post_read_conversion
,
make_number
(
inserted
));
{
int
post_read_count
=
specpdl_ptr
-
specpdl
;
record_unwind_protect
(
save_excursion_restore
,
save_excursion_save
());
inserted
=
PT
-
pt_orig
;
TEMP_SET_PT_BOTH
(
pt_orig
,
pt_byte_orig
);
if
(
SYMBOLP
(
process_coding
.
post_read_conversion
)
&&
!
NILP
(
Ffboundp
(
process_coding
.
post_read_conversion
)))
call1
(
process_coding
.
post_read_conversion
,
make_number
(
inserted
));
Vlast_coding_system_used
=
process_coding
.
symbol
;
Vlast_coding_system_used
=
process_coding
.
symbol
;
/* If the caller required, let the buffer inherit the
coding-system used to decode the process output. */
if
(
inherit_process_coding_system
)
call1
(
intern
(
"after-insert-file-set-buffer-file-coding-system"
),
make_number
(
total_read
));
/* If the caller required, let the buffer inherit the
coding-system used to decode the process output. */
if
(
inherit_process_coding_system
)
call1
(
intern
(
"after-insert-file-set-buffer-file-coding-system"
),
make_number
(
total_read
));
unbind_to
(
post_read_count
,
Qnil
);
}
}
/* Wait for it to terminate, unless it already has. */
...
...
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