From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: desktop-save problems Date: Wed, 15 Jun 2016 18:08:48 +0300 Message-ID: <831t3yebgf.fsf@gnu.org> References: <576087FA.5020106@mousecar.com> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1466003321 14299 80.91.229.3 (15 Jun 2016 15:08:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 Jun 2016 15:08:41 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 15 17:08:41 2016 Return-path: Envelope-to: geh-help-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 1bDCQq-0007aP-Jy for geh-help-gnu-emacs@m.gmane.org; Wed, 15 Jun 2016 17:08:40 +0200 Original-Received: from localhost ([::1]:42758 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDCQp-0003Oq-Q3 for geh-help-gnu-emacs@m.gmane.org; Wed, 15 Jun 2016 11:08:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36302) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDCQ9-0003IP-N2 for help-gnu-emacs@gnu.org; Wed, 15 Jun 2016 11:07:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bDCQ4-0008V3-Kc for help-gnu-emacs@gnu.org; Wed, 15 Jun 2016 11:07:56 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48832) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDCQ4-0008Uq-Gf for help-gnu-emacs@gnu.org; Wed, 15 Jun 2016 11:07:52 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1622 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bDCQ2-0008V3-JK for help-gnu-emacs@gnu.org; Wed, 15 Jun 2016 11:07:51 -0400 In-reply-to: <576087FA.5020106@mousecar.com> (message from ken on Tue, 14 Jun 2016 18:40:58 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:110446 Archived-At: > From: ken > Date: Tue, 14 Jun 2016 18:40:58 -0400 > > First, I can save a listing (sort of*) by running "desktop-save" and > then follow the prompt to select a directory. I always select > ~/.emacs.d/ on the local machine. Is there some way I can configure > desktop-save to always save to this same directory-- and on the local > machine-- and not prompt me each time? If there is no configuration for > this, is it relatively easy to edit the code to accomplish this? The way I do it is turn on desktop-save-mode, then Emacs will save the desktop when I exit automatically. > Second, is there a way for "desktop-save" to be run programmatically > whenever I open a new file/buffer or kill a buffer? In a new enough version of Emacs, the desktop is periodically saved even when no buffer is killed. > *Third, when I use tramp to open a buffer from a remote machine and then > do "desktop-save" etc., that buffer name is written into the session > file after "(setq file-name-history" but not under ";; Buffer section"; > that is, it isn't given a "(desktop-create-buffer" section in the > session file. Consequently, when I next time start emacs, none of the > buffers opened with tramp previous session are opened. Please report this as a bug with a recipe starting from "emacs -Q", and all the relevant details. Thanks.