all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: "Drew Adams" <drew.adams@oracle.com>
Cc: emacs-devel@gnu.org, 'Philipp Haselwarter' <philipp@haselwarter.org>
Subject: Re: emacs save/restore state?
Date: Wed, 16 May 2012 10:38:38 -0400	[thread overview]
Message-ID: <jwvhavggpok.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <BA96501368664C5292C264EC00C52E8E@us.oracle.com> (Drew Adams's message of "Wed, 16 May 2012 06:24:10 -0700")

> True.  This wishlist occurs to me, to keep in mind when looking for
> a solution:
> 1. Factoring out some code commonality would be good (modulo other wishes).
> 2. Users should be able to save histories without necessarily saving
>    all the other desktop stuff.
> 3. Users should be able to save other desktop stuff without
>    necessarily saving histories.
> 4. Users can save multiple desktops, which should be able to have
>    different saved histories.  IOW, a given history variable, e.g.,
>    `file-name-history', could have a different saved value in
>    different desktops.

Agreed.  I think the way forward is to restructure the code so
desktop.el can use savehist-mode (e.g. so it can tell it where/when to
save the history).

There's a similar issue with saveplace.el (again, with slightly
different semantic but no good reason why saveplace.el can't provide the
needed flexibility for desktop.el to use it and let the user choose
between the usual desktop.el semantics or the usual saveplace.el
semantics).


        Stefan



      reply	other threads:[~2012-05-16 14:38 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-07 16:01 emacs save/restore state? Nelson H. F. Beebe
2012-04-07 16:15 ` Andreas Schwab
2012-04-07 17:05   ` Nelson H. F. Beebe
2012-04-07 17:11     ` Drew Adams
2012-04-09  2:27       ` Stefan Monnier
2012-04-09  2:52         ` Drew Adams
2012-04-09 12:26       ` Dave Abrahams
2012-04-16 18:04     ` Philipp Haselwarter
2012-05-15 21:11       ` Stefan Monnier
2012-05-15 21:22         ` Drew Adams
2012-05-16  2:30           ` Stefan Monnier
2012-05-16 13:24             ` Drew Adams
2012-05-16 14:38               ` Stefan Monnier [this message]

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=jwvhavggpok.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=philipp@haselwarter.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.