From 6b865cda63d4c950715a16a6976acbde0cceec5c Mon Sep 17 00:00:00 2001 From: capitaomorte Date: Thu, 10 Sep 2009 22:41:22 +0000 Subject: [PATCH] * More adjustments to fixing issue 93 --- yasnippet.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/yasnippet.el b/yasnippet.el index 7f7df15..07578b8 100644 --- a/yasnippet.el +++ b/yasnippet.el @@ -245,7 +245,7 @@ representation using `read-kbd-macro'." (if (fboundp 'yas/trigger-key-reload) (yas/trigger-key-reload old))))) -(defcustom yas/next-field-key "TAB" +(defcustom yas/next-field-key '("TAB" "") "The key to navigate to next field when a snippet is active. Value is a string that is converted to the internal Emacs key @@ -3672,9 +3672,8 @@ handle the end-of-buffer error fired in it by calling ;; disable c-electric-* serial command in YAS fields (add-hook 'c-mode-common-hook '(lambda () - (make-variable-buffer-local 'yas/keymap) (dolist (k '(":" ">" ";" "<" "{" "}")) - (define-key yas/keymap + (define-key (make-local-variable 'yas/keymap) k 'self-insert-command))))