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
4dd04714
Commit
4dd04714
authored
Nov 11, 2001
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(server-buffer-done): Test of server-existing-buffer was backwards.
(server-existing-buffer): Doc fix.
parent
721c26b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
lisp/server.el
lisp/server.el
+6
-4
No files found.
lisp/server.el
View file @
4dd04714
...
...
@@ -145,7 +145,10 @@ this way."
(
setq
minor-mode-alist
(
cons
'
(
server-buffer-clients
" Server"
)
minor-mode-alist
)))
(
defvar
server-existing-buffer
nil
"Non-nil means a server buffer existed before visiting a file."
)
"Non-nil means a buffer existed before the Emacs server was asked visit it.
This means that the server should not kill the buffer when you say you
are done with it in the server. This variable is local in each buffer
where it is set."
)
(
make-variable-buffer-local
'server-existing-buffer
)
;; If a *server* buffer exists,
...
...
@@ -399,9 +402,8 @@ or nil. KILLED is t if we killed BUFFER
(
unless
for-killing
(
when
(
and
(
not
killed
)
server-kill-new-buffers
(
save-excursion
(
set-buffer
buffer
)
server-existing-buffer
))
(
with-current-buffer
buffer
(
not
server-existing-buffer
)))
(
setq
killed
t
)
(
bury-buffer
buffer
)
(
kill-buffer
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