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: Sat, 02 Jul 2022 12:04:06 +0300 Message-ID: <83bku7dgxl.fsf@gnu.org> References: <83y1xe45ga.fsf@gnu.org> <83bkuaf8e5.fsf@gnu.org> <83zghte5gl.fsf@gnu.org> <83v8she1vp.fsf@gnu.org> <83tu80cb54.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1397"; 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 Sat Jul 02 11:04:47 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 1o7Z3X-0000Bb-Bq for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 02 Jul 2022 11:04:47 +0200 Original-Received: from localhost ([::1]:43608 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o7Z3U-0004R2-Dw for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 02 Jul 2022 05:04:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58980) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o7Z30-0004Qq-FB for help-gnu-emacs@gnu.org; Sat, 02 Jul 2022 05:04:14 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:46172) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o7Z2y-0003DW-Km for help-gnu-emacs@gnu.org; Sat, 02 Jul 2022 05:04:14 -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=lCzaGSbSEjhtVhiv653Ld8sQIRwhaiT6hLj2J72R6dU=; b=SZ6uYK8fxE7k zHYlHj92ea1+JLsrgBK5Dw/MEN1K7ikBufheC6/2rfnu+OsmexuXbWcKHtvlWRNPUa4ptzyj+h5qu cu+qBYWZG8Jq+ON32UsTHAXnyYCCm16CwGCHeqzw5kwXoXXB0dBn5EeBn0emGfiWEYBLuhtc4axMo 7GnjL1in7MeCgnt1X/vxarOrrsROKJbYj8WUWOwBymAN+K+ZywrjFDUX3GKQLG+4X0T7mGHwjNLMm MPOMg169VpmoDQTdW3y8j8nj6Wy+Blazs9rxazmDVuP9n4cexpyrEvNl0vpfmX+XcYKyHi5hVLtFZ hO8QdqfsPC94CfnJL1s2dQ==; Original-Received: from [87.69.77.57] (port=3495 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 1o7Z2x-0005yH-33 for help-gnu-emacs@gnu.org; Sat, 02 Jul 2022 05:04:11 -0400 In-Reply-To: (message from Jean Louis on Sat, 2 Jul 2022 11:46:49 +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:138254 Archived-At: > Date: Sat, 2 Jul 2022 11:46:49 +0300 > From: Jean Louis > Cc: help-gnu-emacs@gnu.org > > Purpose is to isolate that information and become able to store it on > file or inside of the database, so that I can use a key to set some of > preset window configurations from session to session and in quick > manner. "Use" it how? To do what with those "preset window configurations"? That was my question, and you didn't really answer it. > Desktop.el saves everything, and offers directory to user to save > it. Saving hundreds of buffers takes long time and loading desktop > again simply does not work on my side. My buffers are many, like now > there is 795 buffers. Then it starts first that I have to confirm > variables, then I see million messages how some directories do not > exist as Dired was accessing mounted disks, it really takes long > time. From 795 buffers, I get 294 buffers. > > It is definitely NOT that what I want, it is not practical. > > What I want is: > > 1) Having 3-5 buffers in specific window configuration. Regardless of > other buffers, I wish to be able to restore such window > configuration. > > 2) Having possibility to save multiple such window configurations and > quickly with minimum keys or with menu get access to it. I pointed to frameset.el, which is a lower-level infrastructure used by desktop.el. It should allow you to save and restore windows of a single frame, if that suits your needs better. > If at least I get clue how to get the split parameters of a frame, > modes, its sizes of windows, as Lisp data, then I would be fine with > it, and then I can myself assign something to those buffers. My > buffers are too often buffers related to database, table, column and > ID and do not have files attached. The clues, as you were told, are in frameset.el and in desktop.el. If their high-level interfaces don't suit your needs, my suggestion would be to study their implementations, and derive your own code from what they do.