From 8df6a6ed8e667a92b681c3950cee6acfd4213078 Mon Sep 17 00:00:00 2001 From: Noam Postavsky Date: Sun, 27 Sep 2015 20:16:28 -0400 Subject: [PATCH] Fix invalid yas-key-syntaxes element warning * yasnippet.el (yas--templates-for-key-at-point): Fix infinite loop and remove redundant "Warning" in the bad element warning. --- yasnippet.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/yasnippet.el b/yasnippet.el index f47bafe..1311cd0 100644 --- a/yasnippet.el +++ b/yasnippet.el @@ -1272,7 +1272,8 @@ Returns (TEMPLATES START END). This function respects 'again) (setq methods (cdr methods)))) (t - (yas--warning "Warning invalid element %s in `yas-key-syntaxes'" method))) + (setq methods (cdr methods)) + (yas--warning "Invalid element `%s' in `yas-key-syntaxes'" method))) (let ((possible-key (buffer-substring-no-properties (point) original))) (save-excursion (goto-char original)