From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#27243: another case: dired-auto-revert-buffer jumps point to beginning of buffer Date: Sun, 23 Jul 2017 21:58:02 +0300 Message-ID: <83a83v7zgl.fsf@gnu.org> References: <83d1ac6yih.fsf@gnu.org> <87shjf48se.fsf@epsilon> <87r2yizu66.fsf@beta> <87bmpm20zt.fsf@rosalinde> <87zicd1pfy.fsf@beta> <87379vwh7d.fsf@rosalinde> <87o9scv6bo.fsf@beta> <87k230qea5.fsf_-_@rosalinde> <83h8y38b98.fsf@gnu.org> <5974EDB5.7080608@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1500836357 31297 195.159.176.226 (23 Jul 2017 18:59:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 23 Jul 2017 18:59:17 +0000 (UTC) Cc: 27243@debbugs.gnu.org, stephen.berman@gmx.net, antoine.levitt@gmail.com To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 23 20:59: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 1dZM5o-0007V4-SD for geb-bug-gnu-emacs@m.gmane.org; Sun, 23 Jul 2017 20:59:04 +0200 Original-Received: from localhost ([::1]:51278 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dZM5u-00035w-If for geb-bug-gnu-emacs@m.gmane.org; Sun, 23 Jul 2017 14:59:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47066) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dZM5p-00035l-5P for bug-gnu-emacs@gnu.org; Sun, 23 Jul 2017 14:59:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dZM5m-0008Nl-3E for bug-gnu-emacs@gnu.org; Sun, 23 Jul 2017 14:59:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50954) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dZM5l-0008Na-Vj for bug-gnu-emacs@gnu.org; Sun, 23 Jul 2017 14:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dZM5l-0002tk-Oc for bug-gnu-emacs@gnu.org; Sun, 23 Jul 2017 14:59:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 23 Jul 2017 18:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27243 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 27243-submit@debbugs.gnu.org id=B27243.150083631711109 (code B ref 27243); Sun, 23 Jul 2017 18:59:01 +0000 Original-Received: (at 27243) by debbugs.gnu.org; 23 Jul 2017 18:58:37 +0000 Original-Received: from localhost ([127.0.0.1]:53631 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dZM5M-0002t7-Po for submit@debbugs.gnu.org; Sun, 23 Jul 2017 14:58:36 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55869) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dZM5L-0002sv-GU for 27243@debbugs.gnu.org; Sun, 23 Jul 2017 14:58:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dZM5D-0008BL-0o for 27243@debbugs.gnu.org; Sun, 23 Jul 2017 14:58:30 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59660) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dZM5C-0008BH-Tb; Sun, 23 Jul 2017 14:58:26 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2556 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dZM5A-0003LI-Gk; Sun, 23 Jul 2017 14:58:26 -0400 In-reply-to: <5974EDB5.7080608@gmx.at> (message from martin rudalics on Sun, 23 Jul 2017 20:40:53 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:134892 Archived-At: > Date: Sun, 23 Jul 2017 20:40:53 +0200 > From: martin rudalics > CC: antoine.levitt@gmail.com, 27243@debbugs.gnu.org > > Conceptually both, ‘pop-to-buffer-same-window’ and ‘switch-to-buffer’, > behave alike in this regard: They avoid the minibuffer and windows > strongly dedicated to their buffers. Interactively, ‘switch-to-buffer’ > may show another buffer in a strongly dedicated window when the option > ‘switch-to-buffer-in-dedicated-window’ is non-nil, but I suppose the > issues mentioned in this thread are not about the interactive use of > ‘switch-to-buffer’. > > > E.g., what happens in this particular use case if the Dire4d buffer > > pops in another window? > > If the dired buffer was earlier shown by ‘switch-to-buffer’ and is now > shown by ‘pop-to-buffer-same-window’, the behaviors should be the same. > Quitting the dired window, however, may behave differently. I don't think I'm bothered by quitting. I'm bothered by some feature calling find-file that could somehow find the file shown in a window different from the one where the command was invoked. Are you saying this isn't more likely to happen than with switch-to-buffer itself? If so, we can indeed modify find-file to use pop-to-buffer-same-window. Thanks.