mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 09:14:18 +00:00
* lisp/treesit.el (treesit-simple-imenu): Restore the previous behavior.
Use 'treesit-parser-list' again to not depend on the cursor's position (bug#78456).
This commit is contained in:
parent
9659f8aa34
commit
7d7d821c49
1 changed files with 3 additions and 2 deletions
|
|
@ -3978,8 +3978,9 @@ by `treesit-simple-imenu-settings'."
|
|||
(lambda (entry)
|
||||
(let* ((lang (car entry))
|
||||
(settings (cdr entry))
|
||||
(global-parser (car (treesit-parsers-at nil lang nil '(primary global))))
|
||||
(local-parsers (treesit-local-parsers-at nil lang)))
|
||||
(global-parser (car (treesit-parser-list nil lang)))
|
||||
(local-parsers
|
||||
(treesit-parser-list nil lang 'embedded)))
|
||||
(cons (treesit-language-display-name lang)
|
||||
;; No one says you can't have both global and local
|
||||
;; parsers for the same language. E.g., Rust uses
|
||||
|
|
|
|||
Loading…
Reference in a new issue