From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Angelo Graziosi Newsgroups: gmane.emacs.bugs Subject: bug#27879: Bad behavior with sr-speedbar package Date: Sun, 30 Jul 2017 19:23:09 +0200 Message-ID: <912f1be4-1d2c-1a97-5e3f-fbb0b1e004c9@alice.it> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1501435462 6305 195.159.176.226 (30 Jul 2017 17:24:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 30 Jul 2017 17:24:22 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 To: 27879@debbugs.gnu.org, sebastian_rose@gmx.de, stephen.berman@gmx.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 30 19:24:11 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 1dbrwl-0000pS-EJ for geb-bug-gnu-emacs@m.gmane.org; Sun, 30 Jul 2017 19:24:07 +0200 Original-Received: from localhost ([::1]:56023 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dbrwr-0006CT-1z for geb-bug-gnu-emacs@m.gmane.org; Sun, 30 Jul 2017 13:24:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60431) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dbrwl-0006CN-8K for bug-gnu-emacs@gnu.org; Sun, 30 Jul 2017 13:24:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dbrwg-0006E4-6g for bug-gnu-emacs@gnu.org; Sun, 30 Jul 2017 13:24:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60023) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dbrwg-0006Dz-2f for bug-gnu-emacs@gnu.org; Sun, 30 Jul 2017 13:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dbrwf-0001tg-Tw for bug-gnu-emacs@gnu.org; Sun, 30 Jul 2017 13:24:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Angelo Graziosi Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 30 Jul 2017 17:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27879 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" , sebastian_rose@gmx.de, stephen.berman@gmx.net Original-Received: via spool by submit@debbugs.gnu.org id=B.15014354267270 (code B ref -1); Sun, 30 Jul 2017 17:24:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 30 Jul 2017 17:23:46 +0000 Original-Received: from localhost ([127.0.0.1]:34467 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dbrwP-0001tC-UE for submit@debbugs.gnu.org; Sun, 30 Jul 2017 13:23:46 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41184) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dbrwO-0001t0-L6 for submit@debbugs.gnu.org; Sun, 30 Jul 2017 13:23:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dbrwI-00065O-7x for submit@debbugs.gnu.org; Sun, 30 Jul 2017 13:23:39 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:35881) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dbrwI-00065F-4g for submit@debbugs.gnu.org; Sun, 30 Jul 2017 13:23:38 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60378) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dbrwG-00064a-Sj for bug-gnu-emacs@gnu.org; Sun, 30 Jul 2017 13:23:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dbrwB-00062M-RZ for bug-gnu-emacs@gnu.org; Sun, 30 Jul 2017 13:23:36 -0400 Original-Received: from smtp202.alice.it ([82.57.200.98]:22295) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dbrwB-00061j-En for bug-gnu-emacs@gnu.org; Sun, 30 Jul 2017 13:23:31 -0400 Original-Received: from [192.168.1.102] (87.19.228.159) by smtp202.alice.it (8.6.060.43) (authenticated as angelo.graziosi@alice.it) id 5976E512082E8D59; Sun, 30 Jul 2017 19:23:11 +0200 In-Reply-To: Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:135162 Archived-At: OK, I found the commit that causes this issue: committer Stephen Berman commit 8e394b082bd6ecd9ba212cb3ca07cbace66767a6 Preserve point under 'dired-auto-revert-buffer' (third case) * lisp/files.el (find-file): Use pop-to-buffer-same-window instead of switch-to-buffer. This preserves Dired window point when dired-auto-revert-buffer is non-nil. (Bug#27243) * test/lisp/dired-tests.el (dired-test-bug27243-01) (dired-test-bug27243-02, dired-test-bug27243-03): New tests. The first two replace a previous test that combined them; that test intermittently fails in the Hydra build system, so maybe separating the two cases will help locate the point of failure. The third test involves find-file but is here because it, like the others, is testing the effect of dired-auto-revert-buffer. With the previous commit, author Allen Li committer Eli Zaretskii commit dfee60fe66f3d9fe4249c9662d802753f3e50929 Do not unset user key remaps in dired-x * lisp/dired-x.el (dired-x-bind-find-file): Don't map any keys if user sets dired-x-hands-off-my-keys. (Bug#27828) all works as expected. Angelo Il 30/07/2017 16:56, Angelo Graziosi ha scritto: > With recent builds from master, after 20170728 - > f1ed31a8f5c6f19aa5e119e670533241c6375945 commit, visiting a buffer > produces a "New window below" (C-x 2) and the buffer shows up in the > bottom window. > > Usually, when one visits a buffer this is in the current window without > splitting.. > > I can reproduce this behavior on GNU/Linux Mint 18.2 x64 (Mate), W64 > (MSYS2/MINGW64) and macOS Sierra (10.12.6, NS build). This is the > minimal ~/.emacs.d/init.el: > > $ cat init.el > ;; Adds the MELPA repo to Emacs Packages > (when (>= emacs-major-version 24) > (require 'package) > (add-to-list > 'package-archives > '("melpa" . "http://melpa.org/packages/") > t) > (package-initialize)) > > (require 'sr-speedbar) > > Steps: > > 1. Start Emacs. It starts with a single window containing the *GNU > Emacs* buffer. > > 2. Now toggle the sr-speedbar: M-x sr-speedbar-toggle. It contains two > windows: on the right, the sr-speedbar; on the left the *GNU Emacs* buffer. > > 3. In *GNU Emacs* buffer visit a buffer: C-x C-f foo.txt. The *GNU > Emacs* buffer window is divided (as in C-x 2) and foo.txt is in the > bottom window. > > The last master with the right behavior is 2017-07-28 12:38:22 +0300, > f1ed31a8f5c6f19aa5e119e670533241c6375945. > > > Ciao, > Angelo.