[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/js2-mode b4ede70 47/61: Fix &rest syntax in cl-destruct
From: |
Dmitry Gutov |
Subject: |
[elpa] externals/js2-mode b4ede70 47/61: Fix &rest syntax in cl-destructuring-bind. |
Date: |
Sun, 20 Dec 2020 12:20:09 -0500 (EST) |
branch: externals/js2-mode
commit b4ede70783526f135de41f116ec8ace3bb9292da
Author: Philipp Stephani <phst@google.com>
Commit: Philipp Stephani <phst@google.com>
Fix &rest syntax in cl-destructuring-bind.
&rest requires an argument. While ‘cl-destructuring-bind’ is somewhat
lenient
about this, its edebug specification is not, so functions that contain &rest
without argument can’t be edebugged.
---
js2-mode.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/js2-mode.el b/js2-mode.el
index 9c64341..b91d583 100644
--- a/js2-mode.el
+++ b/js2-mode.el
@@ -7702,7 +7702,8 @@ For instance, processing a nested scope requires a parent
function node."
(let (result fn parent-qname p elem)
(dolist (entry js2-imenu-recorder)
;; function node goes first
- (cl-destructuring-bind (current-fn &rest (&whole chain head &rest)) entry
+ (cl-destructuring-bind
+ (current-fn &rest (&whole chain head &rest rest)) entry
;; Examine head's defining scope:
;; Pre-processed chain, or top-level/external, keep as-is.
(if (or (stringp head) (js2-node-top-level-decl-p head))
@@ -11684,7 +11685,7 @@ highlighting features of `js2-mode'."
(let ((inhibit-read-only t))
(erase-buffer)
(dolist (err all-errs)
- (cl-destructuring-bind ((msg-key beg _end &rest) type line) err
+ (cl-destructuring-bind ((msg-key beg _end &rest rest) type line)
err
(insert-text-button
(format "line %d: %s" line (js2-get-msg msg-key))
'face type
- [elpa] externals/js2-mode 56991f7 45/61: Merge pull request #557 from phst/unused, (continued)
- [elpa] externals/js2-mode 56991f7 45/61: Merge pull request #557 from phst/unused, Dmitry Gutov, 2020/12/20
- [elpa] externals/js2-mode fe53814 26/61: Merge pull request #544 from wyuenho/use-type-face-for-class, Dmitry Gutov, 2020/12/20
- [elpa] externals/js2-mode e8bbfd2 31/61: Merge pull request #551 from phst/let, Dmitry Gutov, 2020/12/20
- [elpa] externals/js2-mode 710e430 33/61: Migrate remaining files to lexical binding, Dmitry Gutov, 2020/12/20
- [elpa] externals/js2-mode 124d4a3 35/61: Prefix an unused argument with an underscore., Dmitry Gutov, 2020/12/20
- [elpa] externals/js2-mode c00a562 37/61: Add browser symbols from the jslint setup, Dmitry Gutov, 2020/12/20
- [elpa] externals/js2-mode d397cab 39/61: Merge pull request #553 from phst/lexical, Dmitry Gutov, 2020/12/20
- [elpa] externals/js2-mode ae2d021 40/61: Merge pull request #554 from phst/unused-var, Dmitry Gutov, 2020/12/20
- [elpa] externals/js2-mode 3afdc05 42/61: move HTML element constructors to specific section, Dmitry Gutov, 2020/12/20
- [elpa] externals/js2-mode df9d74e 46/61: Improve a comment, Dmitry Gutov, 2020/12/20
- [elpa] externals/js2-mode b4ede70 47/61: Fix &rest syntax in cl-destructuring-bind.,
Dmitry Gutov <=
- [elpa] externals/js2-mode db17df4 53/61: Fix nullish coalescing in cond exprs and add test with ternary op, Dmitry Gutov, 2020/12/20
- [elpa] externals/js2-mode c665ebe 55/61: Move '??' back between '?:' and '||', Dmitry Gutov, 2020/12/20
- [elpa] externals/js2-mode 7f4ada4 49/61: start implementing NULLISH-COALESCING, likely incomplete, Dmitry Gutov, 2020/12/20
- [elpa] externals/js2-mode ffb7099 58/61: Merge pull request #563 from KevinBoyette/update-readme, Dmitry Gutov, 2020/12/20
- [elpa] externals/js2-mode 90e1434 48/61: Merge pull request #558 from phst/edebug, Dmitry Gutov, 2020/12/20
- [elpa] externals/js2-mode eb3be7e 54/61: Fix misplaced paren, Dmitry Gutov, 2020/12/20
- [elpa] externals/js2-mode c1763ab 52/61: add failing tests, Dmitry Gutov, 2020/12/20
- [elpa] externals/js2-mode 0f627a4 57/61: Update README.md, Dmitry Gutov, 2020/12/20
- [elpa] externals/js2-mode 6740d34 50/61: fix tokencount + structure, Dmitry Gutov, 2020/12/20
- [elpa] externals/js2-mode f956476 60/61: Release new version, Dmitry Gutov, 2020/12/20