From: Juri Linkov <juri@jurta.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: bob@rattlesnake.com, emacs-devel@gnu.org
Subject: Re: Startup screen default directory
Date: Wed, 13 Feb 2008 01:42:35 +0200 [thread overview]
Message-ID: <87lk5poif0.fsf@jurta.org> (raw)
In-Reply-To: <jwv8x1pajws.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Tue, 12 Feb 2008 17:31:02 -0500")
>>> In my major instance of GNU Emacs, I load over 20 files from a saved
>>> desktop, but my `desktop-save-mode' variable is nil because I want
>>> always to load the same files, but often look at others that I do not
>>> necessarily want the next time I start Emacs.
>>>
>>> On the other hand, in a root owned instance, in a `when' expression, I
>>> evoke
>>>
>>> (desktop-save-mode 1)
>>> (desktop-read "/root")
>>>
>>> The root owned instance says:
>>>
>>> desktop-save-mode is a variable defined in `desktop.el'.
>>> Its value is t
>
>> A more relevant variable that determines if the desktop was really
>> loaded and that it created some buffers is `desktop-buffer-ok-count'.
>
>> Currently it is locally bound in `desktop-read' but could be changed
>> to be global. So if `desktop-buffer-ok-count' > 0 then don't show
>> the startup screen.
>
> Couldn't we do it the other way around: have desktop.el change
> inhibit-startup-screen or something like that?
> startup.el has no business looking at desktop's internal variables.
Yes, and there even exists already a proper place in desktop.el that
loads the desktop on startup. Fixed in CVS and Emacs 22.
--
Juri Linkov
http://www.jurta.org/emacs/
next prev parent reply other threads:[~2008-02-12 23:42 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-10 23:29 Startup screen default directory Juri Linkov
2008-02-11 13:34 ` Richard Stallman
2008-02-12 0:14 ` Juri Linkov
2008-02-12 1:48 ` Robert J. Chassell
2008-02-12 21:30 ` Juri Linkov
2008-02-12 22:31 ` Stefan Monnier
2008-02-12 23:42 ` Juri Linkov [this message]
2008-02-13 2:21 ` Robert J. Chassell
2008-02-12 3:51 ` Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lk5poif0.fsf@jurta.org \
--to=juri@jurta.org \
--cc=bob@rattlesnake.com \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.