override c-electric- serial function in yas/keymap instead of yas-minor-mode-map.

This commit is contained in:
Zhang Chiyuan 2009-01-19 14:10:27 +00:00
parent b8cb1d27f4
commit d4b0325911

View File

@ -1597,9 +1597,9 @@ handle the end-of-buffer error fired in it by calling
;; disable c-electric-* serial command in YAS fields ;; disable c-electric-* serial command in YAS fields
(add-hook 'c-mode-common-hook (add-hook 'c-mode-common-hook
'(lambda () '(lambda ()
(make-variable-buffer-local 'yas/minor-mode-map) (make-variable-buffer-local 'yas/keymap)
(dolist (k '(":" ">")) (dolist (k '(":" ">" ";" "<" "{" "}"))
(define-key yas/minor-mode-map (define-key yas/keymap
k 'self-insert-command)))) k 'self-insert-command))))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;