all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: desktop-save problems
Date: Wed, 15 Jun 2016 18:08:48 +0300	[thread overview]
Message-ID: <831t3yebgf.fsf@gnu.org> (raw)
In-Reply-To: <576087FA.5020106@mousecar.com> (message from ken on Tue, 14 Jun 2016 18:40:58 -0400)

> From: ken <gebser@mousecar.com>
> 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.



  reply	other threads:[~2016-06-15 15:08 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-14 22:40 desktop-save problems ken
2016-06-15 15:08 ` Eli Zaretskii [this message]
2016-07-13 19:49   ` ken
2016-07-13 20:02     ` Eli Zaretskii
2016-07-13 22:24       ` ken
2016-07-14  2:38         ` Eli Zaretskii
2016-07-14 11:30           ` ken

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=831t3yebgf.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.