Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
71a0c011
Commit
71a0c011
authored
Mar 02, 2009
by
Eli Zaretskii
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(Fcall_process): Bind inhibit-modification-hooks to t when decoding
process output.
parent
5d4cf42a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
src/ChangeLog
src/ChangeLog
+5
-0
src/callproc.c
src/callproc.c
+8
-0
No files found.
src/ChangeLog
View file @
71a0c011
2009-03-02 Eli Zaretskii <eliz@gnu.org>
* callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
when decoding process output.
2009-03-01 Richard M Stallman <rms@gnu.org>
* m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
...
...
src/callproc.c
View file @
71a0c011
...
...
@@ -732,10 +732,18 @@ usage: (call-process PROGRAM &optional INFILE BUFFER DISPLAY &rest ARGS) */)
else
{
/* We have to decode the input. */
Lisp_Object
curbuf
;
int
count1
=
SPECPDL_INDEX
();
XSETBUFFER
(
curbuf
,
current_buffer
);
/* We cannot allow after-change-functions be run
during decoding, because that might modify the
buffer, while we rely on process_coding.produced to
faithfully reflect inserted text until we
TEMP_SET_PT_BOTH below. */
specbind
(
Qinhibit_modification_hooks
,
Qt
);
decode_coding_c_string
(
&
process_coding
,
buf
,
nread
,
curbuf
);
unbind_to
(
count1
,
Qnil
);
if
(
display_on_the_fly
&&
CODING_REQUIRE_DETECTION
(
&
saved_coding
)
&&
!
CODING_REQUIRE_DETECTION
(
&
process_coding
))
...
...
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