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
737e5c83
Commit
737e5c83
authored
Sep 24, 2008
by
Chong Yidong
Browse files
(server-buffer-done): Avoid changing the buffer when deleting the
client's frame (bug#640).
parent
ef1a3179
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
lisp/server.el
lisp/server.el
+7
-1
No files found.
lisp/server.el
View file @
737e5c83
...
...
@@ -1084,7 +1084,13 @@ FOR-KILLING if non-nil indicates that we are called from `kill-buffer'."
;; tell it that it is done, and forget it entirely.
(
unless
buffers
(
server-log
"Close"
proc
)
(
server-delete-client
proc
)))))
(
if
for-killing
;; `server-delete-client' might delete the client's
;; frames, which might change the current buffer. We
;; don't want that (bug#640).
(
save-current-buffer
(
server-delete-client
proc
))
(
server-delete-client
proc
))))))
(
when
(
and
(
bufferp
buffer
)
(
buffer-name
buffer
))
;; We may or may not kill this buffer;
;; if we do, do not call server-buffer-done recursively
...
...
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