From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.bugs Subject: bug#47974: 27.2; doc-view-mode freezes when used together with global-linum-mode Date: Sun, 25 Apr 2021 11:45:41 +0000 Message-ID: <677a04021b1aedea03b4@heytings.org> References: <6082F29F.24569.2DE3A47@revrari.mweb.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16335"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Raoul Comninos , 47974@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 25 13:46:45 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ladDp-0004AW-6H for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 25 Apr 2021 13:46:45 +0200 Original-Received: from localhost ([::1]:54910 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ladDo-0006zK-9i for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 25 Apr 2021 07:46:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33398) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ladD8-0006yy-Dm for bug-gnu-emacs@gnu.org; Sun, 25 Apr 2021 07:46:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58851) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ladD8-0006He-5H for bug-gnu-emacs@gnu.org; Sun, 25 Apr 2021 07:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ladD8-0004Ez-2R for bug-gnu-emacs@gnu.org; Sun, 25 Apr 2021 07:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 25 Apr 2021 11:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47974 X-GNU-PR-Package: emacs Original-Received: via spool by 47974-submit@debbugs.gnu.org id=B47974.161935114516275 (code B ref 47974); Sun, 25 Apr 2021 11:46:02 +0000 Original-Received: (at 47974) by debbugs.gnu.org; 25 Apr 2021 11:45:45 +0000 Original-Received: from localhost ([127.0.0.1]:42164 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ladCq-0004ER-W9 for submit@debbugs.gnu.org; Sun, 25 Apr 2021 07:45:45 -0400 Original-Received: from heytings.org ([95.142.160.155]:52468) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ladCp-0004EJ-I3 for 47974@debbugs.gnu.org; Sun, 25 Apr 2021 07:45:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20210101; t=1619351142; bh=d6gSVe2F+vAJq1K1jO0tUHf7kQfaENzFHLLik6BfEmg=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=g+TEDJ6cy5yN5K1pkhi0G6dZjqYBdCuIxfnO69MispQN8qyoepDn1GILalSNQ3NOC mnabdYfK+iDh99LtRjP7KlZxAd0ohsHCp0IXILIjyOZCaZxYdtbitJwKVKvJ0RBKyw 78NSk7Vsj/e1tU2/Wy/g/GMg1D6MYMfmOmlCTHVbPPLDK5QfSdWoUhYP0mjWqZ/a/e bgBvu81eNpBKFn7Z/HZVQ5o9RVeJ6XkuO38oBFKGIsS1xvRMtib+fVcF7kjmdGr25B 4r17bISePKXo7P+5DWobItDEnraRtIS6WiF2+wA+KMqCwNRfK/ZwCuqO/vyNX/lWUY A8tFqFmS9yHIg== In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:204866 Archived-At: >> When trying to view documents using `doc-view-mode' Emacs slows down >> and eventually freezes. I traced this problem to `global-linum-mode' >> which was set to `t' in my init.el file. I tested this with Emacs -Q >> and I am able to replicate it. `global-linum-mode' does not work with >> `doc-view-mode'. Emacs does not crash but freezes. One has then to quit >> Emacs through the Windows task manager. > > I guess the recipe here is: > > 0. emacs -Q > 1. M-x global-linum-mode RET > 2. C-x C-f > > I can confirm Emacs is very unresponsive, but there is no freeze here. > This is on GNU/Linux and current master. > > (I'm not seeing any unresponsiveness with `display-line-numbers-mode', > so a workaround might be to just use that instead.) > Why not just automatically turn these modes off in doc-view-mode with (setq-local global-linum-mode nil display-line-numbers-mode nil)? Is there a good reason to see the "1" there?