all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tim Johnson <tim@akwebsoft.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Saving window config using desktop globals
Date: Sun, 13 Dec 2015 11:35:36 -0900	[thread overview]
Message-ID: <20151213203536.GB3346@mail.akwebsoft.com> (raw)
In-Reply-To: <20151213193050.GA3346@mail.akwebsoft.com>

* Tim Johnson <tim@akwebsoft.com> [151213 10:33]:
> Using GNU emacs 24.3 on ubuntu 14.04.
> 
> I use the following method
> (add-to-list 'desktop-globals-to-save 'current-project-directory)
> (add-to-list 'desktop-globals-to-save 'kill-ring)
> to save certain variables.
> 
> How may I extend this method to save and retrieve my window
> configuration? 
> 
> at this point, I'm not using more than the default
> frame.
> 
> I'd like to do this without installing another package. I'm thinking
> about using a dedicated register to save one or more configs.
> 
> I've tried using C-x r w <ENTER> to save it. But when I restart
> emacs and try C-x r j, I get the following:
> 
> jump-to-register: Register doesn't contain a buffer position or
> configuration
  Addendum :
  C-x r w p (save window config in register p)
  and then c-h v register-alist
  shows the following:
  ((112 #<window-configuration> #<marker at 2995 in .emacs>)
   (13 "Unprintable entity" #<marker at 5620 in .emacs>)
    (313465889 "Unprintable entity" #<marker in no buffer>))
  Now :
  Save the desktop and close emacs. Re-open emacs
  and retrieve the desktop file.
  then c-h v register-alist
   ((112 "Unprintable entity" #<marker at 2995 in .emacs>)
    (13 "Unprintable entity" #<marker at 5620 in .emacs>)
	 (313465889 "Unprintable entity" #<marker in no buffer>))
  ... No window config

-- 
Tim 
http://www.akwebsoft.com, http://www.tj49.com



  reply	other threads:[~2015-12-13 20:35 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-13 19:30 Saving window config using desktop globals Tim Johnson
2015-12-13 20:35 ` Tim Johnson [this message]
2015-12-13 22:47 ` Emanuel Berg
2015-12-13 23:20   ` Emanuel Berg
2015-12-13 23:28     ` Emanuel Berg
2015-12-13 23:33       ` Tim Johnson
2015-12-13 23:41         ` Emanuel Berg
2015-12-13 23:48           ` Tim Johnson
2015-12-14  0:20             ` Emanuel Berg
2015-12-14  0:47               ` Tim Johnson
2015-12-14  0:57                 ` Emanuel Berg
2015-12-14  1:28                   ` Tim Johnson
2015-12-15  0:09                     ` [closed]Re: " Tim Johnson
2015-12-15  4:40                       ` Stefan Monnier
2015-12-16  2:27                       ` Emanuel Berg
2015-12-15  4:13                     ` Emanuel Berg
2015-12-13 23:27   ` Tim Johnson
2015-12-13 23:34     ` Emanuel Berg

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=20151213203536.GB3346@mail.akwebsoft.com \
    --to=tim@akwebsoft.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.
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.