Open YueRen opened 2 weeks ago
Why are you using prism-whitespace-mode
in a Lisp buffer? That mode is for whitespace-sensitive languages like Python. prism-mode
is for Lisp.
Why are you using
prism-whitespace-mode
in a Lisp buffer? That mode is for whitespace-sensitive languages like Python.prism-mode
is for Lisp.
Good question, I am not. My original example is in julia, but I just thought that finding an elisp example would make it easier to debug.
Here is the same example in python:
def my_delete_sentence():# <--- no space before # !!
for i in 1:3:
print("hello world")
print("goodbye world")
def my_delete_word()# <--- no space before # !!
for i in 1:3:
print("hello world")
print("goodbye world")
Thanks. With that content in python-mode
on Emacs 29.4, the messages buffer shows:
Error during redisplay: (jit-lock-function 148) signaled (error "prism: Infinite loop detected in ‘prism-match-whitespace’ (buffer:#<buffer prism-test.py> point:150). Please report this bug")
Enabling
prism-whitespace-mode
in a buffer without spaces before line comment delimiter causes extreme slow downs. Here is an elisp example:(I'm not advocating for this style, but if you have enough students you will see all sorts of code.)