[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/d-mode 8606775 240/346: Fix imenu jump position for new-st
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/d-mode 8606775 240/346: Fix imenu jump position for new-style aliases |
Date: |
Sun, 29 Aug 2021 11:00:38 -0400 (EDT) |
branch: elpa/d-mode
commit 8606775470ecefa02d1b0d0954e10081676d8693
Author: Vladimir Panteleev <git@thecybershadow.net>
Commit: Vladimir Panteleev <git@thecybershadow.net>
Fix imenu jump position for new-style aliases
---
d-mode.el | 6 +++---
tests/imenu.d | 7 ++++++-
2 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/d-mode.el b/d-mode.el
index 64f9459..02bc10a 100644
--- a/d-mode.el
+++ b/d-mode.el
@@ -7,7 +7,7 @@
;; Maintainer: Russel Winder <russel@winder.org.uk>
;; Vladimir Panteleev <vladimir@thecybershadow.net>
;; Created: March 2007
-;; Version: 201909092113
+;; Version: 201909092122
;; Keywords: D programming language emacs cc-mode
;; Package-Requires: ((emacs "25.1"))
@@ -620,8 +620,8 @@ Each list item should be a regexp matching a single
identifier."
d-spots
(cons
(if (eq kind t)
- (cons name (car decl-or-cast))
- (list kind (cons name (car decl-or-cast))))
+ (cons name id-start)
+ (list kind (cons name id-start)))
d-spots)))))))))
(nreverse d-spots)))
diff --git a/tests/imenu.d b/tests/imenu.d
index 0b49bb5..4cc2099 100644
--- a/tests/imenu.d
+++ b/tests/imenu.d
@@ -1,5 +1,5 @@
// #run: (d-test-get-imenu-lines)
-// #out: (4 6 11 14 17 19 22 25 33 34 37 40 43 46 49 52 54 56 67 75 78 81 84
87 89 93 94 96 97 99)
+// #out: (4 6 11 14 17 19 22 25 33 34 37 40 43 46 49 52 54 56 67 75 78 81 84
87 89 93 94 96 97 99 104)
void foo(int x) {}
@@ -99,3 +99,8 @@ Parameter!("foo()") run(string command) {}
string[string] environment;
static import std.process;
+
+alias
+ Number
+ =
+ int;
- [nongnu] elpa/d-mode 385cda4 177/346: Fix extant checkdoc, byte-compilation and fontification warnings, (continued)
- [nongnu] elpa/d-mode 385cda4 177/346: Fix extant checkdoc, byte-compilation and fontification warnings, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 86a86dd 110/346: Merge pull request #68 from sdilts/master, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode facf01a 187/346: Fix imenu with inout types, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 951ca5c 212/346: Remove code incompatible with older Emacs versions, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 4dce323 229/346: README.md: Add note about compatibility, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode b1d752a 233/346: Fix buffer modification when invoking imenu, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 441761c 237/346: Delete old keyword lists for imenu, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode f7ac740 235/346: Fix imenu classification of some variables, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 29940d7 226/346: Makefile: Add some utility commands, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode d14a001 239/346: Fix imenu false positive for static imports, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 8606775 240/346: Fix imenu jump position for new-style aliases,
ELPA Syncer <=
- [nongnu] elpa/d-mode 1908f59 236/346: Speed up imenu a bit, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 627a6f8 273/346: Move c-forward-decl-or-cast-1 into d-mode.el, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode e9278a9 114/346: Reimplement compilation-mode error message detection for DMD, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode aff84c6 115/346: update support for Emacs 25, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode a564656 116/346: Merge pull request #71 from brdjns/patch-1, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 23a3661 119/346: Merge pull request #72 from nordlow/fix-d-exceptions-regexp, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode e5d21be 121/346: README: Update shield images and links to use official project repository, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 576dd29 123/346: tests: Actually test compilation-mode error list correctness, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 7817dbc 122/346: d-mode-test: Announce mismatched values of inline tests, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 8ccad32 136/346: Simplify cascaded call indentation setup, ELPA Syncer, 2021/08/29