From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Constantine Newsgroups: gmane.emacs.bugs 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 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1506691515 32585 195.159.176.226 (29 Sep 2017 13:25:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 29 Sep 2017 13:25:15 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 To: 28645@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 29 15:25:08 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dxvHr-0007dL-Ot for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Sep 2017 15:25:04 +0200 Original-Received: from localhost ([::1]:35418 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dxvHz-0004ik-6f for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Sep 2017 09:25:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54153) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dxvHt-0004ic-Iq for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2017 09:25:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dxvHq-0005rz-FS for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2017 09:25:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57329) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dxvHq-0005re-C4 for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2017 09:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dxvHq-0003QZ-5Z for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2017 09:25:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Constantine Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 Sep 2017 13:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 28645 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.150669146213099 (code B ref -1); Fri, 29 Sep 2017 13:25:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Sep 2017 13:24:22 +0000 Original-Received: from localhost ([127.0.0.1]:37774 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dxvHC-0003PD-JH for submit@debbugs.gnu.org; Fri, 29 Sep 2017 09:24:22 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34799) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dxvHB-0003Oz-DE for submit@debbugs.gnu.org; Fri, 29 Sep 2017 09:24:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dxvH3-0005CW-2m for submit@debbugs.gnu.org; Fri, 29 Sep 2017 09:24:16 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:47552) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dxvH2-0005CS-W1 for submit@debbugs.gnu.org; Fri, 29 Sep 2017 09:24:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53974) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dxvGx-0004RG-4z for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2017 09:24:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dxvGs-00059z-Ew for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2017 09:24:07 -0400 Original-Received: from forward105o.mail.yandex.net ([37.140.190.183]:39677) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dxvGs-00059R-3t for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2017 09:24:02 -0400 Original-Received: from mxback5g.mail.yandex.net (mxback5g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:166]) by forward105o.mail.yandex.net (Yandex) with ESMTP id 3F821444314C for ; Fri, 29 Sep 2017 16:23:55 +0300 (MSK) Original-Received: from smtp1j.mail.yandex.net (smtp1j.mail.yandex.net [2a02:6b8:0:801::ab]) by mxback5g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id iOPDMhFodq-NtnqZO83; Fri, 29 Sep 2017 16:23:55 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1506691435; bh=e/dmc87thKBqMSoNZprgwzcpG4QdHzGWGcNVQKJNYtU=; h=To:From:Subject:Message-ID:Date; b=YMNc9pBzR6lOrKjHme/ZPBpY8ocPmdr6nWdP1orhdVTi84wpZ+URCttZH2LKrq22h S3oIgiZyj7raOAZ6Bv7xKa9EQwPUosKWbZtdQMp5f7/BAw4Qvtudag/fNETaJRmc2G xDGOVI0Ip441cCSPKYrns8C/p1aG6sK31uCP7r6c= Original-Received: by smtp1j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 8k659lghOs-NsQifM0B; Fri, 29 Sep 2017 16:23:54 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1506691434; bh=e/dmc87thKBqMSoNZprgwzcpG4QdHzGWGcNVQKJNYtU=; h=To:From:Subject:Message-ID:Date; b=YdgMo3lnFcnsUHkLkCP10QWoxpKHkvvvFlOF86FLTk052mb56tILAfkaGFvbyGphq IZFtFMbhf2OTXwtySr+Eu8C0mTJ8rLXAkjZ67fyjSs9BTsmBjoah9mrjnv+Y0Kqa/x UDuLaqK9oFttMCfA4aMOrz96liAX9nsaGQXdyk3I= Authentication-Results: smtp1j.mail.yandex.net; dkim=pass header.i=@yandex.ru Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:137590 Archived-At: 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 =E2=80=94 as far as I've seen =E2=80=94 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.