From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim Johnson Newsgroups: gmane.emacs.help Subject: Re: Saving window config using desktop globals Date: Sun, 13 Dec 2015 11:35:36 -0900 Organization: AkWebsoft Message-ID: <20151213203536.GB3346@mail.akwebsoft.com> References: <20151213193050.GA3346@mail.akwebsoft.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1450038965 8088 80.91.229.3 (13 Dec 2015 20:36:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 13 Dec 2015 20:36:05 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Dec 13 21:35:55 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a8DN4-0001uu-TD for geh-help-gnu-emacs@m.gmane.org; Sun, 13 Dec 2015 21:35:55 +0100 Original-Received: from localhost ([::1]:56529 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a8DN4-0004a1-DU for geh-help-gnu-emacs@m.gmane.org; Sun, 13 Dec 2015 15:35:54 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46289) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a8DMs-0004Zq-LA for help-gnu-emacs@gnu.org; Sun, 13 Dec 2015 15:35:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a8DMn-0000sd-OZ for help-gnu-emacs@gnu.org; Sun, 13 Dec 2015 15:35:42 -0500 Original-Received: from tjohnson.mtaonline.net ([64.4.232.191]:38604) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a8DMn-0000sT-Aj for help-gnu-emacs@gnu.org; Sun, 13 Dec 2015 15:35:37 -0500 Original-Received: by linus.johnson.com (Postfix, from userid 1000) id 241C62007AD; Sun, 13 Dec 2015 11:35:36 -0900 (AKST) Mail-Followup-To: help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: <20151213193050.GA3346@mail.akwebsoft.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 64.4.232.191 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:108388 Archived-At: * Tim Johnson [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 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 # #) (13 "Unprintable entity" #) (313465889 "Unprintable entity" #)) Now : Save the desktop and close emacs. Re-open emacs and retrieve the desktop file. then c-h v register-alist ((112 "Unprintable entity" #) (13 "Unprintable entity" #) (313465889 "Unprintable entity" #)) ... No window config -- Tim http://www.akwebsoft.com, http://www.tj49.com