[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Daemon mode wishlist
From: |
Dan Nicolaescu |
Subject: |
Re: Daemon mode wishlist |
Date: |
Sat, 27 Sep 2008 18:39:12 -0700 (PDT) |
Stefan Monnier <address@hidden> writes:
> >> We should change startup.el so that server-start is called after
processing
> >> the .emacs (and the --eval).
>
> > I don't see that as being better, but if someone else wants to do it and
> > also find a way to solve the problem of specifying the server name and
> > port on the command line, I won't stand in the way.
>
> It allows the use of
>
> emacs --eval '(setq server-name "foo")' --daemon
>
> which seems sufficient. Also it makes server-start take into account
> the config settings in the user's .emacs.
> I.e. I thing it's just the right thing to do.
Using --eval is a hack (a Turing complete one), using parameters to
--daemon is more in the spirit of how command line options work (see
what I described in a previous mail: --daemon[=NAME[:PORT]]).
But having that implemented would have increased the size of the patch
(and it's only useful to a very small minority anyway, and that small
minority can use --eval to set the server-name and restart the server).
> You happened to place the call to server-start just at the same place
> where you had to disable the call to frame-initialize, but there's
> really no fundamental reason why it should be there.
Not exactly, I wanted things to work by default, if people change the
server name in .emacs, and use --daemon=NAME, I'd rather want the server
name to be NAME. But again, if someone wants to change the place where
the server is started, he can go ahead.
Re: Daemon mode wishlist, Romain Francoise, 2008/09/27