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 14:27:09 -0900 Organization: AkWebsoft Message-ID: <20151213232709.GC3346@mail.akwebsoft.com> References: <20151213193050.GA3346@mail.akwebsoft.com> <87io42hsoi.fsf@debian.uxu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1450049258 25390 80.91.229.3 (13 Dec 2015 23:27:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 13 Dec 2015 23:27:38 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 14 00:27:27 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 1a8G34-0005en-Ln for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Dec 2015 00:27:26 +0100 Original-Received: from localhost ([::1]:56948 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a8G34-0002v7-1N for geh-help-gnu-emacs@m.gmane.org; Sun, 13 Dec 2015 18:27:26 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48837) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a8G2t-0002ux-1h for help-gnu-emacs@gnu.org; Sun, 13 Dec 2015 18:27:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a8G2o-0002Wo-Id for help-gnu-emacs@gnu.org; Sun, 13 Dec 2015 18:27:14 -0500 Original-Received: from tjohnson.mtaonline.net ([64.4.232.191]:38907) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a8G2o-0002Wc-Ap for help-gnu-emacs@gnu.org; Sun, 13 Dec 2015 18:27:10 -0500 Original-Received: by linus.johnson.com (Postfix, from userid 1000) id 88DFC2007AD; Sun, 13 Dec 2015 14:27:09 -0900 (AKST) Mail-Followup-To: help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: <87io42hsoi.fsf@debian.uxu> 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:108391 Archived-At: * Emanuel Berg [151213 13:59]: > Tim Johnson writes: > > > 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? > > It is much easier to understand what you mean and thus > give help if you don't describe the problem in terms > of technology, but rather from a human POV - what is > it, that you want to do, that you cannot? In what > situation will it solve what problem? Etc. Thanks for the reply. OK: POV -> My pov is the window arrangement. Let's say that my screen is split into 4 windows of equal size. I can save that arrangement in register 'a' by invoking c-x r w a. As I work, I might find myself with another arrangement and want to go back to my original. I invoke c-x r j a and bingo! There I have it. Can I save the arrangement that I saved in the register 'a in my desktop file? My current setup doesn't do that. register-alist is not saved to the desktop file with the same items that I view from *Help* when I invoke c-h v register-alist. I appreciate the code you provided. But my main concern is to preserve a window layout so that when I close emacs and restart or load another desktop and reload the first I desktop can see the same layout. I hope that this narrative is more clear. regards -- Tim http://www.akwebsoft.com, http://www.tj49.com