From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: How to persist registers across sessions? Date: Thu, 30 Jun 2022 17:00:05 +0300 Message-ID: <83y1xe45ga.fsf@gnu.org> References: <87leti6b6e.fsf@codeisgreat.org> <871qv7a3ey.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37141"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 30 16:01:31 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o6uja-0009SY-P7 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 30 Jun 2022 16:01:30 +0200 Original-Received: from localhost ([::1]:58508 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o6ujZ-0007eB-Op for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 30 Jun 2022 10:01:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56904) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6ui4-0007bx-D8 for help-gnu-emacs@gnu.org; Thu, 30 Jun 2022 09:59:56 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:50272) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6ui4-0008IM-4w for help-gnu-emacs@gnu.org; Thu, 30 Jun 2022 09:59:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=XuI3/UlU4f0ZWNHPSqHBtYk/FKL/73TLn3ofdN/2vFA=; b=R0hCynR4Sjt/598/L83n S18TM1MInQPmQlVQi8DYG60h9Acyu5l8yLu7oSFfKHT1UL6lvyGY6gbc3lfjaXNBOD3fQ0CvxOSEJ zTlJrZSaZ/lKC4EC1WHnZM3oG5rwiK6wvJOD5JMkStmbIAEzz1c5XhVK7q7AQvRTHlLhbk5KUkPwb sFueygay1C9BEu8WNVh+4z+gH0hDPUrWzBIOzuyBFAk4tzGnbWWr+VI1PBw1Pci+uE6JHeDT7rLwQ cfvVpakJjONq4YGhfrecq7s2WAz/1N1bLtOIGyqZWGmNaTb9E+nRPjywY371KQP9+2cusCHg3392A u3WkeleBgNDfMQ==; Original-Received: from [87.69.77.57] (port=4151 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6ui3-0008Co-K7 for help-gnu-emacs@gnu.org; Thu, 30 Jun 2022 09:59:55 -0400 In-Reply-To: (message from Jean Louis on Thu, 30 Jun 2022 15:50:36 +0300) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:138230 Archived-At: > Date: Thu, 30 Jun 2022 15:50:36 +0300 > From: Jean Louis > Cc: help-gnu-emacs@gnu.org > > If somebody tells me how to `read' window configuration then I can > provide function to save and load it. > > However, I do not know how to save/read # as > object > > It looks like this: > (current-window-configuration) ⇒ # > > That is not enough data. Any reason you are insisting on reinventing the wheel, when we already have desktop.el? It does all that, and is ready to be used (I use it all the time). Is anything wrong with using desktop-save-mode?