unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* desktop-save problems
@ 2016-06-14 22:40 ken
  2016-06-15 15:08 ` Eli Zaretskii
  0 siblings, 1 reply; 7+ messages in thread
From: ken @ 2016-06-14 22:40 UTC (permalink / raw)
  To: GNU Emacs List

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.





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-07-14 11:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-14 22:40 desktop-save problems ken
2016-06-15 15:08 ` 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

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