From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#55070: 28.1; desktop-load doesn't work in -nw (non-gui) emacs Date: Sun, 01 May 2022 20:25:52 +0300 Organization: LINKOV.NET Message-ID: <86wnf5f8of.fsf@mail.linkov.net> References: <83fsm4pbs4.fsf@gnu.org> <6961B895-263C-4632-AA4E-8DE29D6160BC@swenson.org> <83sfq3op15.fsf@gnu.org> <86wnfcxnvf.fsf@mail.linkov.net> <87mtg8i1za.fsf@gnus.org> <86h76fu9q5.fsf@mail.linkov.net> <83r15jltce.fsf@gnu.org> <86sfpzspz4.fsf@mail.linkov.net> <83o80nlnjm.fsf@gnu.org> <86fslysc14.fsf@mail.linkov.net> <19755688-1BC3-45A0-854D-031469E50DB9@swenson.org> <861qxhy9cz.fsf@mail.linkov.net> <5DA5751F-DC2F-4C40-AE30-DAF65BCF0572@swenson.org> <86a6c56ra5.fsf@mail.linkov.net> <83wnf77yii.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37942"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: eric@swenson.org, 55070@debbugs.gnu.org, larsi@gnus.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 01 19:49:57 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 1nlDhl-0009fz-6U for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 01 May 2022 19:49:57 +0200 Original-Received: from localhost ([::1]:33420 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nlDhj-0003z4-Sv for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 01 May 2022 13:49:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34424) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nlDgt-00025s-SI for bug-gnu-emacs@gnu.org; Sun, 01 May 2022 13:49:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40227) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nlDgt-0005c8-JY for bug-gnu-emacs@gnu.org; Sun, 01 May 2022 13:49:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nlDgt-0000Wc-IL for bug-gnu-emacs@gnu.org; Sun, 01 May 2022 13:49:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 01 May 2022 17:49:03 +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 patch Original-Received: via spool by 55070-submit@debbugs.gnu.org id=B55070.16514273021933 (code B ref 55070); Sun, 01 May 2022 17:49:03 +0000 Original-Received: (at 55070) by debbugs.gnu.org; 1 May 2022 17:48:22 +0000 Original-Received: from localhost ([127.0.0.1]:34118 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nlDgE-0000V7-4S for submit@debbugs.gnu.org; Sun, 01 May 2022 13:48:22 -0400 Original-Received: from relay8-d.mail.gandi.net ([217.70.183.201]:33795) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nlDgC-0000Uh-RU for 55070@debbugs.gnu.org; Sun, 01 May 2022 13:48:21 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id EB2501BF204; Sun, 1 May 2022 17:48:12 +0000 (UTC) In-Reply-To: <83wnf77yii.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 30 Apr 2022 11:42:45 +0300") 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:231182 Archived-At: > Please try the patch below. Its main idea is that calling > frameset-move-onscreen makes no sense on a text-mode display, so I > made desktop.el force frameset.el avoid calling that function in this > case. The rest is basically a simple cleanup. The patch works without problems (I didn't notice the argument :force-onscreen before). > In addition to testing the use case of both saving and restoring the > desktop in a -nw session, I'd appreciate testing when the desktop was > saved in a GUI session and is restored in a TTY session, and vice > versa. Saving the desktop in a GUI session and restoring in a TTY session adds an empty line between the top buffer and the tab bar when tab-bar-mode was enabled before saving. Saving the desktop in a TTY session and restoring in a GUI session restores only the first frame, but the message says 2 frames were restored. > Likewise for when the session in which the desktop is restored > is a daemon session -- the main concern there is that a daemon session > shouldn't restore frames at all. I don't use a daemon session, maybe someone could help to test it.