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 19:01:06 +0300 Message-ID: <83bkuaf8e5.fsf@gnu.org> References: <87leti6b6e.fsf@codeisgreat.org> <871qv7a3ey.fsf@gmail.com> <83y1xe45ga.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17033"; 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 18:05:54 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 1o6wfy-0004Gn-4E for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 30 Jun 2022 18:05:54 +0200 Original-Received: from localhost ([::1]:46372 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o6wfw-00032k-R3 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 30 Jun 2022 12:05:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33530) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6wbO-0002Vj-Hs for help-gnu-emacs@gnu.org; Thu, 30 Jun 2022 12:01:17 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:52868) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6wbI-0007jB-3b for help-gnu-emacs@gnu.org; Thu, 30 Jun 2022 12:01:07 -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=n59uGkTcK8i2Y0gDS27rJchqal8AoQwgbEUnyR9qjOo=; b=d6K4a0geWXB+ VEL4Uq1hltiQlpJbp3Hg4Si36X9WN9zGNXLG2gJButKXU73rmH7vSJn0oBim3ALCzLcyG/gHTYLmy 3gmzlf518BTUQptt0J5nKVKuGO9aat50gbMeiqNCo5KLsDDbTAgtX3qDIKrbXj4cab/mKRhWoFTiS GHISkcCBaDQSwhDbNYEvcEDz/sj96x9q89inAQW3XKPoMXtC7pUzDNhI6NOei6tLdp5umGvf2Sxgn k04OqKElRsJDtZ2TxYR0gkQE9ocxWe6jsbZ7kaTh8UirNBwLmduRJCUHYWK/BN9eaMUlTvnXXQ438 HzI4q2iFAiurexl4BmkHiQ==; Original-Received: from [87.69.77.57] (port=3625 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 1o6wbB-0007gF-P6 for help-gnu-emacs@gnu.org; Thu, 30 Jun 2022 12:01:03 -0400 In-Reply-To: (message from Jean Louis on Thu, 30 Jun 2022 17:33:47 +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:138240 Archived-At: > Date: Thu, 30 Jun 2022 17:33:47 +0300 > From: Jean Louis > Cc: help-gnu-emacs@gnu.org > > > Is anything wrong with using desktop-save-mode? > > For me that is so little useful. Imagine having 2-3 windows and > particular flow, but also other 100 buffers. User may wish to save > that visible window configuration and not all of the buffers > available inside of Emacs. Knock yourself out, if you want, but I think you underestimate the problem before you. E.g., how can you save just the window configuration without also saving which files were visited by each of the window, where was the point in each buffer, what were your local variables and minor modes, perhaps the mark position in each buffer, maybe the last search string etc.? desktop.el has all of that already figured out, and gives you useful customization variables to decide what you'd like to save/restore. > desktop-save is so much complex in its operation. I do not use it > for that reason. I wonder why it matters how complex the software is if it does the job. Emacs itself is orders of magnitude more complex than desktop.el, but you still use it to your benefit, as do I and everyone else on this list.