[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master f995fbd: * lisp/server.el (server-name): Add autoload cookie.

From: Leo Liu
Subject: Re: master f995fbd: * lisp/server.el (server-name): Add autoload cookie. (Bug#23576)
Date: Fri, 20 May 2016 15:11:45 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.94 (OS X 10.11.5)

On 2016-05-20 08:51 +0300, Eli Zaretskii wrote:
> Sorry, I don't think I understand what that means.  What duplication
> do you allude to here?

For example if you autoload server-name, the whole

(defcustom server-name "server"
  "The name of the Emacs server, if this Emacs process creates one.
The command `server-start' makes use of this.  It should not be
changed while a server is running."
  :group 'server
  :type 'string
  :version "23.1")

is duplicated to the loaddefs file and now you have two definitions in
two separate files.

> I added the autoload for a reason for which I didn't see a better
> solution.  If you can suggest a better solution that allows users to
> specify the name before starting the first server, please do.

Get rid of the set-variable. Nowhere else uses it to demonstrate how to
change a defcustom'd variable. Otherwise we have a lot more autoloads to


reply via email to

[Prev in Thread] Current Thread [Next in Thread]