Open Eason0210 opened 3 years ago
Same here.
My reproduction steps:
⋊> emacsq.sh -P haskell-mode,symbol-overlay --eval "
(progn
(add-hook 'haskell-mode-hook 'interactive-haskell-mode)
(add-hook 'haskell-mode-hook 'symbol-overlay-mode)
(view-echo-area-messages)
(toggle-debug-on-error)
(profiler-start 'cpu)
(switch-to-buffer \"*.hs\")
(haskell-mode)
(insert \"triples = [(a,b,c) | c <- [1..10], a <- [1..c], b <- [1\")
(goto-char (point-max)))" -nw
1
is highliged...
(Get no response)C-g
M-x profiler-report
Function CPU samples % + ... 847 54% - command-execute 717 45% - call-interactively 717 45% - funcall-interactively 703 44% - self-insert-command 639 40% - symbol-overlay-refresh 639 40% - looking-at 639 40% - internal--syntax-propertize 639 40% - syntax-propertize 639 40% - haskell-syntax-propertize 616 39% - haskell-lexeme-looking-at-token 510 32% haskell-lexeme-looking-at-qidsym 110 7% haskell-lexeme-looking-at-char-literal 38 2% haskell-lexeme-looking-at-string-lit... 28 1% match-string-no-properties 10 0%
FWIW, I cannot reproduce this bug.
seems to work fine on Emacs 29.1. unfortunately i cant upgrade all of my systems from 28 yet, so i would be very grateful if anyone could figure out why this happens.
Symbol-overlay-mode will cause Emacs to freeze with haskell-mode enabled,I am not sure it is cause by
haskell-mode
orsymbol-overlay
.Steps to reproduce the issue:
.emacs.d
file with another name.emacs
file in the current user'sHOME
directory (for example, myHOME
is theC:\Users\Aqua
directory), and copy the following code to the.emacs
file.Start Emacs, an error will be raised now, because the required packages have not been installed.
Manually refresh the package contents and install
haskell-mode
andsymbol-overlay
Restart Emacs, now it can start normally.
C-x, C-f
Create atest.hs
file in any directory, presstest.hs
file.Symbol-Overlay mode enabled in current buffer Error during redisplay: (internal--syntax-propertize 44) signaled (quit) Error during redisplay: (internal--syntax-propertize 57) signaled (quit)