[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 3bea9ab 14/22: Merge pull request #498 from wyuenho/fix-sh
From: |
Dmitry Gutov |
Subject: |
[elpa] master 3bea9ab 14/22: Merge pull request #498 from wyuenho/fix-short-name-for-emacs26 |
Date: |
Tue, 19 Feb 2019 06:06:47 -0500 (EST) |
branch: master
commit 3bea9ab39b6c0b6dd442d69fe53183c1f7652284
Merge: 1b0e174 40a43b1
Author: Dmitry Gutov <address@hidden>
Commit: GitHub <address@hidden>
Merge pull request #498 from wyuenho/fix-short-name-for-emacs26
Fix broken js2-node-short-name for Emacs 26
---
js2-mode.el | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/js2-mode.el b/js2-mode.el
index c836fa2..5058020 100644
--- a/js2-mode.el
+++ b/js2-mode.el
@@ -4551,8 +4551,11 @@ If N has no parent pointer, returns N."
(defsubst js2-node-short-name (n)
"Return the short name of node N as a string, e.g. `js2-if-node'."
- (substring (symbol-name (aref n 0))
- (length "cl-struct-")))
+ (let ((name (symbol-name (aref n 0))))
+ (if (string-prefix-p "cl-struct-" name)
+ (substring (symbol-name (aref n 0))
+ (length "cl-struct-"))
+ name)))
(defun js2-node-child-list (node)
"Return the child list for NODE, a Lisp list of nodes.
- [elpa] master updated (ddd6b22 -> c5cc951), Dmitry Gutov, 2019/02/19
- [elpa] master 243ba59 02/22: Fix typo in test name, namepsace -> namespace, Dmitry Gutov, 2019/02/19
- [elpa] master 6d160d0 06/22: Use regular forward-sexp when inside strings, Dmitry Gutov, 2019/02/19
- [elpa] master 3bea9ab 14/22: Merge pull request #498 from wyuenho/fix-short-name-for-emacs26,
Dmitry Gutov <=
- [elpa] master bf61e6f 10/22: Fix #495 Aggressively reparse during imenu-create-index when possible, Dmitry Gutov, 2019/02/19
- [elpa] master 47dee19 03/22: Properly classify imported symbols, Dmitry Gutov, 2019/02/19
- [elpa] master dee4c47 07/22: Merge pull request #491 from felipeochoa/forward-sexp-in-str, Dmitry Gutov, 2019/02/19
- [elpa] master 40a43b1 13/22: Fix broken js2-node-short-name for Emacs 26, Dmitry Gutov, 2019/02/19
- [elpa] master 8bb1907 01/22: Silence "variable ‘_’ not left unused", Dmitry Gutov, 2019/02/19
- [elpa] master 2ed3cc0 17/22: Merge pull request #501 from thorrr/obj-literal-fix, Dmitry Gutov, 2019/02/19
- [elpa] master 58006df 20/22: Release new version, Dmitry Gutov, 2019/02/19
- [elpa] master 381545b 08/22: Make js2-additional-externs safe as a local variable, Dmitry Gutov, 2019/02/19
- [elpa] master ed955e7 21/22: Update NEWS, Dmitry Gutov, 2019/02/19
- [elpa] master 4125b49a 04/22: Merge pull request #487 from lelit/classify-imported, Dmitry Gutov, 2019/02/19