GNU bug report logs -
#28645
26.0.50; semantic-ia-fast-jump jumps to a random place in buffer
Previous Next
Reported by: Constantine <hi-angel <at> yandex.ru>
Date: Fri, 29 Sep 2017 13:25:01 UTC
Severity: normal
Found in version 26.0.50
Done: Dmitry Gutov <dgutov <at> yandex.ru>
Bug is archived. No further changes may be made.
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
When declaration is in another buffer, semantic-ia-fast-jump often
jumps to this buffer, but to incorrect line. However if the
declaration is in the same buffer where the command was used, it always
— as far as I've seen — jumps to the correct line.
Steps to reproduce:
1. Create the following 2 files with the following content:
$ grep -n "" myfunc.h test.cpp
myfunc.h:1:void myfunc1() {
myfunc.h:2:}
myfunc.h:3:void myfunc2() {
myfunc.h:4:}
test.cpp:1:#include "myfunc.h"
test.cpp:2:
test.cpp:3:int main() {
test.cpp:4: myfunc1();
test.cpp:5: myfunc2();
test.cpp:6:}
2. Run emacs -Q test.cpp
3. Enable `M-x semantic-mode`
4. Put cursor into "myfunc2", and type `M-x semantic-ia-fast-jump`
(you'll see it jumped to the correct declaration at myfunc.h file)
5. Use `C-x b RET` to switch back to test.cpp
6. Put cursor into "myfunc1", and type `M-x semantic-ia-fast-jump`
Result: it jumped to "myfunc2" declaration, not to "myfunc1" as it ought to.
I also want to note that though ATM I am using emacs-git, I've seen the
problem for don't remember how long, just didn't report.
This bug report was last modified 7 years and 301 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.