From: Hongyi Zhao <hongyi.zhao@gmail.com>
To: Drew Adams <drew.adams@oracle.com>
Cc: Tak Kunihiro <homeros.misasa@gmail.com>,
tkk@misasa.okayama-u.ac.jp,
help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: Looking for some recommended configurations for desktop-save-mode and savehist-mode.
Date: Mon, 18 Jan 2021 11:25:39 +0800 [thread overview]
Message-ID: <CAGP6POLDNf6VMbw_gw_i7cZex+mLpdhg=Zk=jQ7TiwWwPviSDw@mail.gmail.com> (raw)
In-Reply-To: <478fa5ea-636e-4e27-8f08-a3258eabb7de@default>
On Mon, Jan 18, 2021 at 2:44 AM Drew Adams <drew.adams@oracle.com> wrote:
>
> Not sure what the original question was, but
> I'll add this info to the discussion, in case
> it helps.
>
> Besides explicitly or implicitly saving the
> desktop, you can _bookmark_ a desktop.
>
> The vanilla desktop code (desktop.el) doesn't
> make it easy to have multiple desktop files,
> and it doesn't provide for more than one
> desktop file per directory.
>
> There's absolutely no reason that a desktop
> file should be tied to a directory. But that
> limitation is built into what desktop.el
> provides and expects. It's a poor design,
> but it's never been fixed.
>
> To bookmark desktops you need Bookmark+.
>
> Bookmark+ defines command `bmkp-desktop-read',
> which loads a desktop file. And command
> `bmkp-desktop-change-dir', which clears the
> current desktop and changes to a desktop file
> you're prompted for. And function
> `bmkp-desktop-save' saves the current desktop
> to a given file.
>
> Such additions, which facilitate using
> multiple desktop files are simple and trivial.
> I've proposed that desktop.el offer the same
> or similar, but that suggestion and request
> has fallen on deaf ears.
>
> That, in itself, doesn't even have anything
> to do with bookmarks. Why is it needed? To
> be able to flexibly create and use multiple
> desktop files, located anywhere.
>
> All that's recorded for a desktop is saved
> in a file. Hard-code associating that with
> some directory doesn't help in any way; it's
> just a hindrance, IMO.
>
> A desktop bookmark just records a desktop
> file. So these desktop enhancements also
> facilitate having desktop bookmarks.
>
> Desktop bookmarks let you switch among
> desktops by hitting a key - jump among
> different bookmarks.
>
> Emacs desktops can save lots of kinds of
> state, including buffers (and their points,
> marks, and local variables), files, windows,
> frames, and variables.
>
> (Bookmark+ also lets you save and restore
> other bits of state, e.g. sets of variables,
> by jumping to bookmarks.)
>
> https://www.emacswiki.org/emacs/BookmarkPlus
>
> https://www.emacswiki.org/emacs/BookmarkPlus#DesktopBookmarks
Thank you so much for letting me know this.
Best regards,
--
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Polytechnic University of Science and Technology engineering
NO. 552 North Gangtie Road, Xingtai, China
prev parent reply other threads:[~2021-01-18 3:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-17 4:29 Looking for some recommended configurations for desktop-save-mode and savehist-mode Hongyi Zhao
2021-01-17 8:52 ` Tak Kunihiro
2021-01-17 14:29 ` moasenwood--- via Users list for the GNU Emacs text editor
2021-01-17 18:42 ` Drew Adams
2021-01-18 3:25 ` Hongyi Zhao [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='CAGP6POLDNf6VMbw_gw_i7cZex+mLpdhg=Zk=jQ7TiwWwPviSDw@mail.gmail.com' \
--to=hongyi.zhao@gmail.com \
--cc=drew.adams@oracle.com \
--cc=help-gnu-emacs@gnu.org \
--cc=homeros.misasa@gmail.com \
--cc=tkk@misasa.okayama-u.ac.jp \
/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.