[Top][All Lists]
[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/
- --no-desktop broken?, Alfred M\. Szmidt, 2006/01/20
- Re: --no-desktop broken?, Eli Zaretskii, 2006/01/21
- Re: --no-desktop broken?, Lars Hansen, 2006/01/21
- Re: --no-desktop broken?, Ken Raeburn, 2006/01/21
- Re: --no-desktop broken?, Lars Hansen, 2006/01/22
- Re: --no-desktop broken?, Juri Linkov, 2006/01/22
- Re: --no-desktop broken?, Eli Zaretskii, 2006/01/23
- Re: --no-desktop broken?,
Juri Linkov <=
- Re: --no-desktop broken?, Lars Hansen, 2006/01/23
- Re: --no-desktop broken?, Eli Zaretskii, 2006/01/23
- Re: --no-desktop broken?, Lars Hansen, 2006/01/23
- Re: --no-desktop broken?, Eli Zaretskii, 2006/01/23
- Re: --no-desktop broken?, Lars Hansen, 2006/01/24
- Re: --no-desktop broken?, Eli Zaretskii, 2006/01/23