From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#16630: desktop-auto-save seems confusing Date: Mon, 03 Feb 2014 21:47:53 -0500 Message-ID: References: <24d2j4vds1.fsf@fencepost.gnu.org> <87zjm8bmpt.fsf@mail.jurta.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1391482081 17238 80.91.229.3 (4 Feb 2014 02:48:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Feb 2014 02:48:01 +0000 (UTC) Cc: 16630@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 04 03:48:07 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WAW3T-0004sp-FB for geb-bug-gnu-emacs@m.gmane.org; Tue, 04 Feb 2014 03:48:07 +0100 Original-Received: from localhost ([::1]:50448 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WAW3S-0001Os-Px for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 Feb 2014 21:48:06 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33699) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WAW3P-0001Ok-2t for bug-gnu-emacs@gnu.org; Mon, 03 Feb 2014 21:48:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WAW3O-0000Zg-9a for bug-gnu-emacs@gnu.org; Mon, 03 Feb 2014 21:48:03 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34535) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WAW3O-0000Zc-5q for bug-gnu-emacs@gnu.org; Mon, 03 Feb 2014 21:48:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WAW3N-0002CH-Rq for bug-gnu-emacs@gnu.org; Mon, 03 Feb 2014 21:48:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 04 Feb 2014 02:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16630 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16630-submit@debbugs.gnu.org id=B16630.13914820778434 (code B ref 16630); Tue, 04 Feb 2014 02:48:01 +0000 Original-Received: (at 16630) by debbugs.gnu.org; 4 Feb 2014 02:47:57 +0000 Original-Received: from localhost ([127.0.0.1]:48554 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WAW3I-0002Bx-VT for submit@debbugs.gnu.org; Mon, 03 Feb 2014 21:47:57 -0500 Original-Received: from fencepost.gnu.org ([208.118.235.10]:55314) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WAW3H-0002Bo-Av for 16630@debbugs.gnu.org; Mon, 03 Feb 2014 21:47:55 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1WAW3G-0000j3-5e; Mon, 03 Feb 2014 21:47:54 -0500 X-Spook: ANC Audiotel fundamentalist kilo class supercomputer BCCI X-Ran: +"p*FSrwwaPe_mC*N@L0OFi^yogFN|%?2r)Pe{73{\Y,8y0nx}dZGz3o1rOr'$(VU#&e5, X-Hue: black X-Attribution: GM In-Reply-To: <87zjm8bmpt.fsf@mail.jurta.org> (Juri Linkov's message of "Mon, 03 Feb 2014 10:54:22 +0200") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:84532 Archived-At: Juri Linkov wrote: >> Why doesn't enabling desktop-save-mode at any time just turn it on? >> Why does it require the desktop file to exist beforehand? > > desktop-auto-save is an noninteractive operation, so first > you need to select a directory where you want to save the desktop > using M-x desktop-save or M-x desktop-save-in-desktop-dir > that asks interactively where to save the desktop. > This allows desktop-auto-save to know the desktop file name. emacs -Q M-x desktop-save-mode RET M-x desktop-save RET /tmp RET C-h v desktop-auto-save-timer -> still nil, still no auto-save As I said, nothing enables desktop-auto-save except after-init-hook. Whereas if I happen to customize desktop-auto-save-timeout, suddenly it will start auto-saving. This doesn't make much sense. (Also, I guess the ignore-errors in the :set of desktop-auto-save-timeout isn't really needed, rather an :initialize is.)