From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Third Newsgroups: gmane.emacs.devel Subject: Re: select-frame-set-input-focus fails to raise the frame Date: Wed, 13 Dec 2017 20:49:23 +0000 Message-ID: <20171213204923.GB1621@breton.holly.idiocy.org> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1513198492 19137 195.159.176.226 (13 Dec 2017 20:54:52 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 13 Dec 2017 20:54:52 +0000 (UTC) User-Agent: Mutt/1.9.1 (2017-09-22) Cc: emacs-devel@gnu.org To: Bob Weiner Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 13 21:54:45 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 1ePE3A-0004Wh-1g for ged-emacs-devel@m.gmane.org; Wed, 13 Dec 2017 21:54:44 +0100 Original-Received: from localhost ([::1]:37608 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePE3G-0003lS-Vs for ged-emacs-devel@m.gmane.org; Wed, 13 Dec 2017 15:54:51 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40527) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePDy6-0007aE-I1 for emacs-devel@gnu.org; Wed, 13 Dec 2017 15:49:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ePDy5-0004CH-1r for emacs-devel@gnu.org; Wed, 13 Dec 2017 15:49:29 -0500 Original-Received: from mail-wr0-x231.google.com ([2a00:1450:400c:c0c::231]:44628) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ePDy3-0004Ay-E9; Wed, 13 Dec 2017 15:49:27 -0500 Original-Received: by mail-wr0-x231.google.com with SMTP id l22so3291222wrc.11; Wed, 13 Dec 2017 12:49:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=/P5Elsaf2BG6LRhfVNdWKW4NxZPCgzKcSGRKIn6f8E4=; b=BkvBln914jm5gEXNWlRn1sBF1rubP7wAkr0Qm4n5URIyjg7ioZmZuFuP2yLPxGqNcE QYFGdv8/wcmGrXvlXuOoNlw4O5mqJxAoNbNKmMsNbESYiaJVmCEZA7ehFwl7tJVIDCwL zXE58If0u60QjoKsgPwiGNfo7OOBuIaFZbARTFmZxzt8qfOmVv9troDGfzPNZLQcVyuQ UfyvuVealZ8B550qq2m6JzZUzrMlYHWxWkTCAKNpgtQYTLn/NvjmJwctFphuz0m4iZFy 7WTTeovUI5EviUwj4JPAv6eVIP87IPv7xbF8EV+xtRy9Bo08TtOH7kmopLV0rXdf9yMK fJNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=/P5Elsaf2BG6LRhfVNdWKW4NxZPCgzKcSGRKIn6f8E4=; b=NmVjBfUXqSn/tWRdoInhxI/ptlfjJnMpdLxrfOGfM6VRAKCXsroomksuDDcvj1LBE5 EDW+Odzt/baq8CqVnbwxJ0aQLGxkFke2hVTpQwLVUqRtVNgn36LK9gRn/v0cOMvDk5V5 0JoatfBJzBZRUS3MQJD2E/z59vXXjSFnimHVsbhmcazi6LTKEdtYKsioF8wLNiB3seMw C0DhBBnAwyLIYypc0dO4Zl5VGQZuNsgqkIeM1Z5LpoHgHutof0NTCIdAQ+LoOJLg2hbv jL6Z5+/VwXchSPbQmAZQn/HK0bR6KgwRCVzGaneQaYj9qnOUk6GDmr+bFjVJO7vcbivf ZXHA== X-Gm-Message-State: AKGB3mK6OviCf3ozY5V+BKUon4tQ4wAG0xHO6zXSpYwnhpnqVzkAWsHx YIzLT0iQH+xhFSTqDbNRDPV2oewmqr8= X-Google-Smtp-Source: ACJfBouOgro5X1Ysyeat0cp5ks9D82sx0fxADbQjagJR952eForSOPGtrRk0Le6mP8HJUDj8BbDcQA== X-Received: by 10.223.195.198 with SMTP id d6mr3612237wrg.100.1513198166027; Wed, 13 Dec 2017 12:49:26 -0800 (PST) Original-Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-f9b9-51e6-17ae-73d0.holly.idiocy.org. [2001:8b0:3f8:8129:f9b9:51e6:17ae:73d0]) by smtp.gmail.com with ESMTPSA id u194sm1977593wmd.6.2017.12.13.12.49.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Dec 2017 12:49:25 -0800 (PST) Content-Disposition: inline In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::231 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:221022 Archived-At: On Tue, Dec 12, 2017 at 06:02:38PM -0500, Bob Weiner wrote: > (defun test () > (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))) > > (test) > > ---------- > If I call test, I get the behavior described in its comments, basically > only release-frame is ever raised and has input focus. If I edebug > the function, then I get the behavior, I expect with each frame raised > and with input focus, first the depress-frame for 4 seconds and then > release-frame. I feel I’m being a bit dim here, but depress-frame is already raised and focused when I run this in the scratch buffer, so I’m unsure how to try replicating it. -- Alan Third