>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. > I like your last solution. It works right and has better modularity. Also I think the '"--no-desktop" ignored' message is more confusing than helpful. So I suggest the attached patch. If there are no objections, I will install in a couple of days.