mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 13:13:03 +00:00
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.
This commit is contained in:
parent
7703a55ac4
commit
8df6a6ed8e
@ -1272,7 +1272,8 @@ Returns (TEMPLATES START END). This function respects
|
|||||||
'again)
|
'again)
|
||||||
(setq methods (cdr methods))))
|
(setq methods (cdr methods))))
|
||||||
(t
|
(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)))
|
(let ((possible-key (buffer-substring-no-properties (point) original)))
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(goto-char original)
|
(goto-char original)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user