'again)
(setq methods (cdr methods))))
(t
- (error "[yas] invalid element in `yas-key-syntaxes'")))
+ (yas--warning "Warning invalid element %s in `yas-key-syntaxes'" method)))
(setq templates
(mapcan #'(lambda (table)
(yas--fetch table (buffer-substring-no-properties (point)
(when (> yas-verbosity level)
(message "%s" (apply #'yas--format message args))))
+(defun yas--warning (format-control &rest format-args)
+ (let ((msg (apply #'format format-control format-args)))
+ (display-warning 'yasnippet msg :warning)
+ (yas--message 1 msg)))
+
(defun yas--format (format-control &rest format-args)
(apply #'format (concat "[yas] " format-control) format-args))