unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Gregory Heytings <gregory@heytings.org>
To: Stefan Kangas <stefan@marxist.se>
Cc: Raoul Comninos <revrari@mweb.co.za>, 47974@debbugs.gnu.org
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	[thread overview]
Message-ID: <677a04021b1aedea03b4@heytings.org> (raw)
In-Reply-To: <CADwFkmk_SzFFBPL0wwVSsg6EG8-Et4t5iyrBm=AD+=aNcSu+yA@mail.gmail.com>


>> 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 <foo.pdf>
>
> 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?





  reply	other threads:[~2021-04-25 11:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-23 16:15 bug#47974: 27.2; doc-view-mode freezes when used together with global-linum-mode Raoul Comninos
2021-04-25 11:02 ` Stefan Kangas
2021-04-25 11:45   ` Gregory Heytings [this message]
2021-04-25 13:54     ` Stefan Kangas
2021-05-02  9:29       ` Lars Ingebrigtsen

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=677a04021b1aedea03b4@heytings.org \
    --to=gregory@heytings.org \
    --cc=47974@debbugs.gnu.org \
    --cc=revrari@mweb.co.za \
    --cc=stefan@marxist.se \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).