What's new? | Help | Directory | Sign in
Google
                
Search
for
Updated Mar 07, 2008 by pluskid
Labels: Phase-Implementation
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:

  1. open a new Emacs.
  2. load yasnippet.
  3. open a new .cpp file.
  4. input "inc" and press TAB to expand the snippet.
  5. select the #include <...> snippet.
  6. 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