From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Startup screen default directory Date: Tue, 12 Feb 2008 17:31:02 -0500 Message-ID: References: <87wspce6gj.fsf@jurta.org> <87wspb5d18.fsf@jurta.org> <878x1px4mj.fsf@jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1202855484 27959 80.91.229.12 (12 Feb 2008 22:31:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Feb 2008 22:31:24 +0000 (UTC) Cc: bob@rattlesnake.com, emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 12 23:31:46 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JP3f8-0004px-1O for ged-emacs-devel@m.gmane.org; Tue, 12 Feb 2008 23:31:38 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JP3ee-0003QC-GP for ged-emacs-devel@m.gmane.org; Tue, 12 Feb 2008 17:31:08 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JP3eZ-0003PU-NK for emacs-devel@gnu.org; Tue, 12 Feb 2008 17:31:03 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JP3eY-0003Ov-4z for emacs-devel@gnu.org; Tue, 12 Feb 2008 17:31:03 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JP3eX-0003Os-Vd for emacs-devel@gnu.org; Tue, 12 Feb 2008 17:31:02 -0500 Original-Received: from vpn-132-204-232-187.acd.umontreal.ca ([132.204.232.187] helo=ceviche.home) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JP3eX-00078X-LQ for emacs-devel@gnu.org; Tue, 12 Feb 2008 17:31:01 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id ACC93B40DF; Tue, 12 Feb 2008 17:31:02 -0500 (EST) In-Reply-To: <878x1px4mj.fsf@jurta.org> (Juri Linkov's message of "Tue, 12 Feb 2008 23:30:44 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-Greylist: delayed 3012 seconds by postgrey-1.27 at monty-python; Tue, 12 Feb 2008 17:31:01 EST X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:88915 Archived-At: >> 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