From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.bugs Subject: bug#17090: desktop.el saves unusable register data in register-alist Date: Mon, 30 Sep 2019 10:10:30 +0200 Message-ID: References: <87tv8vgo4n.fsf@gnus.org> <87a7angnbk.fsf@gnus.org> <87pnji8ki4.fsf@gnus.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000267e080593c0c77d" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="125151"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 17090@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 30 10:12:13 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iEqmx-000WRO-6M for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Sep 2019 10:12:11 +0200 Original-Received: from localhost ([::1]:47106 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iEqmv-0003nT-SN for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Sep 2019 04:12:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49245) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iEqmp-0003nK-0h for bug-gnu-emacs@gnu.org; Mon, 30 Sep 2019 04:12:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iEqmo-0006GP-0I for bug-gnu-emacs@gnu.org; Mon, 30 Sep 2019 04:12:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48061) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iEqmn-0006GJ-Q3 for bug-gnu-emacs@gnu.org; Mon, 30 Sep 2019 04:12:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iEqmn-0000MW-KZ for bug-gnu-emacs@gnu.org; Mon, 30 Sep 2019 04:12:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juanma Barranquero Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Sep 2019 08:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17090 X-GNU-PR-Package: emacs Original-Received: via spool by 17090-submit@debbugs.gnu.org id=B17090.15698310761329 (code B ref 17090); Mon, 30 Sep 2019 08:12:01 +0000 Original-Received: (at 17090) by debbugs.gnu.org; 30 Sep 2019 08:11:16 +0000 Original-Received: from localhost ([127.0.0.1]:56882 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEqm4-0000LN-Ay for submit@debbugs.gnu.org; Mon, 30 Sep 2019 04:11:16 -0400 Original-Received: from mail-qt1-f171.google.com ([209.85.160.171]:41142) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEqm1-0000L4-Dr for 17090@debbugs.gnu.org; Mon, 30 Sep 2019 04:11:14 -0400 Original-Received: by mail-qt1-f171.google.com with SMTP id n1so15882019qtp.8 for <17090@debbugs.gnu.org>; Mon, 30 Sep 2019 01:11:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5j/rlMOnFQNFwAfFTGEHYoFziKGTmC1X5fDLnRpFVtM=; b=AxbCOWzfgLeDfZEejhadXYrsrw5OIfWxIoU8zskCa/fg4DNZc7REXXRaSybeVwArIE 7/6Z43Xo/jrkifRSFAUqONlZdbxjZBgePVbT78bbUfCMna8eENhRy9tuOvsqVtXTb87y M71dzDCfoV8p+c50rQjOP5OFM0GrNe9sK4dCIZNWsCOdC+EoFrMHAZovkknEHMgMStsj 4oXyYlpUq3fLaHhwfKBBxm2Asfwl2w1QksuqsFXJ6ybknfbiceEU1AghwW3/uhRRF5el k3FBu2hnKFLatKAcxysPkb3mbWds36oukeq5iMNzwjN8voPrRSPB/UD+9XoYeZSpdgPu SDfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5j/rlMOnFQNFwAfFTGEHYoFziKGTmC1X5fDLnRpFVtM=; b=Mz0fhgG7uoNJOmzLcCNz7opDoHVQFiaqy2ImNnrG0nHR6+Fyh/U3DKklD+NbC51UoD yfrRt0QoBl3bRPfIzcRLvbge/79s7JCNyTm92PnPw15pwEFK6Ns3u/zfWcABvVUTYL1Z tJcbqsbRWBoKynNymhDJU2s1CbvMAb6tsoNKI0N0lMdZYgQ5gv+DekYB1B+6f/Rl52ng eD5AdIYziaLVcyXRtQzPWoW8//WjtBErtZKI+N8xAPjKaIAaD1jFQ0vIcylTgb60nXRK uhCs7sZkSmDXr1nMoEwTyh2ow+VK0sArj5vXKYxr+u+aq3HtRyExV63l8TWn9VReGkmc AzCw== X-Gm-Message-State: APjAAAUSdWfR3dYbYiiC3odA7wGryuvmGiFNGqdgzVSx23ckg9sUscTl A78Tpp52f7OxZDGaTkJ5sap2Hk5kRJ3/5g1qmYw= X-Google-Smtp-Source: APXvYqwX8jOj/DrN72CfDOhtOPb8gjzZdqhDCcZXm/jtVpPS3RRoZsGa8CUcl1SheasQ6C94BfbRaXwe2lguLVz8r8Y= X-Received: by 2002:ac8:5448:: with SMTP id d8mr23372337qtq.287.1569831067744; Mon, 30 Sep 2019 01:11:07 -0700 (PDT) In-Reply-To: <87pnji8ki4.fsf@gnus.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:167852 Archived-At: --000000000000267e080593c0c77d Content-Type: text/plain; charset="UTF-8" On Mon, Sep 30, 2019 at 6:40 AM Lars Ingebrigtsen wrote: > It sounds like we should perhaps refer users to the C-x r f a command > instead... Currently, the function assigned to the C-x r map to save a frameset saves all the frames, so in some uses, saving and restoring the window configuration (which affects just one frame) is faster and cleaner. Also, restoring a frameset not only restores the window configuration, but also position on the screen. Of course, it would be possible to add another command, or a prefix parameter, to frameset-to-register, to save just the selected frame, and to restore the frameset without moving the frame. > But in any case, desktop.el probably shouldn't be saving > these useless window configuration registers. Definitely. It's wasted space and time, and does not serve any useful purpose. FWIW, I agree. Documenting the issue and filtering out the window-configurations on desktop save seems like the easier answer right now. Don't think it's really a very urgent or frequent issue. --000000000000267e080593c0c77d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Mon, Sep 30, 2019 at 6:40 AM Lars Inge= brigtsen <larsi@gnus.org> wrote= :
=C2=A0
> It sounds like we should perhaps refer users to t= he C-x r f a command
> instead...=C2=A0

Currently, the functi= on assigned to the C-x r map to save a frameset saves all the frames, so in= some uses, saving and restoring the window configuration (which affects ju= st one frame) is faster and cleaner. Also, restoring a frameset not only re= stores the window configuration, but also position on the screen.

Of course, it would be possible to add another command, or = a prefix parameter, to frameset-to-register, to save just the selected fram= e, and to restore the frameset without moving the frame.

=
> But in any case, desktop.el probably shouldn't be savin= g
> these useless window configuration registers.

Definitely. It's wasted space and time, and does not serve any us= eful purpose.

FWIW, I agree. Documenting the issue and filter= ing out the window-configurations on desktop save seems like the easier ans= wer right now. Don't think it's really a very urgent or frequent is= sue.
--000000000000267e080593c0c77d--