branch: externals/javaimp commit 8eb3e3c2b08af273e8d105e09487ec6b18439dc8 Author: Filipp Gunbin <fgun...@fastmail.fm> Commit: Filipp Gunbin <fgun...@fastmail.fm>
* javaimp.el (javaimp-imenu--make-entry): Respect imenu-use-markers --- javaimp.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/javaimp.el b/javaimp.el index 2c0b4af..41fbf45 100644 --- a/javaimp.el +++ b/javaimp.el @@ -79,7 +79,7 @@ (require 'javaimp-gradle) (require 'javaimp-parse) (require 'cc-mode) ;for java-mode-syntax-table - +(require 'imenu) ;; User options @@ -672,7 +672,9 @@ done in mode functions automatically." (defsubst javaimp-imenu--make-entry (scope) (list (javaimp-scope-name scope) - (javaimp-scope-start scope) + (if imenu-use-markers + (copy-marker (javaimp-scope-start scope)) + (javaimp-scope-start scope)) #'javaimp-imenu--function scope))