From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: What makes set-window-buffer slow? Date: Sat, 25 Jun 2016 17:39:52 +0300 Message-ID: <83lh1tz613.fsf@gnu.org> References: <576C04E4.9040000@gmail.com> <576C2054.3020705@gmail.com> <20160623181242.GB4946@acm.fritz.box> <576C2AAA.1090707@gmail.com> <83fus33ekr.fsf@gnu.org> <576C536A.6060503@gmail.com> <83bn2r2i0y.fsf@gnu.org> <576D2895.4020600@gmail.com> <83shw21yhs.fsf@gnu.org> <576D4160.90201@gmail.com> <83oa6q1jua.fsf@gnu.org> <576DA723.1000603@gmail.com> <83fus1209a.fsf@gnu.org> <576E900F.5070004@gmail.com> <83mvm9z6m2.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1466865682 8944 80.91.229.3 (25 Jun 2016 14:41:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 25 Jun 2016 14:41:22 +0000 (UTC) Cc: acm@muc.de, schwab@suse.de, emacs-devel@gnu.org To: clement.pit@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 25 16:41:21 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bGolt-0007A7-Jm for ged-emacs-devel@m.gmane.org; Sat, 25 Jun 2016 16:41:21 +0200 Original-Received: from localhost ([::1]:50241 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGols-0001FS-RN for ged-emacs-devel@m.gmane.org; Sat, 25 Jun 2016 10:41:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41994) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGolO-00018N-3O for emacs-devel@gnu.org; Sat, 25 Jun 2016 10:40:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bGolL-0006ly-Vr for emacs-devel@gnu.org; Sat, 25 Jun 2016 10:40:48 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51263) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGolG-0006lQ-9X; Sat, 25 Jun 2016 10:40:42 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1356 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bGolD-0005Pe-KD; Sat, 25 Jun 2016 10:40:40 -0400 In-reply-to: <83mvm9z6m2.fsf@gnu.org> (message from Eli Zaretskii on Sat, 25 Jun 2016 17:27:17 +0300) 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:204759 Archived-At: > Date: Sat, 25 Jun 2016 17:27:17 +0300 > From: Eli Zaretskii > Cc: acm@muc.de, emacs-devel@gnu.org, schwab@suse.de > > > Cc: acm@muc.de, schwab@suse.de, emacs-devel@gnu.org > > From: Clément Pit--Claudel > > Date: Sat, 25 Jun 2016 10:07:11 -0400 > > > > > Does the WINDOW argument of set-window-buffer name the selected window > > > at the time of the call? If not, set-window-buffer will cause all the > > > other windows to be redisplayed, so arranging for WINDOW to be the > > > selected window might speed up things. > > > > The window was indeed not selected at the time of the call. Would a > > simple with-selected-window around the call do it? > > Yes, I think so. Actually, I see that in Emacs 24.4, this factor should have made no difference, sorry. (I was looking at the current sources when I wrote the above.)