From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Emacs-26.0.91: switch-to-buffer-other-window runs too slowly (about 0.1s) Date: Tue, 27 Mar 2018 05:45:50 +0300 Message-ID: <83o9jadyn5.fsf@gnu.org> References: <83efk6g93z.fsf@gnu.org> <544b8346-bda9-45eb-9573-1d51d9f768b2@Spark> <83bmfag8gu.fsf@gnu.org> <87y3ie24z1.fsf@gmail.com> <87sh8m23tc.fsf@gmail.com> <87k1ty22p1.fsf@gmail.com> <837epyg30w.fsf@gnu.org> <83370mg0qj.fsf@gnu.org> <5AB94021.8080700@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1522118664 3058 195.159.176.226 (27 Mar 2018 02:44:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 27 Mar 2018 02:44:24 +0000 (UTC) Cc: rudalics@gmx.at, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 27 04:44:19 2018 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 1f0eax-0000hE-Lm for ged-emacs-devel@m.gmane.org; Tue, 27 Mar 2018 04:44:19 +0200 Original-Received: from localhost ([::1]:60058 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f0ed0-0000vD-TN for ged-emacs-devel@m.gmane.org; Mon, 26 Mar 2018 22:46:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56864) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f0ecI-0000uy-Bp for emacs-devel@gnu.org; Mon, 26 Mar 2018 22:45:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f0ecF-0003XT-Pc for emacs-devel@gnu.org; Mon, 26 Mar 2018 22:45:42 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:34265) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f0ecF-0003XF-ME; Mon, 26 Mar 2018 22:45:39 -0400 Original-Received: from [176.228.60.248] (port=4126 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1f0ecF-00060r-3Q; Mon, 26 Mar 2018 22:45:39 -0400 In-reply-to: (message from Stefan Monnier on Mon, 26 Mar 2018 16:09:07 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:224087 Archived-At: > From: Stefan Monnier > Cc: Eli Zaretskii , emacs-devel@gnu.org > Date: Mon, 26 Mar 2018 16:09:07 -0400 > > IOW I think that in window--maybe-raise-frame > > ;; Assume the selected frame is already visible enough. > (eq frame (selected-frame)) > > should apply not just to raise-frame but also to make-frame-visible. Is it impossible to make , say, iconified frame the selected one? In any case, I think the basic problem here is that with some window managers it takes time for a frame to actually become visible on the screen, and the waiting loop in question is meant to make sure the frame is really visible.