From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#36894: Restore frameset focus and selectedness Date: Sun, 11 Aug 2019 23:51:54 +0300 Organization: LINKOV.NET Message-ID: <87mugf4e8l.fsf@mail.linkov.net> References: <878sscwovy.fsf@mail.linkov.net> <877e7rwbv7.fsf@mail.linkov.net> <834l2uconb.fsf@gnu.org> <874l2uug62.fsf@mail.linkov.net> <83y305btde.fsf@gnu.org> <87h86q8b3m.fsf@mail.linkov.net> <83a7ci9n4j.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="164122"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: 36894@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 11 22:59:10 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 1hwuvl-000gZT-72 for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Aug 2019 22:59:09 +0200 Original-Received: from localhost ([::1]:41698 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hwuvj-0005bw-R7 for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Aug 2019 16:59:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53957) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hwuvf-0005bV-6k for bug-gnu-emacs@gnu.org; Sun, 11 Aug 2019 16:59:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hwuve-00027d-84 for bug-gnu-emacs@gnu.org; Sun, 11 Aug 2019 16:59:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37005) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hwuve-00027R-4c for bug-gnu-emacs@gnu.org; Sun, 11 Aug 2019 16:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hwuve-00014G-1z for bug-gnu-emacs@gnu.org; Sun, 11 Aug 2019 16:59:02 -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, 11 Aug 2019 20:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36894 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 36894-submit@debbugs.gnu.org id=B36894.15655571414091 (code B ref 36894); Sun, 11 Aug 2019 20:59:02 +0000 Original-Received: (at 36894) by debbugs.gnu.org; 11 Aug 2019 20:59:01 +0000 Original-Received: from localhost ([127.0.0.1]:45824 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hwuvc-00013u-Rx for submit@debbugs.gnu.org; Sun, 11 Aug 2019 16:59:01 -0400 Original-Received: from camel.birch.relay.mailchannels.net ([23.83.209.29]:8939) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hwuvb-00013i-7q; Sun, 11 Aug 2019 16:59:00 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 983098C1823; Sun, 11 Aug 2019 20:58:57 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a88.g.dreamhost.com (100-96-85-25.trex.outbound.svc.cluster.local [100.96.85.25]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 24DF58C16FD; Sun, 11 Aug 2019 20:58:57 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a88.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.5); Sun, 11 Aug 2019 20:58:57 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Continue-Celery: 64cd1cbc1f29d198_1565557137386_3059854191 X-MC-Loop-Signature: 1565557137386:3693840187 X-MC-Ingress-Time: 1565557137386 Original-Received: from pdx1-sub0-mail-a88.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a88.g.dreamhost.com (Postfix) with ESMTP id CFBA08146D; Sun, 11 Aug 2019 13:58:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=linkov.net; bh=19J/q2 zXqs4JudRNsl+q2fbDKJQ=; b=GjxFOv1Mw3AfKmPT9U/BhQ0RDqYzl7yS6KwONK l36LqfbdbNLXtSX8rYfiKOTRvjv0uHRh1btdMdqatW/LbtGu+oI6NooGWtqkKeQN 4Cq9EHKN0CGurdV4xbHKn2ZWqk8jwkRD9p7Mam4eQJWCqVwzi3/VoC6U6zHX0YTj yWa64= Original-Received: from mail.jurta.org (m91-129-103-91.cust.tele2.ee [91.129.103.91]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a88.g.dreamhost.com (Postfix) with ESMTPSA id D179381468; Sun, 11 Aug 2019 13:58:50 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a88 In-Reply-To: <83a7ci9n4j.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 09 Aug 2019 22:04:12 +0300") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduvddruddvvddgudehhecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtgfesthekredttderjeenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrddutdefrdeludenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrddutdefrdeluddprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopegvlhhiiiesghhnuhdrohhrghenucevlhhushhtvghrufhiiigvpedt 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:164893 Archived-At: retitle 36894 Restore frameset focus and selectedness thanks >> Then created a completely new desktop in Emacs 26, >> but it didn't restore focus in the frame where it previously was. >> >> And I don't see how Emacs 26 could restore focus, > > Well, it does for me, and I think that's because the order of saving > the frames is such that the selected frame is saved last (and thus > restored last). > >> 'last-focus-update' was added recently in Emacs 27. > > How is that relevant? 'last-focus-update' could be used to put focus back to the same frame where it was before saving the desktop. >> So this is a new feature that we could use now in the desktop >> to restore focus in the same frame where it was before. > > Selected frame and frame that has focus is not the same thing, > definitely not with an arbitrary window-manager. Maybe then the desktop should save the selectedness as well. I see some =E2=80=98(selected . t)=E2=80=99 in the desktop, but it seems these indicate the selected buffer, not frame. > But I asked for a reproducible recipe, and I don't think you have > shown one. Could you please do that? I'd like to study it. In your case above, if you save the frames is such order that the selected frame is not saved last, can you reproduce the problem? I see this problem often when the last frame is not selected.