all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#854: Server port customisation
       [not found] <alpine.LFD.1.10.0809011924060.3008@froglet.home.mavit.org.uk>
@ 2010-10-23 12:31 ` Peter Oliver
  2010-10-26  7:39   ` Glenn Morris
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Oliver @ 2010-10-23 12:31 UTC (permalink / raw
  To: 854

[-- Attachment #1: Type: TEXT/PLAIN, Size: 61 bytes --]

Here is an updated patch against bzr trunk.

-- 
Peter Oliver

[-- Attachment #2: Type: TEXT/PLAIN, Size: 2812 bytes --]

# Bazaar merge directive format 2 (Bazaar 0.90)
# revision_id: bzr@mavit.org.uk-20101023121921-94keq3071lh91wo1
# target_branch: bzr://bzr.savannah.gnu.org/emacs/trunk/
# testament_sha1: b9c0513f2324b358b13e0b456298c9682cd9bb60
# timestamp: 2010-10-23 13:27:38 +0100
# source_branch: bzr://bzr.savannah.gnu.org/emacs/trunk/
# base_revision_id: jan.h.d@swipnet.se-20101023091819-s23vam6s62t5x44v
# 
# Begin patch
=== modified file 'lisp/server.el'
--- lisp/server.el	2010-10-08 10:14:47 +0000
+++ lisp/server.el	2010-10-23 12:19:21 +0000
@@ -112,6 +112,15 @@
   :version "22.1")
 (put 'server-host 'risky-local-variable t)
 
+(defcustom server-port nil
+  "The port number that the server process should listen on."
+  :group 'server
+  :type '(choice
+          (string :tag "Port number")
+          (const :tag "Random" nil))
+  :version "22.1")
+(put 'server-port 'risky-local-variable t)
+
 (defcustom server-auth-dir (locate-user-emacs-file "server/")
   "Directory for server authentication files.
 
@@ -564,7 +573,7 @@
 		       ;; The other args depend on the kind of socket used.
 		       (if server-use-tcp
 			   (list :family 'ipv4  ;; We're not ready for IPv6 yet
-				 :service t
+				 :service (or server-port t)
 				 :host (or server-host 'local)
 				 :plist '(:authenticated nil))
 			 (list :family 'local

# Begin bundle
IyBCYXphYXIgcmV2aXNpb24gYnVuZGxlIHY0CiMKQlpoOTFBWSZTWRy6V3wA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li6AM/5KuBfI4KVaIsoDlv
iKSwvJeOXnyc1iiy7vqPOQdUqLJd2UFlSu80dM8c2ZOPrPQtRJmpN1eWYuyZbWLGSM0nB5wRVzmR
ShV66/xFXvg7nKImZhDLVku6rfplwXHGmAzHr9GgXNjHhaD2oujqGxnbiYbm81ZDZpeDqFj5pWL3
Uo/YtJuaV9h0Yr23TH1isTNBld361MrdG5K3rMi+3ecvdbvovapiayyYDFtYaUqqL0Xggd4GLYTM
gm9lsKFQH8XckU4UJAculd8A

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

* bug#854: Server port customisation
  2010-10-23 12:31 ` bug#854: Server port customisation Peter Oliver
@ 2010-10-26  7:39   ` Glenn Morris
  0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2010-10-26  7:39 UTC (permalink / raw
  To: 854-done

Peter Oliver wrote:

> Here is an updated patch against bzr trunk.

It's not updated if it still says "version 22.1"; but thanks, applied.
;)






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

end of thread, other threads:[~2010-10-26  7:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <alpine.LFD.1.10.0809011924060.3008@froglet.home.mavit.org.uk>
2010-10-23 12:31 ` bug#854: Server port customisation Peter Oliver
2010-10-26  7:39   ` Glenn Morris

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.