* command-line option for virgin session?
@ 2009-05-23 21:47 Drew Adams
2009-05-25 1:13 ` Stefan Monnier
2009-05-26 18:43 ` Davis Herring
0 siblings, 2 replies; 4+ messages in thread
From: Drew Adams @ 2009-05-23 21:47 UTC (permalink / raw
To: emacs-devel
We have command-line options such as -Q, that start up Emacs without loading
initialization files of one form or another. We have a command-line option,
--no-desktop, to not load any saved desktop file.
Should we have a command-line option that prevents Emacs from recognizing all
such saved-state files (those written and read by vanilla Emacs)? Bookmarks,
history, recent files, stuff in .emacs.d, filesets cache...
I tend to use -Q for testing and for sending bug reports. Anything beyond what
any other user would start with is really just extra baggage, and could
potentially get in the way.
OK, we could add a --no-bookmarks option, and so on, but why not just let -Q do
this in general? That is, have -Q provide a virgin Emacs session that recognizes
no previous-session state. (Or if -Q needs to be kept as it is for some reason,
then how about adding another, more general option to do this?)
Beyond making Emacs ignore past sessions, we might even consider adding another
(different) command-line option that would ignore env var values
(`user-login-name' etc.).
(No, I don't have a specific need in mind for these things; this is all just
hypothetical.)
(I'm a bit surprised that -Q doesn't include --no-desktop, unless it's because
the Desktop is not restored anyway with -Q. But if that's the case, then the doc
should say that -Q includes --no-desktop, just as it says that it includes
--no-site-file.)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: command-line option for virgin session?
2009-05-23 21:47 command-line option for virgin session? Drew Adams
@ 2009-05-25 1:13 ` Stefan Monnier
2009-05-25 2:00 ` Drew Adams
2009-05-26 18:43 ` Davis Herring
1 sibling, 1 reply; 4+ messages in thread
From: Stefan Monnier @ 2009-05-25 1:13 UTC (permalink / raw
To: Drew Adams; +Cc: emacs-devel
> OK, we could add a --no-bookmarks option, and so on, but why not just
> let -Q do this in general?
No reason, AFAIK. Patches welcome.
Stefan
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: command-line option for virgin session?
2009-05-23 21:47 command-line option for virgin session? Drew Adams
2009-05-25 1:13 ` Stefan Monnier
@ 2009-05-26 18:43 ` Davis Herring
1 sibling, 0 replies; 4+ messages in thread
From: Davis Herring @ 2009-05-26 18:43 UTC (permalink / raw
To: Drew Adams; +Cc: emacs-devel
> (I'm a bit surprised that -Q doesn't include --no-desktop, unless it's
> because the Desktop is not restored anyway with -Q. But if that's the case,
> then the doc should say that -Q includes --no-desktop, just as it says that
> it includes --no-site-file.)
What's going to load desktop.el (and thus .emacs.desktop) if your init
file doesn't get to?
Of course, one can say that -Q still includes the -effect- of --no-desktop
from the user's point of view. But it suppresses so much else (like the
automatic features of every other optional package, whether distributed
with Emacs or no, and every optional feature of every auto/preloaded
package) that I'm not sure of the utility of mentioning it all.
Davis
--
This product is sold by volume, not by mass. If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-05-26 18:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-23 21:47 command-line option for virgin session? Drew Adams
2009-05-25 1:13 ` Stefan Monnier
2009-05-25 2:00 ` Drew Adams
2009-05-26 18:43 ` Davis Herring
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.