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 17:57:11 +0300 Message-ID: <9220e4cf-132b-1ee0-4395-006ee1e79f64@yandex.ru> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1506697093 19168 195.159.176.226 (29 Sep 2017 14:58:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 29 Sep 2017 14:58:13 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 To: Dmitry Gutov , 28645@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 29 16:58:09 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 1dxwjt-0004RS-QG for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Sep 2017 16:58:05 +0200 Original-Received: from localhost ([::1]:35679 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dxwk1-0002ha-6H for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Sep 2017 10:58:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48228) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dxwjt-0002gR-4S for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2017 10:58:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dxwjq-0003LR-2z for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2017 10:58:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58935) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dxwjp-0003LJ-SP for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2017 10:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dxwjp-0006HA-Ky for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2017 10:58:01 -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 14:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28645 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28645-submit@debbugs.gnu.org id=B28645.150669704124067 (code B ref 28645); Fri, 29 Sep 2017 14:58:01 +0000 Original-Received: (at 28645) by debbugs.gnu.org; 29 Sep 2017 14:57:21 +0000 Original-Received: from localhost ([127.0.0.1]:39383 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dxwjB-0006G7-8C for submit@debbugs.gnu.org; Fri, 29 Sep 2017 10:57:21 -0400 Original-Received: from forward100j.mail.yandex.net ([5.45.198.240]:44506) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dxwj8-0006Fq-Ht for 28645@debbugs.gnu.org; Fri, 29 Sep 2017 10:57:19 -0400 Original-Received: from mxback4g.mail.yandex.net (mxback4g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:165]) by forward100j.mail.yandex.net (Yandex) with ESMTP id 5C51C5D85928 for <28645@debbugs.gnu.org>; Fri, 29 Sep 2017 17:57:12 +0300 (MSK) Original-Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback4g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id lvEZxgDp0Z-vCR4DEnc; Fri, 29 Sep 2017 17:57:12 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1506697032; bh=UmhS/aNE1GMuhYcJ44ywOfDC/lri1KRS+56Ah4hw7g0=; h=Subject:To:References:From:Message-ID:Date:In-Reply-To; b=HhQ+5a4S54nfPKUySqxtxcD6CJ8yFvC5thY3c+9QBoO3RB/h3Hn07x1bTnYeqVCAV htVRwwLIb+GnBo0CGJal2V/vK0eFJISlJnFDchTQsGfxiQ0E/fhurHQzW9zi2b3nzI AZ3U0HrTh+kC8tO4AgS71oxk4IX0nEIb/b52pGQ8= Original-Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id qypCasZ6zg-vBAGfmvg; Fri, 29 Sep 2017 17:57:11 +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=1506697031; bh=UmhS/aNE1GMuhYcJ44ywOfDC/lri1KRS+56Ah4hw7g0=; h=Subject:To:References:From:Message-ID:Date:In-Reply-To; b=oXSZdvfmTS+pmgQnWfp4hzJ2FTmrkrnt/pks2CQY7BfIrZIxtK2ecl0tYPXb4WUBq Y8f8BQ8GdvXzmqbSvpq7l5LX3STsJzqHn5mm9meCSX3L6QeXFe/epwJPFMS7x0RSMh dlkDiyPtuObxnHKtf7XTuSbfcoqQpaBbzxHPQwu4= Authentication-Results: smtp1p.mail.yandex.net; dkim=pass header.i=@yandex.ru In-Reply-To: Content-Language: ru-RU 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:137597 Archived-At: On 29.09.2017 17:42, Dmitry Gutov wrote: > On 9/29/17 3:23 PM, Constantine wrote: > '> 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. > > Thanks for the report. You appear to have fallen victim of our windowing > improvements. I'm not sure this is the correct fix (Martin?), but here's > a patch that seems to correct the behavior. > > diff --git a/lisp/cedet/semantic/ia.el b/lisp/cedet/semantic/ia.el > index d4201fcf51..0692d03aca 100644 > --- a/lisp/cedet/semantic/ia.el > +++ b/lisp/cedet/semantic/ia.el > @@ -322,7 +322,8 @@ semantic-ia--fast-jump-helper >    (semantic-go-to-tag dest) >    ;; 3) go-to-tag doesn't switch the buffer in the current window, >    ;;    so it is like find-file-noselect.  Bring it forward. > -  (switch-to-buffer (current-buffer)) > +  (let (switch-to-buffer-preserve-window-point) > +    (switch-to-buffer (current-buffer))) >    ;; 4) Fancy pulsing. >    (pulse-momentary-highlight-one-line (point)) >    ) Yay, thank you, works for me! Tested-by: Constantine Kharlamov