From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ken Newsgroups: gmane.emacs.help Subject: Re: desktop-save problems Date: Wed, 13 Jul 2016 15:49:24 -0400 Message-ID: <57869B44.7050907@mousecar.com> References: <576087FA.5020106@mousecar.com> <831t3yebgf.fsf@gnu.org> Reply-To: gebser@mousecar.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1468439419 31278 80.91.229.3 (13 Jul 2016 19:50:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Jul 2016 19:50:19 +0000 (UTC) To: Eli Zaretskii , GNU Emacs List Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 13 21:50:10 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 1bNQAZ-0004Js-7B for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Jul 2016 21:50:07 +0200 Original-Received: from localhost ([::1]:49661 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNQAY-0008Ek-NJ for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Jul 2016 15:50:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43577) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNQA3-00087b-GF for help-gnu-emacs@gnu.org; Wed, 13 Jul 2016 15:49:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bNQ9y-0004gD-EL for help-gnu-emacs@gnu.org; Wed, 13 Jul 2016 15:49:35 -0400 Original-Received: from mout.perfora.net ([74.208.4.196]:64987) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNQ9y-0004eE-6u; Wed, 13 Jul 2016 15:49:30 -0400 Original-Received: from nv.mousecar.net ([96.27.75.237]) by mrelay.perfora.net (mreueus003) with ESMTPSA (Nemesis) id 0Lb2rv-1azNxH1l3x-00kjG6; Wed, 13 Jul 2016 21:49:26 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 In-Reply-To: <831t3yebgf.fsf@gnu.org> X-Provags-ID: V03:K0:5khhuwiCfaxad4tW9hQKpZVTFlxjD91cEwwCSVtaT7z4mlBuHTA 3Egp2jAKHHhlL/s6hAjrz1YHyJsr6Ujp65B4QvKxFAHcviazP0IxuR0RDXu2/00ypk9sCnI K2gAoSNjoHQbw3VQigkQ66qcQsxlPe1ZTbmCWUTn97WwnkNsRQLuh5MQgUIyfTp5cNBolsG +S3MWV0dHCAcXxWoqh5lA== X-UI-Out-Filterresults: notjunk:1;V01:K0:nSTuQXlrR6I=:iy3qUNi2BOZVzqo6HwHIe+ s2WH9DsJ5+Ff2YwmwqoQQpyLt/+lTfDt7WQ9EZAKn/G96s9uOV3zc/XJTWeqdzHuSXHPrsmop p6nf6JgWhYItOSDXWMZhav1oaWk8X+6OOOE7bJZZs+48La7hmTbrfAhYU+GkUJP8sfefGg76T AW8u1MvAPOgfX6UlWLlls/zdkqqqAOeqC4uLy67ZGFmIks542LSvGpSCv7t6VS7HOToWSmIat FrK7CGaDQqY9oergXAAeXlXjiozjLdGMM3XpwZebWOSWeic5jir3YRu2+hjFlHEDmnNObfKYm tmHMbhEI2bfLRhoRBGP181ocKLxhCZrkfyB2du7T0EId1TX0zP8v3PuQbZLUEAMuDuH31uL+Z y0wIuxKtMSCjXe60RJIcCXwnRZinZh5kcmmko/+UMzuSGw+uSHrZQrfP154CHWoP/5CHrR0HA yTS9b7eTpM+CcyWJuUKP7ES1RNGLYntZ+U/YW3OfQjvU1E4FFSbyzcW9zQ8mFksy8QzxsCFFd ReTiqoZfRXCEcrik9RhZYZ0higgfPHPBTtUBVAUj2eCr8Ah2NOchx2VJpgVK3d4Q3e1grDuNe kIN6x6rCHDSAXc8YnbG+OTDCkU96+TJXV8Cer+Z3o/CDM+UL15LA5WANRaB08w+WyWVfCHwz4 b/zxY97gG0yHA0ZIFgJ4rfOhyFeEP7EeH2JWR1HOYiRyY8VgPBGRS4hPEZguJTgV63KKAkI4c LmJaJ3c+FrzfVLh6 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 74.208.4.196 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:110817 Archived-At: On 06/15/2016 11:08 AM, Eli Zaretskii wrote: >> 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. This means that the desktop isn't saved when the system crashes, e.g., the power suddenly goes out, yes? Also, in my emacs (24.3.1) I'm always prompted for the directory to save the desktop in. Is there a way to specify one directory where the desktop is saved so I don't have this prompt come up? >> 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. Which version is "new enough"? Also, wouldn't it make more sense for desktop-save to work when file or buffer is opened or closed? >> *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. Did this. Thanks.