emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master b6d924c 31/60: * yasnippet.el (yas--scan-sexps): Use ignor


From: João Távora
Subject: [elpa] master b6d924c 31/60: * yasnippet.el (yas--scan-sexps): Use ignore-errors.
Date: Thu, 21 Jan 2016 22:35:59 +0000

branch: master
commit b6d924c83dad13b54d16c6546348c29756f592b7
Author: Noam Postavsky <address@hidden>
Commit: Noam Postavsky <address@hidden>

    * yasnippet.el (yas--scan-sexps): Use ignore-errors.
---
 yasnippet.el |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/yasnippet.el b/yasnippet.el
index a119011..706c86a 100644
--- a/yasnippet.el
+++ b/yasnippet.el
@@ -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'."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]