From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: select-frame-set-input-focus fails to raise the frame Date: Wed, 13 Dec 2017 20:30:27 +0100 Message-ID: <5A317FD3.4050509@gmx.at> References: <5A30E9E2.5060504@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1513193573 28428 195.159.176.226 (13 Dec 2017 19:32:53 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 13 Dec 2017 19:32:53 +0000 (UTC) Cc: emacs-devel To: rswgnu@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 13 20:32:49 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ePCls-0006qf-AN for ged-emacs-devel@m.gmane.org; Wed, 13 Dec 2017 20:32:48 +0100 Original-Received: from localhost ([::1]:37234 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePClu-0002G2-Qo for ged-emacs-devel@m.gmane.org; Wed, 13 Dec 2017 14:32:50 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51511) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePCjn-0001Nd-Fb for emacs-devel@gnu.org; Wed, 13 Dec 2017 14:30:40 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ePCjm-0002eV-CV for emacs-devel@gnu.org; Wed, 13 Dec 2017 14:30:39 -0500 Original-Received: from mout.gmx.net ([212.227.15.15]:63215) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ePCjm-0002do-2g for emacs-devel@gnu.org; Wed, 13 Dec 2017 14:30:38 -0500 Original-Received: from [192.168.1.100] ([212.95.5.175]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LzblK-1f3MlS2Qhm-014oI3; Wed, 13 Dec 2017 20:30:36 +0100 In-Reply-To: X-Provags-ID: V03:K0:4+92pgw4tHc0WJeo7+fbcFhhxE+/zXFkr/u53odSGVl9ecWFxyN CKm94eTHxrpONDxzm/zjv0DInqp5J2bwWvaVUAiVORCxIxr0atMgSqiKPrPyimwP+jVcXzV ZsNnNwvTBrijdpuA18Fk1rknSO1s6IR9V2s7R9ijOdqawf+7k5PDqymy2Asof7iFWJhlwKA SGdwYJVmeYtoKHFFUMVkQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:zgjbiCe1y/s=:xcSCTrjmJOcHnVRKarOzEo XcIlVmiEK11jUAEQZd5y1EbRGRsLjhJ/y8cl2vN0G80G/qmmWay8cB8QJYeLehfrhvQR8/udS UOArS5w3ZTKyGqzDBI088h8izEzbqH8mUfT5xRzPQuJhjq0GIQnO7/J4uKgyekFbFL5yRwGuz 2iDOoPrr2I8KCjbVLdXIHW6VviuSMAGy8ZzDnSZV/Ou980a/OG8hhmk199oUfCCnbK5SaMLqp BVmQLdMWmhaU3aed+ZQ4ex1XYoCfhC0WGNPScqMOd7MHURE9MWMmmB4AZyCPu+yxOrOZk42K0 LvLXaUhHVKwzBpcB3gtFWXuAXnM87peHhYdQr3ePOuk69Nxqk9WdmwD1DoZ4HqXslTo4TSfUL 1aRLs4OEnXA+BGYuKK77rbowUqXw+p3rSXMpFgldu3M08R/HFDtKDcHONKJcCol7Gc593HhYQ 4wpeuoMK/EhMtijg9akNjBRPA0uYuWn0a00merEyZV4/VgzgythR8f4MO4lE7XjWit3DRmRjB vW5gFhPA8FiMBtiLk2KbggcFcjtfKHJkUg7sZ0KqVcmknl643hR4JZixWj9Im3ADTD21DNY9N AmeeC0tbPaO/eNfOz2h012gy3kshnb0ahAdlWM9TTnCQNBXoGFGb6C6+I+Wi5+B5H+KOL4Wd/ cqWMPozl1GMylIH5lWD/uw120M0I+BhpH/nz2KCCewb3A6MXeo5gw0XSvpnAY7zfxnQrf0itg /UM4NDykDs5Jb6w1uQWrs/WPbmdGsRQ3XYdziWoiTTRj90GyBUuMnNaiEereo7MLwIKnSu+T X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.15.15 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:221016 Archived-At: > Can you explain what the problem is and why you think it is unsolvable? On most systems I know this one ... (let ((depress-frame (selected-frame)) (release-frame (make-frame))) (select-frame-set-input-focus depress-frame) ;; On MacOS, depress-frame is never raised to the top ;; of the frame stack and never is given input focus ;; after release-frame is created. (sit-for 4) (select-frame-set-input-focus release-frame))) ... happens because a new frame is always raised and gets input focus unless certain precautions are taken. The following works here on Windows: (defun test () (let ((depress-frame (selected-frame)) (release-frame (make-frame '((no-focus-on-map . t))))) (select-frame-set-input-focus depress-frame) ;; On MacOS, depress-frame is never raised to the top ;; of the frame stack and never is given input focus ;; after release-frame is created. (sit-for 4) (select-frame-set-input-focus release-frame))) > In the prior example with raise-frame and lower-frame, we see there is > no problem combining the two of these but once (next-frame) is added > the combination of the two does not work. Why? Why would you expect > that to be the case? Why is it not a bug? It's by no means related to `next-frame' and it works here on Windows. I have no idea why it doesn't work for you. martin