]> code.delx.au - gnu-emacs-elpa/commitdiff
* yasnippet.el (yas--scan-sexps): Use ignore-errors.
authorNoam Postavsky <npostavs@users.sourceforge.net>
Mon, 12 Oct 2015 01:17:50 +0000 (21:17 -0400)
committerNoam Postavsky <npostavs@users.sourceforge.net>
Mon, 12 Oct 2015 01:17:50 +0000 (21:17 -0400)
yasnippet.el

index a11901117bc1c1578acc47c6808445bd54322c9d..706c86a70cefea8205bd75a235acc9b8cf1fb254 100644 (file)
@@ -4014,11 +4014,9 @@ with their evaluated value into `yas--backquote-markers-and-strings'."
         (set-marker marker nil)))))
 
 (defun yas--scan-sexps (from count)
-  (condition-case _
-      (with-syntax-table (standard-syntax-table)
-        (scan-sexps from count))
-    (error
-     nil)))
+  (ignore-errors
+    (with-syntax-table (standard-syntax-table)
+      (scan-sexps from count))))
 
 (defun yas--make-marker (pos)
   "Create a marker at POS with nil `marker-insertion-type'."