branch: externals/javaimp
commit c3d0bfa8d8bebc15eba622302bf38d236e5fe103
Author: Filipp Gunbin <[email protected]>
Commit: Filipp Gunbin <[email protected]>

    Minor fixes
---
 javaimp.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/javaimp.el b/javaimp.el
index b71bafb7fd..43b9cbd38b 100644
--- a/javaimp.el
+++ b/javaimp.el
@@ -695,8 +695,8 @@ in a major mode hook."
              ;; sub-alist
              (cons t (javaimp-scope-name scope))))
          (lambda (res)
-           (or (functionp (nth 2 res)) ;entry
-               (cdr res)))             ;non-empty sub-alist
+           (or (functionp (nth 2 res))  ; imenu entry
+               (cdr res)))              ; non-empty sub-alist
          forest)
       (let ((entries
              (mapcar #'javaimp-imenu--make-entry
@@ -724,7 +724,7 @@ in a major mode hook."
   (let* ((scopes (javaimp--parse-get-all-scopes
                   (lambda (scope)
                     (javaimp-test-scope-type scope
-                      '(class interface enum method)
+                      `(,@ javaimp--classlike-scope-types method)
                       javaimp--classlike-scope-types))))
          (methods (seq-filter
                    (lambda (scope)
@@ -830,7 +830,7 @@ with prefix arg, show all scopes."
               (unless show-all
                 (lambda (scope)
                   (javaimp-test-scope-type scope
-                    '(class interface enum method)
+                    `(,@ javaimp--classlike-scope-types method)
                     javaimp--classlike-scope-types)))))))
         (source-buf (current-buffer))
         (source-default-dir default-directory)

Reply via email to