From: Constantine <hi-angel@yandex.ru>
To: 28645@debbugs.gnu.org
Subject: bug#28645: 26.0.50; semantic-ia-fast-jump jumps to a random place in buffer
Date: Fri, 29 Sep 2017 16:23:54 +0300 [thread overview]
Message-ID: <cc7b3469-a15b-931a-0984-ae2da0632f7c@yandex.ru> (raw)
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.
next reply other threads:[~2017-09-29 13:23 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-29 13:23 Constantine [this message]
2017-09-29 14:42 ` bug#28645: 26.0.50; semantic-ia-fast-jump jumps to a random place in buffer Dmitry Gutov
2017-09-29 14:57 ` Constantine
2017-09-29 18:18 ` martin rudalics
2017-09-30 14:19 ` Dmitry Gutov
2017-10-03 9:40 ` bug#28645: Status: " Bastian Beischer
2017-10-04 9:03 ` martin rudalics
2017-10-04 11:11 ` Bastian Beischer
2017-10-05 8:09 ` martin rudalics
2017-10-15 23:06 ` Dmitry Gutov
2017-10-16 10:21 ` Bastian Beischer
2017-10-17 8:58 ` martin rudalics
2017-10-17 10:44 ` Dmitry Gutov
2017-10-17 12:30 ` Bastian Beischer
2017-10-18 23:46 ` Dmitry Gutov
2017-10-19 9:41 ` Bastian Beischer
2017-10-19 10:03 ` Dmitry Gutov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cc7b3469-a15b-931a-0984-ae2da0632f7c@yandex.ru \
--to=hi-angel@yandex.ru \
--cc=28645@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.