From: ken <gebser@mousecar.com>
To: Eli Zaretskii <eliz@gnu.org>, help-gnu-emacs@gnu.org
Subject: Re: emacs.desktop non-functional
Date: Fri, 18 Mar 2016 15:21:52 -0400 [thread overview]
Message-ID: <56EC5550.5030801@mousecar.com> (raw)
In-Reply-To: <8360wk9pvb.fsf@gnu.org>
On 03/18/2016 04:01 AM, Eli Zaretskii wrote:
>> From: ken <gebser@mousecar.com>
>> Date: Thu, 17 Mar 2016 17:05:59 -0400
>>
>> in ~/.emacs:
>>
>> (desktop-save-mode 1)
>
> This looks OK. I have the same here, and it does work for me.
>
> Do you have a .emacs.desktop file created when you exit a session? In
> what directories on your system do you have a file by that name? And
> what happens if you invoke desktop-save manually from a running Emacs
> session -- does that file get created/updated somewhere?
>
> Also, what exactly does it mean the "functionality is gone" in your
> case? What did you try to do and what happened?
https://www.gnu.org/software/emacs/manual/html_node/emacs/Saving-Emacs-Sessions.html
"Use the desktop library to save the state of Emacs from one session to
another. Once you save the Emacs desktop—the buffers, their file names,
major modes, buffer positions, and so on—then subsequent Emacs sessions
reload the saved desktop. By default, the desktop also tries to save the
frame and window configuration...."
It doesn't do any of that. Whenever I start emacs (not emacs-client) I
get at most one file (buffer) from a previous session loaded. So of
course too the frame and window config is not reloaded either-- because
there's just one buffer loaded. Saving the multiple frames and window
configuration has never worked for me in the entire history of
session-saving... going back five (?) ten (?) years... since I've been
using it.
Yes, I do have multiple .emacs.desktop files, this because I'm prompted
for a directory when I do manually "M-x desktop-save". I don't
understand the merit in having multiple such files (and by extension the
purpose of the prompting) if I have no way, AFAIK, to pick one other
than whichever is the default when I load emacs.
Eli (or anyone), is there a way to get desktop-save to work
automatically...? that is, to add to the listing in.emacs.desktop the
name of a file when it's opened and, conversely, taken out when the file
is closed (~= buffer is killed)? That's the behavior I was expecting.
tnx for the f1
next prev parent reply other threads:[~2016-03-18 19:21 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-17 1:38 emacs.desktop non-functional ken
2016-03-17 3:39 ` Eli Zaretskii
2016-03-17 21:05 ` ken
2016-03-18 8:01 ` Eli Zaretskii
2016-03-18 19:21 ` ken [this message]
2016-03-18 20:20 ` Eli Zaretskii
2016-03-19 1:35 ` ken
2016-03-19 8:14 ` Eli Zaretskii
2016-03-20 22:35 ` Robert Thorpe
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=56EC5550.5030801@mousecar.com \
--to=gebser@mousecar.com \
--cc=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.
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).