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
fb873cfc
Commit
fb873cfc
authored
May 31, 1997
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(server-kill-buffer): Prevent infinite recursion.
(server-kill-buffer-running): New variable.
parent
7b30f6cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
lisp/server.el
lisp/server.el
+9
-2
No files found.
lisp/server.el
View file @
fb873cfc
...
...
@@ -385,11 +385,18 @@ or nil. KILLED is t if we killed the BUFFER (because it was a temp file)."
(
add-hook
'kill-emacs-query-functions
'server-kill-emacs-query-function
)
(
defvar
server-kill-buffer-running
nil
"Non-nil while `server-kill-buffer' is running."
)
;; When a buffer is killed, inform the clients.
(
add-hook
'kill-buffer-hook
'server-kill-buffer
)
(
defun
server-kill-buffer
()
(
when
server-process
(
server-buffer-done
(
current-buffer
)
t
)))
;; Prevent infinite recursion if user has made server-done-hook
;; call kill-buffer.
(
or
server-kill-buffer-running
(
let
((
server-kill-buffer-running
t
))
(
when
server-process
(
server-buffer-done
(
current-buffer
)
t
)))))
(
defun
server-edit
(
&optional
arg
)
"Switch to next server editing buffer; say \"Done\" for current buffer.
...
...
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