From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dmitry Gutov 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:42:16 +0200 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1506696265 16278 195.159.176.226 (29 Sep 2017 14:44:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 29 Sep 2017 14:44:25 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:56.0) Gecko/20100101 Thunderbird/56.0 To: Constantine , 28645@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 29 16:44:21 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 1dxwWY-0003iE-Pa for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Sep 2017 16:44:18 +0200 Original-Received: from localhost ([::1]:35637 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dxwWe-00077p-N8 for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Sep 2017 10:44:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44412) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dxwVQ-0006E9-2I for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2017 10:43:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dxwVK-0001yU-7i for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2017 10:43:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58925) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dxwVK-0001yG-32 for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2017 10:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dxwVJ-0005tc-Ny for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2017 10:43:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 Sep 2017 14:43: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.150669614522617 (code B ref 28645); Fri, 29 Sep 2017 14:43:01 +0000 Original-Received: (at 28645) by debbugs.gnu.org; 29 Sep 2017 14:42:25 +0000 Original-Received: from localhost ([127.0.0.1]:39373 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dxwUj-0005sj-Mn for submit@debbugs.gnu.org; Fri, 29 Sep 2017 10:42:25 -0400 Original-Received: from mail-wm0-f65.google.com ([74.125.82.65]:33721) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dxwUi-0005sS-Mk for 28645@debbugs.gnu.org; Fri, 29 Sep 2017 10:42:24 -0400 Original-Received: by mail-wm0-f65.google.com with SMTP id m127so4141wmm.0 for <28645@debbugs.gnu.org>; Fri, 29 Sep 2017 07:42:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:cc:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=hf6msV5T/5XdOWgNw5dmK8Q4tHipcWqQI4IazpZnfHU=; b=PfxqMNiVRkXsczAqWAeZN3Ug+a9gxGpmNLsp3gfYUQDP9LoiXsWFyb4WjV+h81yyx2 wtJLXFezpoTcbzY+EBTjqQUj8fJ2rBcPwbkAhVnp96A4LfUaus/TcZYn8NM2J0k0Wf/I oBXsodBa/DOPpomcwyllHeMIh2c5NDoE5iA3nwbPsslNZW36NpQhGzCHNGEjlG+KVlrO xT7plHvHpwBtDVI0saGlS0Cye2sXnQdYbGZPmmIE9D53/SvSZA6beIzmP9RvAIfxq/vV XlscueCDXrmoL+lm02ndoR5Q13JlGIoSk1hf9GErrosdi3hj6c8sCjD/OB6wI1OuC58t MALw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:from:cc:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=hf6msV5T/5XdOWgNw5dmK8Q4tHipcWqQI4IazpZnfHU=; b=YaQkXLE6+n7vX95aNGY/7WXVcWgabqJ6uEWtFjzsFfZ213bliD2K5Jp4jLPU/evrq5 8bk8SfzSUpVC8yJxOMmnlKC+vp5YLPyeOtuAF2QebsOTyeua+H/M6f+0hLMQMJpoa7Hw LpnxEkGK7096hVMVGthRbL7A35Md2PirQxSh9e0OyX/avJKrMHSZ3t7uxBoLJICKXt5/ A8Pee5P51R9AOP6cSVpu8C9kn41waFbjhARuiwqykhHEqKap3E5dm2CbsDaLN+QFMfOc 8jetPziHwPUBFW+tsytvdrIQ31t2AJS5D4gbgWktVYlTntVfeWfU7OFNrQWPi36tKL0I BMPA== X-Gm-Message-State: AHPjjUjfrxQnCjNRyZyqiJIN/5n2EiZ3KxoFEH84fsVkcIycTKj/zeUV 2HoCU1SQ7qkenCAWuzUoZIY= X-Google-Smtp-Source: AOwi7QDLoWdP5nEUgfDpgbrnDbeEU4b9Zph/CPaIw3sfXtito3RAeU/NGdqF9k1P/TC1bWstyL6EXA== X-Received: by 10.80.146.115 with SMTP id j48mr9701745eda.132.1506696138916; Fri, 29 Sep 2017 07:42:18 -0700 (PDT) Original-Received: from [172.16.12.247] (netacc-gpn-104-155-153.pool.telenor.hu. [91.104.155.153]) by smtp.googlemail.com with ESMTPSA id t5sm4116548edh.32.2017.09.29.07.42.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 29 Sep 2017 07:42:17 -0700 (PDT) In-Reply-To: Content-Language: en-US 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:137596 Archived-At: 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)) )