-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Description
Symbol-overlay-mode will cause Emacs to freeze with haskell-mode enabled,I am not sure it is cause by haskell-mode or symbol-overlay.
Steps to reproduce the issue:
- Back up your current configuration
.emacs.dfile with another name - Create an
.emacsfile in the current user'sHOMEdirectory (for example, myHOMEis theC:\Users\Aquadirectory), and copy the following code to the.emacsfile.
(require 'package)
(add-to-list 'package-archives '( "melpa" . "https://melpa.org/packages/") t)
(package-initialize)
(require 'symbol-overlay)
(global-set-key (kbd "M-i") 'symbol-overlay-put)
(global-set-key (kbd "M-n") 'symbol-overlay-switch-forward)
(global-set-key (kbd "M-p") 'symbol-overlay-switch-backward)
(global-set-key (kbd "<f7>") 'symbol-overlay-mode)
(global-set-key (kbd "<f8>") 'symbol-overlay-remove-all)
(require 'haskell-mode)
(add-hook 'haskell-mode-hook 'interactive-haskell-mode)- Start Emacs, an error will be raised now, because the required packages have not been installed.
- Manually refresh the package contents and install
haskell-modeandsymbol-overlay
M-x package-refresh-contents
M-x package-install RET haskell-mode
M-x package-install RET symbol-overlay
-
Restart Emacs, now it can start normally.
-
C-x, C-fCreate atest.hsfile in any directory, press to turn on symbol-overlay-mode. Enter the following content from the beginning in the emptytest.hsfile.
triples = [(a,b,c) | c <- [1..10], a <- [1..c], b <- [1..a]]
-
When I input the third
1, and then input aspaceor.It will be stuck (as shown in the figure below, the cursor now is at the position indicated by the red arrow).

-
press
C-gcan go back to normal , and get error from Messages :
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)
- if at step 7 can't reproduce issue, you can move cursor back to the the position after the second
1, and delete..c, and input..cagain.
Tested on:
Emacs 28.0.50 native compile and Emacs 27.2
OS: macOS Big Sur 11.5 and Windows 10
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels