From: Peter Oliver <p.d.oliver@mavit.org.uk>
To: 854@debbugs.gnu.org
Subject: bug#854: Server port customisation
Date: Sat, 23 Oct 2010 13:31:36 +0100 (BST) [thread overview]
Message-ID: <alpine.LFD.2.00.1010231329450.3350@froglet.home.mavit.org.uk> (raw)
In-Reply-To: <alpine.LFD.1.10.0809011924060.3008@froglet.home.mavit.org.uk>
[-- 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
IyBCYXphYXIgcmV2aXNpb24gYnVuZGxlIHY0CiMKQlpoOTFBWSZTWRy6V3wAAbNfgEEwUOP/93IA
1AC////wUAPe82Do1bAAhoiaRmpiNMjE2pk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LJd2UFlSu80dM8c2ZOPrPQtRJmpN1eWYuyZbWLGSM0nB5wRVzmR
ShV66/xFXvg7nKImZhDLVku6rfplwXHGmAzHr9GgXNjHhaD2oujqGxnbiYbm81ZDZpeDqFj5pWL3
Uo/YtJuaV9h0Yr23TH1isTNBld361MrdG5K3rMi+3ecvdbvovapiayyYDFtYaUqqL0Xggd4GLYTM
gm9lsKFQH8XckU4UJAculd8A
next parent reply other threads:[~2010-10-23 12:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <alpine.LFD.1.10.0809011924060.3008@froglet.home.mavit.org.uk>
2010-10-23 12:31 ` Peter Oliver [this message]
2010-10-26 7:39 ` bug#854: Server port customisation Glenn Morris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LFD.2.00.1010231329450.3350@froglet.home.mavit.org.uk \
--to=p.d.oliver@mavit.org.uk \
--cc=854@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.