Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
97e53006
Commit
97e53006
authored
Apr 11, 2010
by
Stefan Monnier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* process.c (exec_sentinel): Preserve current-buffer.
parent
3a4fa2f2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
src/ChangeLog
src/ChangeLog
+2
-0
src/process.c
src/process.c
+5
-0
No files found.
src/ChangeLog
View file @
97e53006
2010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
* process.c (exec_sentinel): Preserve current-buffer.
* process.c (read_process_output): Move the save-current-buffer to
apply to both the filter and the non-filter branches.
...
...
src/process.c
View file @
97e53006
...
...
@@ -6840,6 +6840,11 @@ exec_sentinel (proc, reason)
XSETBUFFER
(
obuffer
,
current_buffer
);
okeymap
=
current_buffer
->
keymap
;
/* There's no good reason to let sentinels change the current
buffer, and many callers of accept-process-output, sit-for, and
friends don't expect current-buffer to be changed from under them. */
record_unwind_protect
(
Fset_buffer
,
Fcurrent_buffer
());
sentinel
=
p
->
sentinel
;
if
(
NILP
(
sentinel
))
return
;
...
...
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