all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andrew Cohen <cohen@bu.edu>
To: 21597@debbugs.gnu.org
Subject: bug#21597: 25.0.50; Extremely slow redisplay on emacsclient
Date: Thu, 01 Oct 2015 13:05:50 -0400	[thread overview]
Message-ID: <87wpv67c41.fsf@bu.edu> (raw)
In-Reply-To: <CAFyQvY1iT07v_gs5aMfZBhfeUG2h-yZYNvZEPpSVxB047n9_DQ@mail.gmail.com>


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.






  parent reply	other threads:[~2015-10-01 17:05 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-01 14:26 bug#21597: 25.0.50; Extremely slow redisplay on emacsclient Kaushal Modi
2015-10-01 16:15 ` Eli Zaretskii
2015-10-01 16:30   ` Kaushal Modi
2015-10-01 16:59     ` Eli Zaretskii
2015-10-01 17:30       ` Kaushal Modi
2015-10-01 17:05 ` Andrew Cohen [this message]
2015-10-01 17:10 ` bug#21597: fixed Andrew Cohen
  -- strict thread matches above, loose matches on Subject: below --
2015-10-01 17:39 bug#21600: 25.0.50; Extremely slow redisplay on emacsclient Kaushal Modi
2015-10-01 17:54 ` bug#21597: " Eli Zaretskii
2015-10-01 18:55   ` Kaushal Modi
2015-10-01 18:59     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wpv67c41.fsf@bu.edu \
    --to=cohen@bu.edu \
    --cc=21597@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.