unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Juanma Barranquero" <lekktu@gmail.com>
To: "David L" <idht4n@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: multiple emacs servers
Date: Fri, 19 Oct 2007 09:35:57 +0200	[thread overview]
Message-ID: <f7ccd24b0710190035l6779b17emdd74c33b18f2983a@mail.gmail.com> (raw)
In-Reply-To: <b79371120710181144x2c81d36asce380237da0358b5@mail.gmail.com>

On 10/18/07, David L <idht4n@gmail.com> wrote:

> I'm trying to use  M-x set-variable from an open emacs session to
> set the "server-name" variable.  But the only variable that emacs
> will let me set that starts with "server" is "server-mode".  I can't
> even describe-variable "server-name" until after the server is
> started and I still can't set-variable server-name even after it is
> started.

Yes. `server-name' is not autoloaded, so it is not defined until you
load server.el; if you do "M-x load-library server [RET]" you'll be
able to describe-variable `server-name' before starting the server,
but it won't be useful, as server-name has no documentation string.
That's also the reason you can not use M-x set-variable with it
(variables have to be specially marked as user options to be setable
with set-variable).

I suggest you locally patch your server.el, changing this line:

(defvar server-name "server")

to this

(defcustom server-name "server"
  "Name of the server process."
  :group 'server
  :type 'string)

recompile server.el, and try again.

> But I don't think the procedure in the
> documentation works.?

Well, certainly it should be possible to change the server name before
starting the server, yes.

             Juanma

      reply	other threads:[~2007-10-19  7:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-18 17:55 multiple emacs servers David L
2007-10-18 18:20 ` Juanma Barranquero
2007-10-18 18:44   ` David L
2007-10-19  7:35     ` Juanma Barranquero [this message]

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f7ccd24b0710190035l6779b17emdd74c33b18f2983a@mail.gmail.com \
    --to=lekktu@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=idht4n@gmail.com \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).