From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andrew Cohen Newsgroups: gmane.emacs.bugs Subject: bug#21597: 25.0.50; Extremely slow redisplay on emacsclient Date: Thu, 01 Oct 2015 13:05:50 -0400 Message-ID: <87wpv67c41.fsf@bu.edu> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1443723903 22954 80.91.229.3 (1 Oct 2015 18:25:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 1 Oct 2015 18:25:03 +0000 (UTC) To: 21597@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 01 20:24:54 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1ZhiXB-0007W3-Vc for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Oct 2015 20:24:50 +0200 Original-Received: from localhost ([::1]:55057 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZhiXB-000246-9D for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Oct 2015 14:24:49 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40799) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zhhl5-0003s1-6a for bug-gnu-emacs@gnu.org; Thu, 01 Oct 2015 13:35:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zhhl0-0008HS-Bg for bug-gnu-emacs@gnu.org; Thu, 01 Oct 2015 13:35:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33651) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zhhl0-0008HJ-8S for bug-gnu-emacs@gnu.org; Thu, 01 Oct 2015 13:35:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Zhhl0-00070I-4W for bug-gnu-emacs@gnu.org; Thu, 01 Oct 2015 13:35:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Andrew Cohen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 01 Oct 2015 17:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21597 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21597-submit@debbugs.gnu.org id=B21597.144372089726901 (code B ref 21597); Thu, 01 Oct 2015 17:35:02 +0000 Original-Received: (at 21597) by debbugs.gnu.org; 1 Oct 2015 17:34:57 +0000 Original-Received: from localhost ([127.0.0.1]:50853 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zhhkv-0006zn-0F for submit@debbugs.gnu.org; Thu, 01 Oct 2015 13:34:57 -0400 Original-Received: from andy.bu.edu ([128.197.41.152]:50814) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZhhIl-00037b-LR for 21597@debbugs.gnu.org; Thu, 01 Oct 2015 13:05:52 -0400 Original-Received: from localhost ([127.0.0.1] helo=andy) by andy.bu.edu with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84) (envelope-from ) id 1ZhhIk-0008Or-7g for 21597@debbugs.gnu.org; Thu, 01 Oct 2015 13:05:51 -0400 User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux) X-Spam_score: -1.4 X-Spam_score_int: -13 X-Spam_bar: - X-Spam_report: Spam detection software, running on the system "andy.bu.edu", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: I have experienced more or less the same bug. I see the described behavior when starting emacs in daemon mode (emacs --daemon) and then connecting with emacsclient. If I start emacs normally, execute `server-start` , and then connect with emacsclient the problem with redisplay does not occur. [...] Content analysis details: (-1.4 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BO X-Mailman-Approved-At: Thu, 01 Oct 2015 13:34:55 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:107164 Archived-At: I have experienced more or less the same bug. I see the described behavior when starting emacs in daemon mode (emacs --daemon) and then connecting with emacsclient. If I start emacs normally, execute `server-start` , and then connect with emacsclient the problem with redisplay does not occur. Following the suggestion to test each hunk in the commit http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=5c9304ea86b8cfc9d0b6d7769b90bd56e5dd1313 I tried reverting hunks one at a time. The only one that made a difference was this one: - if (consider_all_windows_p) + if (!consider_all_windows_p) { FOR_EACH_FRAME (tail, frame) - XFRAME (frame)->updated_p = false; + { + if (XFRAME (frame)->redisplay && XFRAME (frame) != sf) + { + consider_some_frames_p = true; + break; + } + } + } + + if (consider_all_windows_p || consider_some_frames_p) + { + FOR_EACH_FRAME (tail, frame) + { + if (XFRAME (frame)->redisplay || consider_all_windows_p) + XFRAME (frame)->updated_p = false; + } Reverting this solved the problem for me.