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: Status: 26.0.50; semantic-ia-fast-jump jumps to a random place in buffer Date: Tue, 17 Oct 2017 13:44:30 +0300 Message-ID: <937f31d2-2952-8e88-1dd4-81ee243cd1fd@yandex.ru> References: <873770y3f9.fsf@gmail.com> 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 1508237129 14891 195.159.176.226 (17 Oct 2017 10:45:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 17 Oct 2017 10:45:29 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:56.0) Gecko/20100101 Thunderbird/56.0 Cc: bug#28645 <28645@debbugs.gnu.org> To: Bastian Beischer Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 17 12:45: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 1e4PMx-0001eU-2j for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Oct 2017 12:45:07 +0200 Original-Received: from localhost ([::1]:37593 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e4PN4-0001uJ-E3 for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Oct 2017 06:45:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43292) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e4PMv-0001sW-QZ for bug-gnu-emacs@gnu.org; Tue, 17 Oct 2017 06:45:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e4PMr-0005zG-Rz for bug-gnu-emacs@gnu.org; Tue, 17 Oct 2017 06:45:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36254) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e4PMr-0005zC-PG for bug-gnu-emacs@gnu.org; Tue, 17 Oct 2017 06:45:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e4PMr-0004Gp-IT for bug-gnu-emacs@gnu.org; Tue, 17 Oct 2017 06:45: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: Tue, 17 Oct 2017 10:45: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.150823708116373 (code B ref 28645); Tue, 17 Oct 2017 10:45:01 +0000 Original-Received: (at 28645) by debbugs.gnu.org; 17 Oct 2017 10:44:41 +0000 Original-Received: from localhost ([127.0.0.1]:44935 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e4PMW-0004G1-QN for submit@debbugs.gnu.org; Tue, 17 Oct 2017 06:44:40 -0400 Original-Received: from mail-wr0-f176.google.com ([209.85.128.176]:50164) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e4PMU-0004Fj-S0 for 28645@debbugs.gnu.org; Tue, 17 Oct 2017 06:44:39 -0400 Original-Received: by mail-wr0-f176.google.com with SMTP id g90so1148129wrd.6 for <28645@debbugs.gnu.org>; Tue, 17 Oct 2017 03:44:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=0qFu+0bfrAs6sv+TpM099/BSeIQfGmueuUo+nnazULc=; b=ErtmSlagxtUCDj6au+mZO2CoPFl85WXePX0TfiHPtuF4ulqo9z5l8M8DvQa11S/ebG suQZfbvpsnDcmeK1lR5aA9z0zAMFBulptT6qjRCRAsxBoOnTWpRHw3K92biDAb9lzVf3 D0sFFvN+A/9qjimeWm+LS82h2b3aVmPOUKCycydKjoNi7fp7DQ6eintM/42aKQC51ThK sPlEMynLSCCAsFw1FWm4nV7zXQDWrgBlfKTS+hPVka/j+O7ifMf4t8OJVyNKDjUT3/BR McVJ/B9XRRhQtHljxcuQJ+imMSHVILjQX9KGMfLqWoHB9vJj4YxEBjT+70GSaK0n/6OQ gsCw== 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:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=0qFu+0bfrAs6sv+TpM099/BSeIQfGmueuUo+nnazULc=; b=k4Y8ioD3zyX0hevPOHjUASo49wDMjf3/7qZWRIgGmm1U0rJ3vj2HtJduv8zFlqkTZ1 J5lO12rLnftDNKHg0hwVAFXPubmDN7aTzPUY8OJoA97hcFMEGpSwgzYCmOKnmfJyEYbM RKn/INeGtK90tQ0FtWLHzpW7fr290FoCGlEQtQBkfgadhs2rUVlRVjYKQyFWvfwVCEfI z1m55wR6m0h1neJkH4iXB7ZrN0PWX/errNHpL7piVCdg/uBGV3XAHbYLJa3x7Hd9pw9p YOhATXK0dd5sZyYn5D0gj6acS0ygRG4VYUvQ9k1m+Q6MwCSIydycPd53gBcHwiM8UECH FEuA== X-Gm-Message-State: AMCzsaXmKNQ5i+9fvnpzJmHQ2hf3WAsjEObwzsbLqcytBWvfG1StbRuq f9cTMZmVH5B4sH+aRYDkTS6LXz32 X-Google-Smtp-Source: ABhQp+QsIopTA0Gg+1Mr5+X6HwlDlNiQqetkM4qIni8LA5u6i3DOkB7jAOmPyoaKx1L+QQ7ATcGPuw== X-Received: by 10.223.134.157 with SMTP id 29mr3058143wrx.72.1508237072803; Tue, 17 Oct 2017 03:44:32 -0700 (PDT) Original-Received: from [192.168.1.3] ([185.105.174.193]) by smtp.googlemail.com with ESMTPSA id f84sm5995606wme.44.2017.10.17.03.44.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Oct 2017 03:44:32 -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:138607 Archived-At: On 10/16/17 1:21 PM, Bastian Beischer wrote: > ​I replaced ​switch-to-buffer with pop-to-buffer-same-window in those > functions which I'm using regularly and it fixes the problem. The CEDET > functions where I made the replacements and checked them are: > > semantic-analyze-proto-impl-toggle > semantic-complete-jump > semantic-decoration-include-visit > semantic-ia--fast-jump-helper > semantic-mrub-vist > senator-jump > senator-jump-regexp > ​senator-go-to-up-reference > > ​I didn't make any other replacements because: > > a) For some of them I'm not sure if 'pop-to-buffer-same-window' or > 'pop-to-buffer' ​should be used. > b) I'm not using any of the other functions with matches so I wouldn't > be able to test the change. > > Also, searching for 'switch-to-buffer' in non-CEDET related lisp files > in the emacs sources reveals more places which need to be fixed, but I > didn't go that far. However, probably somebody (tm) should check them > all one-by-one :-( Could you send a patch with the replacements you did make?