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: Sun, 03 Jul 2022 08:02:02 +0300 Message-ID: <834jzybxh1.fsf@gnu.org> References: <83v8she1vp.fsf@gnu.org> <83tu80cb54.fsf@gnu.org> <83bku7dgxl.fsf@gnu.org> <83czenbeg5.fsf@gnu.org> <838rpbbbl2.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19138"; 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 Sun Jul 03 07:02:50 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 1o7rkv-0004nW-Nc for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 03 Jul 2022 07:02:49 +0200 Original-Received: from localhost ([::1]:33474 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o7rku-0000kz-SE for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 03 Jul 2022 01:02:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55690) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o7rkO-0000kj-8z for help-gnu-emacs@gnu.org; Sun, 03 Jul 2022 01:02:16 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:60794) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o7rkO-00079S-0Z for help-gnu-emacs@gnu.org; Sun, 03 Jul 2022 01:02:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=qnKR7EsKjG/UlbFSXAWjfCP6L4i/u5hrYaWiWxmOHq4=; b=dSEgc9joiSxD jq1DJvYhc2hhrxf5VHVgGURGbtbeTq7aRSiLxaaQjgGsmzBnP+EUKsanPW2R7mV8NGdPyTsxqad7W BBDnWl4Vj6+qiHnXSfFnZvVUp592ODjwswgtC6cPdYTLl8xfor6rN3/tDKGk12SGa7yrOCLGa9wQp /qBvRqedgzVBbz8vqS/+PwZpvmyFeqVTHqVHypQg3kdbVNFBUvj9OYGnzQA30QGJEBnmnhokADHTd j6JGOhwmNiYYZVB0va91UVy4i4IrnwLNZvsOdkbV8ENSMEWRthZrjdHLV1HjCYJswfiP1WJPtlo9Q pdds+nKg/hY/g+FWBtU/FA==; Original-Received: from [87.69.77.57] (port=1200 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 1o7rkN-0001dw-EI for help-gnu-emacs@gnu.org; Sun, 03 Jul 2022 01:02:15 -0400 In-Reply-To: (message from Jean Louis on Sat, 2 Jul 2022 21:52:03 +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:138268 Archived-At: > Date: Sat, 2 Jul 2022 21:52:03 +0300 > From: Jean Louis > Cc: help-gnu-emacs@gnu.org > > > > (frameset-restore (car (read-from-string (prin1-to-string (frameset-save (frame-list)))))) > > > > frameset-restore is supposed to be called with a valid frameset > > object. > > That was the way I expected it to return valid frameset object, as if > it saved, then it should be possible to restore it by reading from > string as well. > > Need more clues why it does not work. I suggest to look in desktop.el how it loads the frameset from a file.