From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#17736: 24.4.50; *-mouse-1 acts on wrong frame Date: Sun, 6 Dec 2020 09:20:49 -0800 (PST) Message-ID: <0bfafd15-9fe9-43f7-882e-de04cf86a910@default> References: <7d37f10e-380f-41dd-884b-8f41003436d0@default> <87tut1hjhi.fsf@gnus.org> <61945cc3-616e-428b-b298-a4db03580efe@default> <87r1o3dr46.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20181"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 17736@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 06 18:24:42 2020 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 1klxm5-0005AF-Te for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 06 Dec 2020 18:24:42 +0100 Original-Received: from localhost ([::1]:49296 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1klxm4-0002fU-GF for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 06 Dec 2020 12:24:40 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58990) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klxlS-0002fA-Ba for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2020 12:24:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39585) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1klxlS-0007DI-47 for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2020 12:24:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1klxlS-0007mT-06 for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2020 12:24:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 06 Dec 2020 17:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17736 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 17736-submit@debbugs.gnu.org id=B17736.160727538229809 (code B ref 17736); Sun, 06 Dec 2020 17:24:01 +0000 Original-Received: (at 17736) by debbugs.gnu.org; 6 Dec 2020 17:23:02 +0000 Original-Received: from localhost ([127.0.0.1]:51127 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1klxkU-0007kc-GW for submit@debbugs.gnu.org; Sun, 06 Dec 2020 12:23:02 -0500 Original-Received: from userp2130.oracle.com ([156.151.31.86]:41032) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1klxkR-0007k4-S7 for 17736@debbugs.gnu.org; Sun, 06 Dec 2020 12:23:00 -0500 Original-Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0B6HLL3L029906; Sun, 6 Dec 2020 17:22:53 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=9JM564guwsY1XWsAdt2/8zBL0zLpoa1I22xC4aHJ8jA=; b=pibzWe2CpuGHx8qLl5ERG5luugneutIi+6HKGp5QNQybZr5Oq/RJ98HUAv7qqNKCDRH3 we5fZsceVutXmDwYPyi81vzLJTDyifj7c6ssWF6CNb2FlcyBAwsQ7iuIym1MjNMHaC1p 5wEQ7hhu4ciqN9MNLCUjswwwl2Olr3QmtNO/oB+kdnGMXp8cIMNxglAetALRINmFqzv7 8HBDvG6vqdankfw6AKpU/82ZNZgKpUJ5y17wdftQ4bnGjwYvU7q7Rs5DZlotV2FY9unL F9d2gXoXXwSiu260NMwXaGzpIfBULP/B1oaKQzTTgwBOcRc4kkQdy5LO/gQss5B9A4me rw== Original-Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by userp2130.oracle.com with ESMTP id 3581mqjj8p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Sun, 06 Dec 2020 17:22:53 +0000 Original-Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0B6HKPjs040117; Sun, 6 Dec 2020 17:20:52 GMT Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserp3020.oracle.com with ESMTP id 358m3vh6j0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 06 Dec 2020 17:20:52 +0000 Original-Received: from abhmp0002.oracle.com (abhmp0002.oracle.com [141.146.116.8]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 0B6HKnRS010144; Sun, 6 Dec 2020 17:20:50 GMT In-Reply-To: <87r1o3dr46.fsf@gnus.org> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.5071.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9827 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 malwarescore=0 adultscore=0 bulkscore=0 phishscore=0 suspectscore=0 mlxscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012060111 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9827 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 mlxlogscore=999 clxscore=1015 malwarescore=0 priorityscore=1501 adultscore=0 lowpriorityscore=0 phishscore=0 spamscore=0 impostorscore=0 mlxscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012060111 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:195142 Archived-At: > I removed the font setting, though,=20 Yes. > and tried to follow your recipe. > And I was unable to, either because I don't understand > the recipe, or because the bugs isn't present in Emacs 28. >=20 > Could you provide a simpler step by step recipe to > demonstrate the bug? Could you say what you don't understand about the recipe? Or could you explain what "I was unable to" amounts to? Can you try with either the release for which the bug was filed or other releases mentioned, which include Emacs 27? There is no release Emacs 28, so I can't help you with that. With Emacs 27.1, simply doing what I said shows the reported behavior immediately, 100% of the time. Here's the complete recipe again, in one place: Command to start Emacs: z:\...\runemacs.exe -Q -l "onetest.el" -f "1on1-emacs" File onetest.el contains this code: (defun 1on1-emacs () (interactive) (setq default-frame-alist (list '(bottom-divider-width . 2) '(minibuffer))) (setq pop-up-frames t) (setq minibuffer-frame-alist (list '(height . 2) '(minibuffer . only)))) (global-set-key [C-S-mouse-1] =09=09(lambda () (interactive) (message "FR: %S" (selected-frame)))) 1. `C-x 5 o' to select frame *scratch*. 2. `C-x 5 2' to duplicate that frame. 3. `C-x b' to have that frame show *Messages*. 4. Resize the two non-minibuffer frames, so you can easily see all 3 frames completely. 5. Select the *scratch* frame (e.g. click mouse-1 there). 6. `C-S-mouse-1' in *scratch*. See message in *Messages* saying that the selected frame is *scratch*. 7. Select *scratch* frame. `C-S-mouse-1' in *Messages*. See message saying that selected frame is *Messages*. 8. Select *scratch* frame. `M-x', then `C-S-mouse-1' in *Messages*. See message: selected frame is *Messages*. `C-g' to cancel `M-x'. 9. Select *scratch* frame. `M-x', then `C-S-mouse-1' in *scratch*. See message in both *Messages* and echo area (minibuffer frame): selected frame is " *Minibuf-1*". #9 is unexpected. Can you repro this? If so, we can talk about whether #9 should be expected or is a bug. It's possible that the behavior depends on the platform. I'm using MS Windows (10). It may well handle frame focusing differently from some other platforms.