5 Jul 19:27
Re: Issue 143 in yasnippet: Field variable nil, but field id still there in the buffer
Comment #2 on issue 143 by lennart.borgman: Field variable nil, but field id still there in the buffer http://code.google.com/p/yasnippet/issues/detail?id=143 I think adding something like this should fix the problem (though I did not test it now): ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Change major mode hooks ;; (put 'yas/fallback-behavior 'permanent-local t) (put 'yas/dont-activate 'permanent-local t) (put 'yas/mode-symbol 'permanent-local t) (put 'yas/active-field-overlay 'permanent-local t) (put 'yas/field-protection-overlays 'permanent-local t) (put 'yas/deleted-text 'permanent-local t) (defun yas/change-major-mode-handler () "Handle exiting major modes." (when yas/active-field-overlay (delete-overlay yas/active-field-overlay) (setq yas/active-field-overlay)) (when yas/field-protection-overlays (delete-overlay yas/field-protection-overlays) (setq yas/field-protection-overlays)))) -- -- You received this message because you are subscribed to the Google Groups "smart-snippet and YASnippet" group.(Continue reading)
RSS Feed