[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Startup screen default directory
From: |
Juri Linkov |
Subject: |
Re: Startup screen default directory |
Date: |
Wed, 13 Feb 2008 01:42:35 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
>>> 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/