unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#47974: 27.2; doc-view-mode freezes when used together with global-linum-mode
@ 2021-04-23 16:15 Raoul Comninos
  2021-04-25 11:02 ` Stefan Kangas
  0 siblings, 1 reply; 5+ messages in thread
From: Raoul Comninos @ 2021-04-23 16:15 UTC (permalink / raw)
  To: 47974

[-- Attachment #1: Mail message body --]
[-- Type: text/plain, Size: 6387 bytes --]

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.

In GNU Emacs 27.2 (build 1, x86_64-w64-mingw32)
 of 2021-03-26 built on fv-az68-192
Repository revision:
4e952a7445daa0fb9df229ea61b69ccee3264d4a
Repository branch: master
Windowing system distributor 'Microsoft Corp.', version
10.0.19041
System Description: Microsoft Windows 10 Pro
(v10.0.2004.19041.928)

Recent messages:
Loading savehist...done
Loading paren...done
Loading winner...done
Loading c:/rari/.emacs.d/recentf...done
Loading c:/rari/.emacs.d/.session...done
(org-roam) total: 381, files-modified: 0, ids: 0, links: 0, tags:
0, titles: 0, refs: 0, deleted: 0
Initializing Hyperbole...done
Hyperbole 7.1.4 is ready for action.
For information about GNU Emacs and the GNU system, type C-h
C-a.
Making completion list...

Configured using:
 'configure --prefix=/mingw64 --build=x86_64-w64-mingw32
--with-modules
 --without-dbus --without-compress-install
'CFLAGS=-march=x86-64
 -mtune=generic -O2 -pipe'
CPPFLAGS=-D__USE_MINGW_ANSI_STDIO=1
 'LDFLAGS=-pipe

-Wl,--dynamicbase,--high-entropy-va,--nxcompat,--default-image-
base-high''

Configured features:
XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY W32NOTIFY
ACL GNUTLS LIBXML2
HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS MODULES
THREADS JSON PDUMPER GMP

Important settings:
  value of $LANG: ENU
  locale-coding-system: cp1252

Major mode: Org

Minor modes in effect:
  winner-mode: t
  show-paren-mode: t
  savehist-mode: t
  save-place-mode: t
  delete-selection-mode: t
  recentf-mode: t
  persistent-scratch-autosave-mode: t
  org-roam-mode: t
  hyperbole-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  global-visual-line-mode: t
  visual-line-mode: t
  transient-mark-mode: t
  abbrev-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug sendmail session winner paren
savehist
saveplace grep elec-pair delsel cus-start cus-load two-column
remember
recentf tree-widget dired+ w32-browser image-dired image-file
bookmark+
bookmark+-key edmacro kmacro bookmark+-1 bookmark+-bmu
bookmark+-lit
bookmark dired-x dired-aux cl-extra ol-eww eww mm-url thingatpt
url-queue ol-rmail ol-mhe ol-irc ol-info ol-gnus nnir gnus-sum url
url-proxy url-privacy url-expand url-methods url-history mailcap
shr
url-cookie url-domsuf url-util url-parse auth-source json map
url-vars
svg gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail
mail-source
utf7 netrc nnoo parse-time iso8601 gnus-spec gnus-int
gnus-range message
rmc puny rfc822 mml mml-sec password-cache epa epg
epg-config mm-decode
mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils
mailheader
gnus-win gnus nnheader gnus-util rmail rmail-loaddefs rfc2047
rfc2045
ietf-drums text-property-search mail-utils mm-util mail-prsvr
wid-edit
ol-docview doc-view jka-compr image-mode exif ol-bibtex bibtex
ol-bbdb
ol-w3m persistent-scratch icomplete-vertical icomplete org-roam
org-roam-link org-roam-graph xml org-roam-doctor
org-roam-dailies
org-roam-capture org-roam-db emacsql-sqlite3 emacsql
emacsql-compiler
org-capture org-roam-completion org-roam-buffer org-roam-faces
org-roam-macs org-roam-compat rx f s dash org-id org-refile
showkey
hyperbole hinit hibtypes hib-doc-id klink hib-kbd hib-debbugs
hib-social
hsys-www hib-org hsys-org org-element avl-tree org ob ob-tangle
ob-ref
ob-lob ob-table ob-exp org-macro org-footnote org-src ob-comint
org-pcomplete pcomplete org-list org-faces org-entities time-date
org-version ob-emacs-lisp ob-core ob-eval org-table ol org-keys
org-compat advice org-macs org-loaddefs format-spec hypb-ert
ert pp ewoc
debug backtrace hui-mini hui hactypes hui-mouse hmouse-key
hargs
hmouse-tag etags fileloop generator xref cl-seq project eieio
eieio-core
eieio-loaddefs find-func hmouse-info info hui-menu hyrolo-menu
hui-jmenu
hpath subr-x noutline outline hmouse-sh hmouse-drv windmove
hypb locate
compile comint ansi-color ring hui-window pulse hycontrol
easy-mmode
hsettings hui-em-but hyrolo hmail hbut view hact pcase hhist
hbdata
hbmap hmoccur derived help-mode cl-macs browse-url htz
cal-julian
cal-menu calendar cal-loaddefs hui-select rng-nxml rng-valid
rng-loc
rng-uri rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn
nxml-ns
easymenu nxml-mode nxml-outln nxml-rap nxml-util nxml-enc
xmltok
sgml-mode seq byte-opt gv bytecomp byte-compile cconv dom
cl-loaddefs
cl-lib hvar set hversion hload-path xah-dired dired dired-loaddefs
tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type
mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win
w32-vars
term/common-win tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode elisp-mode
lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch
timer
select scroll-bar mouse jit-lock font-lock syntax facemenu
font-core
term/tty-colors frame minibuffer cl-generic cham georgian
utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese
eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic
indian
cyrillic chinese composite charscript charprop case-table
epa-hook
jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice
loaddefs
button faces cus-face macroexp files text-properties overlay sha1
md5
base64 format env code-pages mule custom widget
hashtable-print-readable
backquote threads w32notify w32 multi-tty make-network-process
emacs)

Memory information:
((conses 16 363094 26634)
 (symbols 48 32020 1)
 (strings 32 101337 4094)
 (string-bytes 1 3406457)
 (vectors 16 44015)
 (vector-slots 8 488103 35304)
 (floats 8 321 37)
 (intervals 56 672 0)
 (buffers 1000 13))



[-- Attachment #2: Mail message body --]
[-- Type: text/html, Size: 20229 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#47974: 27.2; doc-view-mode freezes when used together with global-linum-mode
  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
  0 siblings, 1 reply; 5+ messages in thread
From: Stefan Kangas @ 2021-04-25 11:02 UTC (permalink / raw)
  To: Raoul Comninos; +Cc: 47974

"Raoul Comninos" <revrari@mweb.co.za> writes:

> 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.
>
> In GNU Emacs 27.2 (build 1, x86_64-w64-mingw32)
>  of 2021-03-26 built on fv-az68-192
> Repository revision: 4e952a7445daa0fb9df229ea61b69ccee3264d4a
> Repository branch: master
> Windowing system distributor 'Microsoft Corp.', version 10.0.19041
> System Description: Microsoft Windows 10 Pro (v10.0.2004.19041.928)

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.)





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#47974: 27.2; doc-view-mode freezes when used together with global-linum-mode
  2021-04-25 11:02 ` Stefan Kangas
@ 2021-04-25 11:45   ` Gregory Heytings
  2021-04-25 13:54     ` Stefan Kangas
  0 siblings, 1 reply; 5+ messages in thread
From: Gregory Heytings @ 2021-04-25 11:45 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: Raoul Comninos, 47974


>> 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?





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#47974: 27.2; doc-view-mode freezes when used together with global-linum-mode
  2021-04-25 11:45   ` Gregory Heytings
@ 2021-04-25 13:54     ` Stefan Kangas
  2021-05-02  9:29       ` Lars Ingebrigtsen
  0 siblings, 1 reply; 5+ messages in thread
From: Stefan Kangas @ 2021-04-25 13:54 UTC (permalink / raw)
  To: Gregory Heytings; +Cc: Raoul Comninos, 47974

Gregory Heytings <gregory@heytings.org> writes:

> 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?

Sounds good to me.





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#47974: 27.2; doc-view-mode freezes when used together with global-linum-mode
  2021-04-25 13:54     ` Stefan Kangas
@ 2021-05-02  9:29       ` Lars Ingebrigtsen
  0 siblings, 0 replies; 5+ messages in thread
From: Lars Ingebrigtsen @ 2021-05-02  9:29 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: Gregory Heytings, Raoul Comninos, 47974

Stefan Kangas <stefan@marxist.se> writes:

> Gregory Heytings <gregory@heytings.org> writes:
>
>> 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?
>
> Sounds good to me.

Me, too, so I made that change in Emacs 28.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-05-02  9:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2021-04-25 13:54     ` Stefan Kangas
2021-05-02  9:29       ` Lars Ingebrigtsen

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).