unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: ken <gebser@mousecar.com>
To: GNU Emacs List <help-gnu-emacs@gnu.org>
Subject: desktop-save problems
Date: Tue, 14 Jun 2016 18:40:58 -0400	[thread overview]
Message-ID: <576087FA.5020106@mousecar.com> (raw)

Hi, all,

Still there are problems with saving sessions.

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?

Second, is there a way for "desktop-save" to be run programmatically 
whenever I open a new file/buffer or kill a buffer?  That is, opening a 
new buffer would automatically add that buffer to the session file (for 
me, that's .emacs.desktop), killing a buffer would remove it from the 
session file.

*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.


Many years ago emacs did all the above just fine.  Anyone know what 
happened?  Just curious.

Thanks for any help.





             reply	other threads:[~2016-06-14 22:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-14 22:40 ken [this message]
2016-06-15 15:08 ` desktop-save problems Eli Zaretskii
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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=576087FA.5020106@mousecar.com \
    --to=gebser@mousecar.com \
    --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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).