branch: scratch/javaimp-wip
commit a5c00a78f0ca60e73b869775e72ade87ff204996
Author: Filipp Gunbin <[email protected]>
Commit: Filipp Gunbin <[email protected]>
wip
---
javaimp.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/javaimp.el b/javaimp.el
index 3efdae4..5b887fb 100644
--- a/javaimp.el
+++ b/javaimp.el
@@ -576,7 +576,10 @@ is `ordinary' or `static'. Interactively, NEW-IMPORTS is
nil."
;;;###autoload
(defun javaimp-imenu-create-index ()
- (let ((forest (javaimp--parse-get-forest-for-imenu)))
+ (let ((forest (save-excursion
+ (javaimp--parse-clean-all-scopes)
+ (javaimp--parse-all-scopes)
+ (javaimp--parse-get-forest-for-imenu))))
(cond ((not javaimp-imenu-group-methods)
;; just plain list of methods
(javaimp--collect-nodes