all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#7409: 24.0.50; (server-force-stop) starts server process
@ 2010-11-15 21:44 Ulrich Mueller
  2010-11-16 20:09 ` Chong Yidong
  0 siblings, 1 reply; 2+ messages in thread
From: Ulrich Mueller @ 2010-11-15 21:44 UTC (permalink / raw)
  To: 7409

Recently added function server-force-stop (in lisp/server.el) doesn't
always stop the server, but starts it if no server process is running.

The behaviour can be reproduced as follows (commands in Lisp
interaction buffer):

   (require 'server)
   server

   server-process
   nil

   (server-force-stop)
   nil

   server-process
   #<process server>

Included below is a trivial patch that should fix it.

Ulrich


2010-11-15  Ulrich Mueller  <ulm@gentoo.org>

	* server.el (server-force-stop): Call server-start with first
	argument set to t.

--- lisp/server.el~
+++ lisp/server.el
@@ -609,7 +609,7 @@
 (defun server-force-stop ()
   "Kill all connections to the current server.
 This function is meant to be called from `kill-emacs-hook'."
-  (server-start nil t))
+  (server-start t t))
 
 ;;;###autoload
 (defun server-force-delete (&optional name)





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#7409: 24.0.50; (server-force-stop) starts server process
  2010-11-15 21:44 bug#7409: 24.0.50; (server-force-stop) starts server process Ulrich Mueller
@ 2010-11-16 20:09 ` Chong Yidong
  0 siblings, 0 replies; 2+ messages in thread
From: Chong Yidong @ 2010-11-16 20:09 UTC (permalink / raw)
  To: Ulrich Mueller; +Cc: 7409

Ulrich Mueller <ulm@gentoo.org> writes:

> Recently added function server-force-stop (in lisp/server.el) doesn't
> always stop the server, but starts it if no server process is running.
>
> Included below is a trivial patch that should fix it.

Committed, thanks.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-11-16 20:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-15 21:44 bug#7409: 24.0.50; (server-force-stop) starts server process Ulrich Mueller
2010-11-16 20:09 ` Chong Yidong

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.