From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.devel Subject: `selected-frame` behavior have changed in emacs-28 Date: Sun, 25 Apr 2021 12:33:48 +0000 Message-ID: <87sg3eilen.fsf@posteo.net> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30518"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Apr 25 14:46:17 2021 Return-path: Envelope-to: ged-emacs-devel@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 1lae9O-0007lL-Nd for ged-emacs-devel@m.gmane-mx.org; Sun, 25 Apr 2021 14:46:14 +0200 Original-Received: from localhost ([::1]:58808 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lae9N-0006DY-QA for ged-emacs-devel@m.gmane-mx.org; Sun, 25 Apr 2021 08:46:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41762) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lae7e-0005lo-8P for emacs-devel@gnu.org; Sun, 25 Apr 2021 08:44:26 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:54523) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lae7b-0004RC-S3 for emacs-devel@gnu.org; Sun, 25 Apr 2021 08:44:25 -0400 Original-Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 0E1E42400FC for ; Sun, 25 Apr 2021 14:44:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1619354661; bh=YBoomlzELUiUXM+pWdlqa8FL0khyBo8mD58OIopbF5E=; h=From:To:Subject:Date:From; b=CI/Gm6XJ9fv/UzyP3YAXf9LNda2v34JLJ/xF35oKUAtCvJrtVPqbiXY+o9rwfSq5+ aq2txvkiOo/WypajOoJsy3VQLkFfSwPevJFV7lhA5AaEbIMHa9D02znBE/FcFzo4KS vzKHWw/Dv6hDQ1noSXHwA/skJxJJ6NiXe53O4G8mkWwi9F4slXTvpfztxxI9iwiShv pkVIaCruPuyYf1cztXUd/AueRJI84Db9AI/xvvCI4o+6t3Ggd4orHNACWpn74YH44Z ECAh4GYdETUG+Lpe8jXA5A+/dRgWFTgREcV7ayn9+NGNx3CwjBW2iyJGaqvgt1J63H wLHT6xi02Eoig== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FSnlm0Bb0z6tm9 for ; Sun, 25 Apr 2021 14:44:19 +0200 (CEST) Received-SPF: pass client-ip=185.67.36.66; envelope-from=thievol@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:268372 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hello, Up to emacs-27.2 I was using this code: (with-current-buffer helm-buffer (let ((frame (selected-frame))) [...])) selected-frame was returning the frame where helm-buffer was displayed. In emacs-28, it have the same behavior when helm starts from a normal buffer, but if I call helm from a minibuffer e.g. from M-: selected-frame is returning the wrong frame whereas in emacs-27, the frame handling helm-buffer is returned. I expect here having the same behavior in emacs-27 and emacs-28. Does something have changed in selected-frame? Thanks. =2D-=20 Thierry --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQHHBAEBCgAxFiEEI9twfRN7r3nig/xwDsVtFB0W75MFAmCFZCATHHRoaWV2b2xA cG9zdGVvLm5ldAAKCRAOxW0UHRbvk5/VC/4tOsC2N8iFozfszKr47vfzcx1tJFI0 3qONFKQBxM8rJ0isY8mpuYuG3gqAzQ2gIzuiNBj1d9sxBpmWfbPwSMhWYawCt7xt Gp6xmsyOFvwxB+ks0pOx5FTwPNUUGm/R0rfjAT4z6DhJzxctIA+82rGyPPE9Nc00 iTkIwQDkqpeaMpw96nWK9wDWCkOzNQqsf66TMJGyQfs52fmVxvoV+2QzJLhgCCwN vsfXlHF78mEzTVa832qkrApvfYo5QZ0I9euB4lO0D9fWdYNrS2LMqHdUgCws7+cz AD8wADVGcQvgzN4O+JLdkbW3oxH32HIZb5iUexjdaQa6iQTyP2Bd/nyeEUZGDZXa FiyK9leAkkyFIlEB6zHuxSxuT41uB5teC828L6KSOfroxSWNHXubpBLZxae/tLTl VRzvqIWB8TSSKaiQkq5iBSZNX/GtPo8UJxrBeCARfrpAWlwXGDLRpcVk7ShtpVz2 fOKyuGp03mWqZFoHijqsyJzJxlN2crmk1SA= =oabb -----END PGP SIGNATURE----- --=-=-=--