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
03d78665
Commit
03d78665
authored
Apr 20, 1994
by
Richard M. Stallman
Browse files
(server-kill-emacs-query-function)
(server-kill-buffer-query-function): Give names to these hook fns.
parent
f3309b68
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
lisp/server.el
lisp/server.el
+12
-11
No files found.
lisp/server.el
View file @
03d78665
...
...
@@ -286,18 +286,19 @@ Then bury it, and return a suggested buffer to select next."
;; If a server buffer is killed, release its client.
;; I'm not sure this is really a good idea--do you want the client
;; to proceed using whatever is on disk in that file?
(
defun
server-kill-buffer-query-function
()
(
or
(
not
server-buffer-clients
)
(
yes-or-no-p
(
format
"Buffer `%s' still has clients; kill it? "
(
buffer-name
(
current-buffer
))))))
(
add-hook
'kill-buffer-query-functions
(
function
(
lambda
()
(
or
(
not
server-buffer-clients
)
(
yes-or-no-p
(
format
"Buffer `%s' still has clients; kill it? "
(
buffer-name
(
current-buffer
))))))))
(
add-hook
'kill-emacs-query-functions
(
function
(
lambda
()
(
or
(
not
server-clients
)
(
yes-or-no-p
"Server buffers still have clients; exit anyway? "
)))))
'server-kill-buffer-query-function
)
(
defun
server-kill-emacs-query-function
()
(
or
(
not
server-clients
)
(
yes-or-no-p
"Server buffers still have clients; exit anyway? "
)))
(
add-hook
'kill-emacs-query-functions
'server-kill-emacs-query-function
)
(
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