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: Sun, 29 Sep 2019 18:17:24 +0200 Message-ID: References: <87tv8vgo4n.fsf@gnus.org> <87a7angnbk.fsf@gnus.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000008ed6b90593b37698" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="106202"; 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 Sun Sep 29 18:19:12 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 1iEbug-000RUP-2l for geb-bug-gnu-emacs@m.gmane.org; Sun, 29 Sep 2019 18:19:10 +0200 Original-Received: from localhost ([::1]:40812 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iEbue-00055Y-T9 for geb-bug-gnu-emacs@m.gmane.org; Sun, 29 Sep 2019 12:19:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53017) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iEbuZ-00055N-6z for bug-gnu-emacs@gnu.org; Sun, 29 Sep 2019 12:19:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iEbuY-0005lC-2l for bug-gnu-emacs@gnu.org; Sun, 29 Sep 2019 12:19:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46867) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iEbuX-0005k0-TB for bug-gnu-emacs@gnu.org; Sun, 29 Sep 2019 12:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iEbuX-0007CT-ML for bug-gnu-emacs@gnu.org; Sun, 29 Sep 2019 12:19: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: Sun, 29 Sep 2019 16:19: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.156977388927569 (code B ref 17090); Sun, 29 Sep 2019 16:19:01 +0000 Original-Received: (at 17090) by debbugs.gnu.org; 29 Sep 2019 16:18:09 +0000 Original-Received: from localhost ([127.0.0.1]:55688 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEbtg-0007AZ-Sl for submit@debbugs.gnu.org; Sun, 29 Sep 2019 12:18:09 -0400 Original-Received: from mail-qk1-f173.google.com ([209.85.222.173]:46286) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEbte-0007A4-Pj for 17090@debbugs.gnu.org; Sun, 29 Sep 2019 12:18:07 -0400 Original-Received: by mail-qk1-f173.google.com with SMTP id 201so5659886qkd.13 for <17090@debbugs.gnu.org>; Sun, 29 Sep 2019 09:18:06 -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=phoSmluA3LuOiXpiQN7YY9h/wpeUKLzv+/c3+X4fjHw=; b=lr1v9GSaxvYbht8bt7yhsQpo+wkbGtXzEQSV0SHid8tVm+hcNb8PefCVXBmNBIpb5A SVOgucdMHdT8LEHdgZTEKcLHF6PJNjlQCkcYYNFDLI6WmrxGnBKcqLlahXg/tOCgeiuR LrlKDgY0w0i+73GYBcqRD+qYdBC3L/1ai3X3bXmEgQ3KktzT2r/AQ00D91imtytfXCP8 b61N6j05kAMSiB1yTGMvyzYQ1YIpcq8646jMlzh/1k2jTzRvsQPEoLgo997VvpBY4luE dnBQDbyTnkentnd+MBYGcLL6emmzU1VmMVY06S8HCagnvU4vJ79ZlhB/yX8R5k79dQzl vkdg== 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=phoSmluA3LuOiXpiQN7YY9h/wpeUKLzv+/c3+X4fjHw=; b=MYzznhVumWNNxVjIMOG4ps5/4J8s2KAoO+FAkIm1pVMPm4SwpllmRipnUZMBxbMTvV QNJ9eG4dXpqDlhzWRNRrexhuj6PcTjVqlNS+cRYKQ6v8PWno6gqiaLXjiQjWaJQMRIq6 YeZqvYlKSuEDXyoBj6J+iyhiAjmwKmaeCFJuIHXQ6qLcond6Q5CaBCrMbQgWzvypoZN+ 519AzEF4BSw5baFo7XtmOm9vs6q+s9b5+xLitfhT6bU/0e/zFygHHrbqrgQOa617h5kH oU1VbUscZZouFhjQ7zAJoaH8iyIvpFDnMg7A6MnbJ7ZVIKlK0Ri1XfQFjrRMfbGVZ7XH RFRA== X-Gm-Message-State: APjAAAWRuGl8KKPPZgFbHAqI0DNY7cymIDJhQO0069+4S1vN+puL3JlD r28ad5SO6O74uOk4DyIEJ7ZdNQnX0cRk+wJG9KQ= X-Google-Smtp-Source: APXvYqw1aFa8Y8skz7PDZUN+hk7NMbUe7lQC9OU32LoPaT0nyaZ2v3e0PUPtpuxcuuLQxAp4Dh1JJvZifrFfjtGQjO0= X-Received: by 2002:a37:a411:: with SMTP id n17mr15349573qke.216.1569773881053; Sun, 29 Sep 2019 09:18:01 -0700 (PDT) In-Reply-To: <87a7angnbk.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:167720 Archived-At: --0000000000008ed6b90593b37698 Content-Type: text/plain; charset="UTF-8" Curious that my original recipe (fixing the C-x C-x to C-x C-c, as I suppose I intended) doesn't work now because emacs -Q -f desktop-read does not read the desktop file from the current directory ('.' is no longer in desktop-path). But anyway, back to the issue: > Hm, I think I was wrong here -- I'm not getting exactly the same errors > as in earlier versions of Emacs, but the data that's saved still isn't > usable. Correct. But, I suppose it is perhaps not worth fixing now, because after that we implemented framesets, and you can do C-x r f a and the frameset in register a is saved and correctly reloaded afterwards. It's a bit of an overkill, of course. If we want to fix it, perhaps we could trick our way, by using framesets to save a one-frame frameset with some special info to mark that it is really intended to be just a window-configuration, and then, when reloading the desktop, restoring somehow the window configuration into the register, from the frameset data. No idea if it is worth the effort, but I think it would be doable. --0000000000008ed6b90593b37698 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Curious that my original recipe (fixing the C-x C-x to C-x= C-c, as I suppose I intended) doesn't work now because=C2=A0

<= /div>
=C2=A0 emacs -Q -f desktop-read

does not= read the desktop file from the current directory ('.' is no longer= in desktop-path).=C2=A0

But anyway, back to the i= ssue:

> Hm, I think I was wrong here -- I'm not getting exact= ly the same errors
> as in earlier versions of Emacs, but the data th= at's saved still isn't
> usable.

Correct.

But, I suppose it is perhaps not worth fixing now, = because after that we implemented framesets, and you can do

<= /div>
C-x r f a

and the frameset in register a= is saved and correctly reloaded afterwards. It's a bit of an overkill,= of course.

If we want to fix it, perhaps we could trick our way, by= using framesets to save a one-frame frameset with some special info to mar= k that it is really intended to be just a window-configuration, and then, w= hen reloading the desktop, restoring somehow the window configuration into = the register, from the frameset data. No idea if it is worth the effort, bu= t I think it would be doable.

--0000000000008ed6b90593b37698--