emacs-devel
[Top][All Lists]
Advanced

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

Re: --no-desktop broken?


From: Juri Linkov
Subject: Re: --no-desktop broken?
Date: Mon, 23 Jan 2006 08:18:31 +0200
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

>   ;; We cannot use `command-switch-alist' to process "--no-desktop" because 
> these
>   ;; functions are processed after `after-init-hook'.
>
> The above comment explains why this is not a good idea.

Yes, I'm already aware of this comment.  That's why I haven't proposed to use
`command-switch-alist' directly to process "--no-desktop".

> All of these solutions will load desktop.el (and what's worse, load it
> unconditionally, I think), which I think is not a good design.

Only the first solution loads desktop.el, and I agree that it is not
a good solution.  The remaining two solutions don't load desktop.el.
They use the autoload cookie.  This means that at the time startup.el
starts processing command switches, it already has "--no-desktop"
in `command-switch-alist' without loading desktop.el.  The effect is
exactly the same as adding "--no-desktop" to the local variable
`longopts' in `command-line-1'.  I think not using package-specific
switches in startup.el gives better modularity.

-- 
Juri Linkov
http://www.jurta.org/emacs/





reply via email to

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