[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Startup screen default directory
From: |
Stefan Monnier |
Subject: |
Re: Startup screen default directory |
Date: |
Tue, 12 Feb 2008 17:31:02 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (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.
Stefan