From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eric Swenson Newsgroups: gmane.emacs.bugs Subject: bug#55070: 28.1; desktop-load doesn't work in -nw (non-gui) emacs Date: Sat, 23 Apr 2022 08:39:12 -0700 Message-ID: <3E7AC94F-5AF1-4C3F-948A-F86EBBCF880E@swenson.org> References: <83r15nomnj.fsf@gnu.org> Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31354"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 55070@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Apr 23 17:40:25 2022 Return-path: Envelope-to: geb-bug-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 1niHrz-00082J-Qe for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Apr 2022 17:40:24 +0200 Original-Received: from localhost ([::1]:44324 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1niHry-0006lQ-Ff for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Apr 2022 11:40:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38658) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1niHre-0006lE-CO for bug-gnu-emacs@gnu.org; Sat, 23 Apr 2022 11:40:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34903) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1niHre-0004XI-3T for bug-gnu-emacs@gnu.org; Sat, 23 Apr 2022 11:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1niHre-0002cV-1Z for bug-gnu-emacs@gnu.org; Sat, 23 Apr 2022 11:40:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eric Swenson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Apr 2022 15:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55070 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 55070-submit@debbugs.gnu.org id=B55070.165072836410022 (code B ref 55070); Sat, 23 Apr 2022 15:40:01 +0000 Original-Received: (at 55070) by debbugs.gnu.org; 23 Apr 2022 15:39:24 +0000 Original-Received: from localhost ([127.0.0.1]:57033 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1niHr2-0002ba-GD for submit@debbugs.gnu.org; Sat, 23 Apr 2022 11:39:24 -0400 Original-Received: from mail-pf1-f171.google.com ([209.85.210.171]:46784) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1niHr0-0002bM-1w for 55070@debbugs.gnu.org; Sat, 23 Apr 2022 11:39:22 -0400 Original-Received: by mail-pf1-f171.google.com with SMTP id j6so8450992pfe.13 for <55070@debbugs.gnu.org>; Sat, 23 Apr 2022 08:39:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=swenson.org; s=google; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=ZMdLg/5Gg8xgttEhAxKeCUqyHvNczCaWYhkajJ4jmvI=; b=a4VI8PD03/ANTWyOhmmj7s5dYEctFoUkl3SIPbXGkEhr3gVKsxXJ0HHftNjfrL3F42 XKvj5Q6g2tSde931251M9H9shmvjlkcHjvBOzTAeGY8wta68bJEitDqCSpttlnZ047el jzpajko5hKIgz219htn8Vfj+QfP8AQfE/ea/M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=ZMdLg/5Gg8xgttEhAxKeCUqyHvNczCaWYhkajJ4jmvI=; b=RaKIHOxJzD/Y4aCPzsy7zubBWYiBiOSepjdVdWx+AUmJO0+JdLET++w+XGA3D8q/kA 6EJYcqBlUJA4Fk4dGFbzTvYzXVzJNTNsgaZ29fMON9pDd4zDkHEAdi+nW+41OIWlcH+2 5hS/zDtvkiMnAa8p7z2JkAZBe9e3x3cYIlBCm7aIltC/KL4s2wom+Z23egzz5gVkbSfo EQFmumILZjtwrFuzKkvFYTShidbO1NE6B705xoAG19esFp6vZFuRwGTMfIeBgIbXGBPW tBKD/cfjr2ePfowGK9e1uOnzibp8Ijk2a5MrhAxGs5bB+UX19F0LMZicm5HUVxJRqMlq /eNQ== X-Gm-Message-State: AOAM5327gAJoHJzU/+I9Jql3G6F/h+ng1Fkqz4PJcP4uK4oSF6j/iZty wFjjx2wTaUBWIqc3oJJA633WpctcBJp254hQ X-Google-Smtp-Source: ABdhPJxpOpLJTjw1sFHYQA8una2ZJAoslFd7lysVuFIIuwUh4xh3XALCEytjlmL6SYCAII9aw41WQg== X-Received: by 2002:a05:6a00:170d:b0:50a:858e:2b6e with SMTP id h13-20020a056a00170d00b0050a858e2b6emr10525897pfc.48.1650728355173; Sat, 23 Apr 2022 08:39:15 -0700 (PDT) Original-Received: from smtpclient.apple (c-73-189-24-121.hsd1.ca.comcast.net. [73.189.24.121]) by smtp.gmail.com with ESMTPSA id d141-20020a621d93000000b00505aa1026f1sm6009275pfd.51.2022.04.23.08.39.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 23 Apr 2022 08:39:14 -0700 (PDT) In-Reply-To: <83r15nomnj.fsf@gnu.org> X-Mailer: iPhone Mail (19E258) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:230503 Archived-At: Ah, that makes sense. Thanks. Still, this is very non-obvious to the user an= d is really an current implementation decision issue rather than a good reas= on for not supporting it. I suggest two action items. 1) update the documentation for desktop-save and= desktop-read to say that it only works in non -nw sessions. 2) keep this ti= cket open since the functionality makes as much sense in -nw sessions as in G= UI sessions.=20 The code could certainly be updated to handle the case where there is a sing= le frame and the user is trying to restore in an -nw session.=20 Also, while I have your ear, the obvious command for restoring a desktop whe= n desktop-save is used to save it would be desktop-restore. Desktop-read is v= ery non-intuitive. Thanks for listening and explaining the reason for the limitation. -- Eric (KN6SIJ) > On Apr 23, 2022, at 08:16, Eli Zaretskii wrote: >=20 > =EF=BB=BF >>=20 >> From: Eric Swenson >> Date: Sat, 23 Apr 2022 07:53:43 -0700 >> Cc: 55070@debbugs.gnu.org >>=20 >> Thanks. It seems really strange that this should be problematic in -nw se= ssions. I could understand not being able to restore windows between a GUI a= nd -nw sessions, but I don=E2=80=99t see why, since windows work perfectly w= ell in a single frame in a -nw session that restoring them should be problem= atic. >>=20 >> Can you explain why this is difficult? In -nw sessions the same commands s= plit windows perfectly well. So clearly -nw sessions support window splittin= g =E2=80=94 why not restoring? (I think a restriction that requires the savi= ng and restoring sessions to be the same kind (either both -nw or both GUI) i= s a perfectly sensible restriction. >=20 > Emacs currently cannot restore windows without also restoring the > frames. Technically, this is because we use the frameset.el package > as infrastructure for this desktop.el facility. And restoring frames > in a -nw session will create GUI frames, something the user didn't > intend. So we disabled that.