-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Symbol-overlay conflicts with haskell-mode #75
Comments
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
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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.haskell-mode
andsymbol-overlay
Restart Emacs, now it can start normally.
C-x, C-f
Create atest.hs
file in any directory, press to turn on symbol-overlay-mode. Enter the following content from the beginning in the emptytest.hs
file.When I input the third
1
, and then input aspace
or.
It will be stuck (as shown in the figure below, the cursor now is at the position indicated by the red arrow).press
C-g
can go back to normal , and get error from Messages :1
, and delete..c
, and input..c
again.Tested on:
Emacs 28.0.50 native compile and Emacs 27.2
OS: macOS Big Sur 11.5 and Windows 10
The text was updated successfully, but these errors were encountered: