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

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

[elpa] master ba4e5c1 01/51: * yasnippet-debug.el (yas-debug-snippet): H


From: Noam Postavsky
Subject: [elpa] master ba4e5c1 01/51: * yasnippet-debug.el (yas-debug-snippet): Handle non-numbered fields.
Date: Sun, 13 May 2018 13:11:38 -0400 (EDT)

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

    * yasnippet-debug.el (yas-debug-snippet): Handle non-numbered fields.
---
 yasnippet-debug.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/yasnippet-debug.el b/yasnippet-debug.el
index 178e627..7bfbde4 100644
--- a/yasnippet-debug.el
+++ b/yasnippet-debug.el
@@ -177,7 +177,7 @@
     (when-let (active-field (yas--snippet-active-field snippet))
       (unless (consp (yas--field-start active-field))
         (printf "\tactive field: #%d %s %s covering \"%s\"\n"
-                (yas--field-number active-field)
+                (or (yas--field-number active-field) -1)
                 (if (yas--field-modified-p active-field) "**" "--")
                 (yas-debug-live-range active-field)
                 (buffer-substring-no-properties (yas--field-start 
active-field) (yas--field-end active-field)))))
@@ -188,7 +188,7 @@
     (dolist (field (yas--snippet-fields snippet))
       (unless (consp (yas--field-start field))
         (printf "\tfield: %d %s %s covering \"%s\" next: %s%s\n"
-                (yas--field-number field)
+                (or (yas--field-number field) -1)
                 (if (yas--field-modified-p field) "**" "--")
                 (yas-debug-live-range field)
                 (buffer-substring-no-properties (yas--field-start field) 
(yas--field-end field))



reply via email to

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