From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Emacs-26.0.91: switch-to-buffer-other-window runs too slowly (about 0.1s) Date: Mon, 26 Mar 2018 14:26:46 -0400 Message-ID: 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> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1522088749 7005 195.159.176.226 (26 Mar 2018 18:25:49 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 26 Mar 2018 18:25:49 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 26 20:25:45 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 1f0WoS-0001fQ-IH for ged-emacs-devel@m.gmane.org; Mon, 26 Mar 2018 20:25:44 +0200 Original-Received: from localhost ([::1]:58423 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f0WqU-0006YT-DY for ged-emacs-devel@m.gmane.org; Mon, 26 Mar 2018 14:27:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42335) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f0Wpb-0006Wq-J7 for emacs-devel@gnu.org; Mon, 26 Mar 2018 14:26:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f0WpX-0003li-K9 for emacs-devel@gnu.org; Mon, 26 Mar 2018 14:26:55 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:47986) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f0WpX-0003lU-Ca; Mon, 26 Mar 2018 14:26:51 -0400 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id w2QIQkCp023957; Mon, 26 Mar 2018 14:26:48 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id AD0A6603C1; Mon, 26 Mar 2018 14:26:46 -0400 (EDT) In-Reply-To: <83370mg0qj.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 26 Mar 2018 21:17:40 +0300") X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 2 Rules triggered EDT_SA_DN_PASS=0, RV6250=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6250> : inlines <6519> : streams <1782338> : uri <2615271> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 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:224060 Archived-At: > If you can change x_make_frame_visible to not wait for MapNotify event > in this case, or if you can avoid calling make-frame-visible in > window--maybe-raise-frame, then maybe we could avoid that. But such > changes are not for Emacs 26.1 anymore. I'm definitely not talking about 26.1, indeed. But I think in the case where we move from window A to window B and both are on the same frame we should either not call window--maybe-raise-frame or else that function should do nothing in that case. Basically, I feel like if the movement is intra-frame than no frame-level operations should be involved. Stefan