|
|
MonkeyPatching
MonkeyPatching for some functions that's causing problem to yasnippet.
c-neutralize-syntax-in-CPP
c-neutralize-syntax-in-CPP sometimes fire "End of Buffer" error (when it execute forward-char) and interrupt the after change hook. Thus prevent the insert-behind hook of yasnippet to be invoked. Here's a way to reproduce it:
- open a new Emacs.
- load yasnippet.
- open a new .cpp file.
- input "inc" and press TAB to expand the snippet.
- select the #include <...> snippet.
- type inside <>
The problem is there: End of Buffer error is shown in mini-buffer. And insert-behind hook of yasnippet is not called, and overlay not moved. The snippet become invalid. Press TAB again you'll be complained not inside a snippet.
Sign in to add a comment
