yoya / js2-mode

Automatically exported from code.google.com/p/js2-mode
0 stars 0 forks source link

Typing #( seems to cause Emacs to loop infinitely #37

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Save all work in current Emacs session!
2. Use said Emacs session, or start a fresh Emacs session
3. js2-mode in *scratch* or some other interesting place
4. Type #(
5. Try to do something else

What is the expected output? What do you see instead?

It seems that this sequence triggers an infinite loop, session is
unrecoverable (\C-g will not save you, unfortunately). The Emacs process
needs to be taken down at the operating system level.

What version of the product are you using? On what operating system?

js2-version is a variable defined in `js2-mode.el'.
Its value is "1.7.0"
js2-mode-version is a variable defined in `js2-mode.el'.
Its value is 20080413
GNU Emacs 22.2.50.1 (i386-mingw-nt6.0.6001)
 of 2008-04-07 on SLAG

Original issue reported on code.google.com by dereksla...@gmail.com on 16 Apr 2008 at 1:05

GoogleCodeExporter commented 8 years ago
Setting js2-skip-preprocessor-directives to "on" seems to prevent the crashing
behavior. I'll keep this setting enabled in case I accidentally type the "danger
sequence" again, but I have no need for this setting otherwise.

Original comment by dereksla...@gmail.com on 16 Apr 2008 at 1:10

GoogleCodeExporter commented 8 years ago
ouch!

Original comment by steve.ye...@gmail.com on 16 Apr 2008 at 9:25

GoogleCodeExporter commented 8 years ago
Fixed for next release.

Original comment by steve.ye...@gmail.com on 16 Apr 2008 at 9:41

GoogleCodeExporter commented 8 years ago

Original comment by steve.ye...@gmail.com on 16 Apr 2008 at 9:43

GoogleCodeExporter commented 8 years ago

Original comment by steve.ye...@gmail.com on 19 Apr 2008 at 10:53