From fcbd79ca21b6d21606fa23a04550d8071c507d40 Mon Sep 17 00:00:00 2001 From: Zhang Chiyuan Date: Fri, 7 Mar 2008 10:46:11 +0000 Subject: [PATCH] avoid recursion. --- yasnippet.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/yasnippet.el b/yasnippet.el index f83e54a..0969bdd 100644 --- a/yasnippet.el +++ b/yasnippet.el @@ -630,7 +630,8 @@ It looks key binding for TAB. If found, execute it. If not found. Run `indent-for-tab-command'." (interactive) (let ((command (key-binding (kbd "TAB")))) - (if command + (if (and command + (not (eq command 'yas/expand))) (call-interactively command) (call-interactively 'indent-for-tab-command))))