[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))
- [elpa] master updated (04889dc -> e64297e), Noam Postavsky, 2018/05/13
- [elpa] master ba4e5c1 01/51: * yasnippet-debug.el (yas-debug-snippet): Handle non-numbered fields.,
Noam Postavsky <=
- [elpa] master 1fc3426 02/51: Add test relying on overlay hook inhibition in `yas-expand-snippet', Noam Postavsky, 2018/05/13
- [elpa] master ece7935 07/51: * yasnippet.el (yas--message): Fix invalid docstring reference., Noam Postavsky, 2018/05/13
- [elpa] master 4ab9cb5 04/51: Set test to fail with newer org version, Noam Postavsky, 2018/05/13
- [elpa] master 0b8d434 05/51: Unset autoload-compute-prefixes for utility files, Noam Postavsky, 2018/05/13
- [elpa] master acec3ba 06/51: * doc/faq.org: Fix typo., Noam Postavsky, 2018/05/13
- [elpa] master ee81da9 11/51: Allow "# --" end-of-header marker to have trailing space, Noam Postavsky, 2018/05/13
- [elpa] master b1ca219 12/51: Remove submodules (snippet and yasmate), Noam Postavsky, 2018/05/13
- [elpa] master 35a4df7 03/51: Let whitespace-global-mode work in new snippet buffers, Noam Postavsky, 2018/05/13
- [elpa] master d806b04 15/51: * yasnippet.el (snippet-mode): Derive from prog-mode., Noam Postavsky, 2018/05/13
- [elpa] master 1292cd2 10/51: Refactor undo tests, Noam Postavsky, 2018/05/13