GNU bug report logs -
#80066
cedet semantic-ia-fast-jump broken with c-ts-mode/c++-ts-mode
Previous Next
To reply to this bug, email your comments to 80066 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org:
bug#80066; Package
emacs.
(Wed, 24 Dec 2025 07:44:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
gynamics <dybfysiat <at> 163.com>:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org.
(Wed, 24 Dec 2025 07:44:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Platform: x86_64/arm64 Linux
Emacs version: 30.2
Tree-sitter version: 0.25.10
System GCC version: 15.2.1
How-to-reproduce:
A minimal configuration for treesit:
(setq treesit-language-source-alist
'((c "https://github.com/tree-sitter/tree-sitter-c")
(cpp "https://github.com/tree-sitter/tree-sitter-cpp")))
(setq major-mode-remap-alist
'((c-mode . c-ts-mode)
(c++-mode . c++-ts-mode)))
;; append *-mode-hook to *-ts-mode-hook for modes in `major-mode-remap-list'
(mapc
#'(lambda (major-mode-remap)
(let ((major-mode-hook
(intern (concat (symbol-name (car major-mode-remap)) "-hook")))
(major-ts-mode-hook
(intern (concat (symbol-name (cdr major-mode-remap))
"-hook"))))
(add-hook major-ts-mode-hook
`(lambda () (run-hooks ',major-mode-hook)))))
major-mode-remap-alist)
1. Download treesit dlls with treesit-install-language-grammar. Make
sure c-ts-mode works in your Emacs.
2. Enable semantic-mode in a helloworld C source file, and try to call
semantic-ia-fast-jump on a system symbol like printf. The expected
behavior (which can be observed with emacs -q) is jumping into stdio.h,
but with configurations above, it will show an error message:
semantic-ia-fast-jump: Could not find suitable jump point for printf
I have also tested c-ts-mode independently, this problem still exists.
This bug report was last modified 1 day ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.