From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#27210: 25.2; Recovering loaddefs.el with desktop-mode hangs when linum is on Date: Sat, 03 Jun 2017 21:38:43 +0300 Message-ID: <83d1akc3ws.fsf@gnu.org> References: <20170603142911.GB7275@gmail.com> <83fufhaznj.fsf@gnu.org> <20170603162244.GD7275@gmail.com> <87a85p0xwu.fsf@users.sourceforge.net> <83efv1aqzx.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1496515213 19402 195.159.176.226 (3 Jun 2017 18:40:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 3 Jun 2017 18:40:13 +0000 (UTC) Cc: 27210@debbugs.gnu.org, ambrevar@gmail.com To: npostavs@users.sourceforge.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 03 20:40:09 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1dHDy4-0004l6-Lo for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 Jun 2017 20:40:08 +0200 Original-Received: from localhost ([::1]:54516 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dHDy9-0002SP-UM for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 Jun 2017 14:40:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45913) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dHDy1-0002SB-1r for bug-gnu-emacs@gnu.org; Sat, 03 Jun 2017 14:40:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dHDxx-00028C-Ud for bug-gnu-emacs@gnu.org; Sat, 03 Jun 2017 14:40:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51455) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dHDxx-000288-SJ for bug-gnu-emacs@gnu.org; Sat, 03 Jun 2017 14:40:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dHDxx-0003Kt-OB for bug-gnu-emacs@gnu.org; Sat, 03 Jun 2017 14:40:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 03 Jun 2017 18:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27210 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 27210-submit@debbugs.gnu.org id=B27210.149651516012772 (code B ref 27210); Sat, 03 Jun 2017 18:40:01 +0000 Original-Received: (at 27210) by debbugs.gnu.org; 3 Jun 2017 18:39:20 +0000 Original-Received: from localhost ([127.0.0.1]:54132 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dHDxI-0003Jw-4R for submit@debbugs.gnu.org; Sat, 03 Jun 2017 14:39:20 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54732) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dHDxH-0003Jl-7k for 27210@debbugs.gnu.org; Sat, 03 Jun 2017 14:39:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dHDxB-0001PX-9l for 27210@debbugs.gnu.org; Sat, 03 Jun 2017 14:39:14 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45974) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dHDx5-0001Gp-9q; Sat, 03 Jun 2017 14:39:07 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2971 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dHDx3-0005qT-Le; Sat, 03 Jun 2017 14:39:06 -0400 In-reply-to: <83efv1aqzx.fsf@gnu.org> (message from Eli Zaretskii on Sat, 03 Jun 2017 21:02:58 +0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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" Xref: news.gmane.org gmane.emacs.bugs:133228 Archived-At: > Date: Sat, 03 Jun 2017 21:02:58 +0300 > From: Eli Zaretskii > Cc: 27210@debbugs.gnu.org, ambrevar@gmail.com > > > I can reproduce this, the problem seems to be that window-start and > > window-end give the same answers as point-min and point-max respectively > > when in daemon mode. This causes linum-update-window to make overlays > > for every line in the buffer. > > So you are saying this just takes a lot of time, but will eventually > end? If so, what is the bug here? Or maybe we should do the below? diff --git a/lisp/linum.el b/lisp/linum.el index 8baa263..06165f2 100644 --- a/lisp/linum.el +++ b/lisp/linum.el @@ -112,7 +112,8 @@ linum-mode (define-globalized-minor-mode global-linum-mode linum-mode linum-on) (defun linum-on () - (unless (minibufferp) + (unless (or (minibufferp) + (and (daemonp) (null (frame-parameter nil 'client)))) (linum-mode 1))) (defun linum-delete-overlays ()