From unknown Fri Jun 20 07:18:36 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#27243 <27243@debbugs.gnu.org> To: bug#27243 <27243@debbugs.gnu.org> Subject: Status: dired-auto-revert-buffer jumps point to beginning of buffer Reply-To: bug#27243 <27243@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:18:36 +0000 retitle 27243 dired-auto-revert-buffer jumps point to beginning of buffer reassign 27243 emacs submitter 27243 Antoine Levitt severity 27243 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 04 19:45:22 2017 Received: (at submit) by debbugs.gnu.org; 4 Jun 2017 23:45:22 +0000 Received: from localhost ([127.0.0.1]:56254 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dHfCz-0006Pq-Vd for submit@debbugs.gnu.org; Sun, 04 Jun 2017 19:45:22 -0400 Received: from eggs.gnu.org ([208.118.235.92]:34618) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dHfCy-0006Pa-W1 for submit@debbugs.gnu.org; Sun, 04 Jun 2017 19:45:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dHfCt-0008KO-0N for submit@debbugs.gnu.org; Sun, 04 Jun 2017 19:45:15 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:41492) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dHfCs-0008Jw-Si for submit@debbugs.gnu.org; Sun, 04 Jun 2017 19:45:14 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53815) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dHfCr-00050M-JF for bug-gnu-emacs@gnu.org; Sun, 04 Jun 2017 19:45:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dHfCo-0008F9-Hh for bug-gnu-emacs@gnu.org; Sun, 04 Jun 2017 19:45:13 -0400 Received: from mail-pg0-x231.google.com ([2607:f8b0:400e:c05::231]:35963) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dHfCo-00089W-At for bug-gnu-emacs@gnu.org; Sun, 04 Jun 2017 19:45:10 -0400 Received: by mail-pg0-x231.google.com with SMTP id a70so5193707pge.3 for ; Sun, 04 Jun 2017 16:45:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=user-agent:from:to:subject:date:message-id:mime-version; bh=H3LS4qWKVWfRaczCOE/OOIoMqx5C8QzH5nybYasIkgo=; b=G3nPasWaf1TAwBRthUcCr5zjsGfyZLSaxoezaFDkGJlyL8VoC6XdgdSl687o/XtLLR BlVDosQ0g0a3ECnDWDGH1IgiQGDdjnEXFtBhUJ/WnatrccWa/gBV41sKilUBm8SRXmgp j7kr/GLrwIdJehCvnpfSuVOHVo0Hr6QAhu8gkSMraXdkt+Is8QI7xE96d+TsxGG5Hl3e 6SZAlp2+Iy2ce/+ILKQ+Z42rUdIAIpfs9+ShdrloJVulLB9VNmbkk88IilawHO6OH6iW ElhAvfh8eNhY+GAmJJxoPgN3EBdwFom2OrnikHxy/Zs3M3qqWzzPjHHs9z00/780hJyb mspA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:from:to:subject:date:message-id :mime-version; bh=H3LS4qWKVWfRaczCOE/OOIoMqx5C8QzH5nybYasIkgo=; b=Y0REuMDjwKOeBYBAK4g24ZMAjQAIe3DZmNM/Z+d3vY7U0pp6pykmAKpFaHNYzheeoA L8ecFOyGi8oppNHazbLyK9s1Fdpdx/LmR7cID5SuyeKSXQ8oCSlNLn87Ka9nr090ue1l 0kbccrcmvb/prkb8BZ/BbZhSfFRu31TQQW576EY52e//kk3RNXU4pzHyVp1c9z7XuQVw DnTAbGFEzd/GwJQxcae3mQcMBQbKApDxX/12ulV5w5RGotOxgtNkRXHO+U2Be9oKNoqP petX6dv732zzvrEfrN+HbwAh3g2M0a5SzAzhN9Cymxv3W5W7N0K13fR5lxJlRJGftluG bl5Q== X-Gm-Message-State: AODbwcCmoQIbbrC6fGTh0k1JvyevbA7frUoEgrfHuGnzJIv+vO6nrHad G+MRusIPIRL7S89V X-Received: by 10.99.50.135 with SMTP id y129mr17976057pgy.238.1496619907446; Sun, 04 Jun 2017 16:45:07 -0700 (PDT) Received: from epsilon ([12.27.68.35]) by smtp.gmail.com with ESMTPSA id i186sm4933162pgc.4.2017.06.04.16.45.06 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 04 Jun 2017 16:45:06 -0700 (PDT) User-agent: mu4e 0.9.17; emacs 26.0.50.1 From: Antoine Levitt To: bug-gnu-emacs@gnu.org Subject: dired-auto-revert-buffer jumps point to beginning of buffer Date: Sun, 04 Jun 2017 16:45:05 -0700 Message-ID: <87shjf48se.fsf@epsilon> MIME-Version: 1.0 Content-Type: text/plain 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-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) Tested on git master, the bug is not present on 25. Recipe from emacs -Q: (setq dired-auto-revert-buffer t) open dired, open a folder, C-x b back to the previous dired buffer, open the same folder again, see point jump back to the beginning of buffer. I'm not sure why, since dired-auto-revert-buffer just seems to call revert-buffer, which does not jump point. From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 05 09:37:58 2017 Received: (at 27243) by debbugs.gnu.org; 5 Jun 2017 13:37:58 +0000 Received: from localhost ([127.0.0.1]:56643 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dHsCk-0007YC-J6 for submit@debbugs.gnu.org; Mon, 05 Jun 2017 09:37:58 -0400 Received: from mout.gmx.net ([212.227.15.15]:63973) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dHsCi-0007Xy-4a for 27243@debbugs.gnu.org; Mon, 05 Jun 2017 09:37:56 -0400 Received: from rosalinde ([83.135.13.98]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0M7Hao-1e3lUo3eYI-00x0T6; Mon, 05 Jun 2017 15:37:49 +0200 From: Stephen Berman To: Antoine Levitt Subject: Re: bug#27243: dired-auto-revert-buffer jumps point to beginning of buffer References: <87shjf48se.fsf@epsilon> Date: Mon, 05 Jun 2017 15:37:47 +0200 In-Reply-To: <87shjf48se.fsf@epsilon> (Antoine Levitt's message of "Sun, 04 Jun 2017 16:45:05 -0700") Message-ID: <87d1aiy2qc.fsf@rosalinde> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Provags-ID: V03:K0:BEGIeCJyDJxAGZZy6n4zNYAtbFocX1oaSTmCtFx7gHPpruoAgNY wEBA4bDmGKGMwsJOudwEqERyJmXBKLbvYYkAKr17J6cVUwCF80vwnOCL2uQ9YXTqT0A0ylU RspNsjvrMNLf5RjrbotUzQz1qG2lzyMJWXLCwF9e80aDfxGJfYKv15eFnsEbznwHR00XANL fsYCt3u20i3mHSzmVbUYA== X-UI-Out-Filterresults: notjunk:1;V01:K0:zO6nbVGAFJ4=:kE6sSqkb/g7IZ4PydPvqNr 41CSLfTFM8IYkjoHwirzh1Pe1/O8KJfio5RLm2ml52setzn1K6Hd4KFR/acjTkiOU3NWCgkmw 0ZHR9oiQkioa0CFzMwbIWLy2VyfwhE4kFlLdXBNtFVtEq5M5C6bXifoEeb2zJZCJIJedGvQFC MY/S5CtdOneBQO768JYdF9c5Os3P8Qrtlp/sEQig2VZ8LHXsxWIdNifYRhLFOHJ5QlZa9o4Lh dPL2PVkC7v8P5HHCova5jgvVGGlU4Pi01MBfd9z07Wz25jhrp60YJp8azhlT3jfiIMZKVu+ih 3HjqmQluZhPvW9wqLkGtYZ5zHD/FeGsoRF6AG3FKWF8H+MSk0PPbVwI+r9QRIzZXCd/uoSgCZ lr0lIXjblV2xeqj0ib0cFaLuHYKglOy/wVJv6CIXV2T5TEuBokQ/k7cHgxZ3gVCcv8zMlSEe2 C0hYWG28nnlzqbZVU4Yd6poPveuENu+mVJdgTBDlb/9ldCol8Bg9J2Srr5hF0ad+ASl4e13Cm y773Uhndon1kEKQhn6ZU7TUF/Q59eHQpOMt4L89s8PcZpDa9mWMPElOkRvfxeavDMhd098z8m z+loN6RAJroE/dWMVvsKrD58PBS0HSyBdfkwd/iLwb/hpViIMbNiMWXF7FXL5SDLfJkY0I26x t/QDIkcav/MLeP2PEs/Bo0esNHZ+iWVnqlCf2DXpIsUAltzNttzAYu3wDknamTOchSZ7XEZs3 ATPy/ozHlyYxh7BQBY1ozesH5uTSuejbEkFkKNaKU4GwdKhY1Z3KAAg1cxY= X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 27243 Cc: 27243@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --=-=-= Content-Type: text/plain On Sun, 04 Jun 2017 16:45:05 -0700 Antoine Levitt wrote: > Tested on git master, the bug is not present on 25. > > Recipe from emacs -Q: > > (setq dired-auto-revert-buffer t) > > open dired, open a folder, C-x b back to the previous dired buffer, open > the same folder again, see point jump back to the beginning of buffer. > > I'm not sure why, since dired-auto-revert-buffer just seems to call > revert-buffer, which does not jump point. I think I see why this happens. I assume when you opened "the same folder again" you pressed RET on the line in the Dired listing. That calls dired-find-file, which calls find-file, which first calls find-file-noselect (to see if it's a live buffer), which calls (via run-hook-with-args-until-success) dired-noselect, which calls (via dired-internal-noselect) revert-buffer (since dired-auto-revert-buffer is t), which calls dired-revert, which saves point (via dired-save-positions) but then erases the buffer and inserts it anew -- and this is the problem, because now continuing in find-file, it calls switch-to-buffer (since it's a live buffer that you're revisiting), which sets window-point by consulting window-prev-buffers. Prior to the invocation of erase-buffer, window-prev-buffers contained this entry for the buffer being reverted ("test" in my test case): (# # #) which shows window-point on the first file name in the Dired listing, but after erase-buffer it's now this: (# # #) Since dired-revert restored the saved point (232) but does not return it to the caller, switch-to-buffer does not have this information, but only what window-prev-buffers shows, which is now 1. So that's what it sets window-point to. One way to fix this is to make dired-restore-positions restore not only point but also window-point. The attached patch does this. Steve Berman --=-=-= Content-Type: text/x-patch Content-Disposition: inline Content-Description: dired-restore-positions patch diff --git a/lisp/dired.el b/lisp/dired.el index 8396652d50..26d3d76817 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -1382,9 +1382,13 @@ dired-restore-positions (let* ((buf-file-pos (nth 0 positions)) (buffer (nth 0 buf-file-pos))) (unless (and (nth 1 buf-file-pos) - (dired-goto-file (nth 1 buf-file-pos))) + (prog1 (dired-goto-file (nth 1 buf-file-pos)) + (set-window-buffer nil buffer) + (set-window-point (selected-window) (nth 2 buf-file-pos)))) (goto-char (nth 2 buf-file-pos)) - (dired-move-to-filename)) + (dired-move-to-filename) + (set-window-buffer nil buffer) + (set-window-point (selected-window) (nth 2 buf-file-pos))) (dolist (win-file-pos (nth 1 positions)) ;; Ensure that window still displays the original buffer. (when (eq (window-buffer (nth 0 win-file-pos)) buffer) @@ -1392,7 +1396,8 @@ dired-restore-positions (unless (and (nth 1 win-file-pos) (dired-goto-file (nth 1 win-file-pos))) (goto-char (nth 2 win-file-pos)) - (dired-move-to-filename))))))) + (dired-move-to-filename) + (set-window-point nil (point)))))))) (defun dired-remember-marks (beg end) "Return alist of files and their marks, from BEG to END." --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 05 11:02:36 2017 Received: (at 27243) by debbugs.gnu.org; 5 Jun 2017 15:02:36 +0000 Received: from localhost ([127.0.0.1]:57713 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dHtWe-0001GR-HP for submit@debbugs.gnu.org; Mon, 05 Jun 2017 11:02:36 -0400 Received: from eggs.gnu.org ([208.118.235.92]:59475) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dHtWc-0001GE-Oo for 27243@debbugs.gnu.org; Mon, 05 Jun 2017 11:02:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dHtWS-0006X3-Eo for 27243@debbugs.gnu.org; Mon, 05 Jun 2017 11:02:29 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:40531) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dHtWS-0006Wy-B3; Mon, 05 Jun 2017 11:02:24 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1239 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dHtWR-0001d1-KK; Mon, 05 Jun 2017 11:02:24 -0400 Date: Mon, 05 Jun 2017 18:02:14 +0300 Message-Id: <83poeia361.fsf@gnu.org> From: Eli Zaretskii To: Stephen Berman In-reply-to: <87d1aiy2qc.fsf@rosalinde> (message from Stephen Berman on Mon, 05 Jun 2017 15:37:47 +0200) Subject: Re: bug#27243: dired-auto-revert-buffer jumps point to beginning of buffer References: <87shjf48se.fsf@epsilon> <87d1aiy2qc.fsf@rosalinde> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 27243 Cc: 27243@debbugs.gnu.org, antoine.levitt@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Stephen Berman > Date: Mon, 05 Jun 2017 15:37:47 +0200 > Cc: 27243@debbugs.gnu.org > > I think I see why this happens. I assume when you opened "the same > folder again" you pressed RET on the line in the Dired listing. That > calls dired-find-file, which calls find-file, which first calls > find-file-noselect (to see if it's a live buffer), which calls (via > run-hook-with-args-until-success) dired-noselect, which calls (via > dired-internal-noselect) revert-buffer (since dired-auto-revert-buffer > is t), which calls dired-revert, which saves point (via > dired-save-positions) but then erases the buffer and inserts it anew -- > and this is the problem, because now continuing in find-file, it calls > switch-to-buffer (since it's a live buffer that you're revisiting), > which sets window-point by consulting window-prev-buffers. Prior to the > invocation of erase-buffer, window-prev-buffers contained this entry for > the buffer being reverted ("test" in my test case): > > (# # #) > > which shows window-point on the first file name in the Dired listing, > but after erase-buffer it's now this: > > (# # #) > > Since dired-revert restored the saved point (232) but does not return it > to the caller, switch-to-buffer does not have this information, but only > what window-prev-buffers shows, which is now 1. So that's what it sets > window-point to. Right, I see the same. > One way to fix this is to make dired-restore-positions restore not only > point but also window-point. The attached patch does this. An alternative is to bind switch-to-buffer-preserve-window-point to nil (the whole problem was caused by the fact that this variable is now non-nil by default, and dired-revert runs afoul of it, as you point out): --- lisp/dired.el~0 2017-02-28 06:27:41.000000000 +0200 +++ lisp/dired.el 2017-06-05 17:51:50.633645200 +0300 @@ -2126,7 +2126,11 @@ (interactive) ;; Bind `find-file-run-dired' so that the command works on directories ;; too, independent of the user's setting. - (let ((find-file-run-dired t)) + (let ((find-file-run-dired t) + (switch-to-buffer-preserve-window-point + (if dired-auto-revert-buffer + nil + switch-to-buffer-preserve-window-point))) (find-file (dired-get-file-for-visit)))) (defun dired-find-alternate-file () I'm not sure which solution is better. Maybe someone will come up with a more elegant one. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 05 11:16:05 2017 Received: (at 27243) by debbugs.gnu.org; 5 Jun 2017 15:16:05 +0000 Received: from localhost ([127.0.0.1]:57723 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dHtjh-0001Z2-2M for submit@debbugs.gnu.org; Mon, 05 Jun 2017 11:16:05 -0400 Received: from mout.gmx.net ([212.227.17.22]:64733) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dHtjf-0001YH-AL for 27243@debbugs.gnu.org; Mon, 05 Jun 2017 11:16:03 -0400 Received: from rosalinde ([83.135.13.98]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MYKGj-1dLtxC2HoX-00V7Hn; Mon, 05 Jun 2017 17:15:55 +0200 From: Stephen Berman To: Eli Zaretskii Subject: Re: bug#27243: dired-auto-revert-buffer jumps point to beginning of buffer References: <87shjf48se.fsf@epsilon> <87d1aiy2qc.fsf@rosalinde> <83poeia361.fsf@gnu.org> Date: Mon, 05 Jun 2017 17:15:54 +0200 In-Reply-To: <83poeia361.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 05 Jun 2017 18:02:14 +0300") Message-ID: <874lvuxy6t.fsf@rosalinde> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:gX5OiDT1k7/BIbcpShXVfUHrM3/PHUBJCbO+nejj1zQ9rAZnAdH jwbczNZ0ACBhtoqk08qa55Gsk9D3R9Xn21JDlLnfQibq86Wg0xTC3PhQtk1MZzOqGHDouqU wyd7AslPUYbGiPMBP6e0pbCAc99zwR5Yzp3B8S+Tok/k+wNXWd96UrDt+MsSAIgRhNYfIYR KZ4FYpAp1b1GxrgTEhMng== X-UI-Out-Filterresults: notjunk:1;V01:K0:oAPuunUm26w=:qzhCDiOVzU8zkovsLxO7Kx GdVzKHLq12Q148/hcST6EC4jgbhZZco5XugZ5trIyfZVg1ZO/aS+Bck+VWsmGHW1pWOIENy7X u8qCrj8sqrVGs8XXmwJcDIvkFfPQmEvBiGEbmAJxZf0hTq4Capx89rGSSP8AvbRZZqYWogoHN GvQu5TKgtAnjAPi3BtbyNJA9O4NAo3fkgbqkOcfib9TZBlmBGDgWXBu6g2u+co08VAexEX5Yh uDatmYVYe0NXDBxKIISwy3LRuJre5JE/PXT+3Dp2nc5cgMKdAFaF8xkB/M9iLfCKnX/hYj2Yy k/MYz3cmMFDBG6Uy2yUd8h8cplhNgxYVDAgLIX+qTzJix56QTQl9/ak/v4Hy6Nx5IPePpbBNE fy00nYT7zKnJWre15Jx0MqQMst0mFzkZckvAakTYUuxRG0c0NxzMJZ9a7msgcCAiNW8wPMb44 WYOoTxN94Tmxk9xcZyp1c55QBYNqakvVrdBEYtrAAJ4i08288UvVuRJefs9UfBE+UH4XyHaGa BaP+K+RiMMG84MZLRIHkVkrcV5IrhJfOzZ6socTUkTjU37uMjF4ei16DswYsgpkvddJ0XzRV9 FITA+WkXkCy2XMDa4a2oARqWDnV8YqmxEa62ycuSgBuhcVXndpRLDyv+838UVJ0lvzShuCU52 66cgOfDVu7wfrhNLlVXx0oXujdmLEA9RfT5H1q6tLOKJOn5Js2WEMPww2eBxupXYj6nWqtg6A RHUPOSAUYSRWBQjFLxyPTFss0rUIpa9wEKPQNtKsjdr+yG552eIoyClMHilCOe2mS//mc2X4b 35/cxls X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 27243 Cc: 27243@debbugs.gnu.org, antoine.levitt@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) On Mon, 05 Jun 2017 18:02:14 +0300 Eli Zaretskii wrote: >> One way to fix this is to make dired-restore-positions restore not only >> point but also window-point. The attached patch does this. > > An alternative is to bind switch-to-buffer-preserve-window-point to > nil (the whole problem was caused by the fact that this variable is > now non-nil by default, and dired-revert runs afoul of it, as you > point out): Oh, I didn't even know about switch-to-buffer-preserve-window-point. > I'm not sure which solution is better. Maybe someone will come up > with a more elegant one. Your fix is certainly simpler and I think cleaner than mine, so I would say install it. Steve Berman From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 05 12:21:04 2017 Received: (at 27243) by debbugs.gnu.org; 5 Jun 2017 16:21:04 +0000 Received: from localhost ([127.0.0.1]:57949 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dHuka-0003GO-8Q for submit@debbugs.gnu.org; Mon, 05 Jun 2017 12:21:04 -0400 Received: from eggs.gnu.org ([208.118.235.92]:53506) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dHukY-0003FZ-2l for 27243@debbugs.gnu.org; Mon, 05 Jun 2017 12:21:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dHukO-0002Rf-00 for 27243@debbugs.gnu.org; Mon, 05 Jun 2017 12:20:57 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41796) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dHukN-0002RH-Sg; Mon, 05 Jun 2017 12:20:51 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1328 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dHukM-0004sN-Ns; Mon, 05 Jun 2017 12:20:51 -0400 Date: Mon, 05 Jun 2017 19:20:41 +0300 Message-Id: <83efuy9zja.fsf@gnu.org> From: Eli Zaretskii To: Stephen Berman In-reply-to: <874lvuxy6t.fsf@rosalinde> (message from Stephen Berman on Mon, 05 Jun 2017 17:15:54 +0200) Subject: Re: bug#27243: dired-auto-revert-buffer jumps point to beginning of buffer References: <87shjf48se.fsf@epsilon> <87d1aiy2qc.fsf@rosalinde> <83poeia361.fsf@gnu.org> <874lvuxy6t.fsf@rosalinde> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 27243 Cc: 27243@debbugs.gnu.org, antoine.levitt@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Stephen Berman > Cc: antoine.levitt@gmail.com, 27243@debbugs.gnu.org > Date: Mon, 05 Jun 2017 17:15:54 +0200 > > > An alternative is to bind switch-to-buffer-preserve-window-point to > > nil (the whole problem was caused by the fact that this variable is > > now non-nil by default, and dired-revert runs afoul of it, as you > > point out): > > Oh, I didn't even know about switch-to-buffer-preserve-window-point. > > > I'm not sure which solution is better. Maybe someone will come up > > with a more elegant one. > > Your fix is certainly simpler and I think cleaner than mine, so I would > say install it. OK, thanks. I will wait for a couple of days to let others a chance to chime in, and will install if no further comments come up. From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 10 04:25:09 2017 Received: (at 27243-done) by debbugs.gnu.org; 10 Jun 2017 08:25:09 +0000 Received: from localhost ([127.0.0.1]:37760 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dJbhl-0001hY-L2 for submit@debbugs.gnu.org; Sat, 10 Jun 2017 04:25:09 -0400 Received: from eggs.gnu.org ([208.118.235.92]:40315) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dJbhk-0001hL-0N for 27243-done@debbugs.gnu.org; Sat, 10 Jun 2017 04:25:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dJbhd-0004gC-Vi for 27243-done@debbugs.gnu.org; Sat, 10 Jun 2017 04:25:02 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45135) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dJbhY-0004dm-2J; Sat, 10 Jun 2017 04:24:56 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4182 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dJbhX-000306-8g; Sat, 10 Jun 2017 04:24:55 -0400 Date: Sat, 10 Jun 2017 11:24:38 +0300 Message-Id: <83d1ac6yih.fsf@gnu.org> From: Eli Zaretskii To: stephen.berman@gmx.net In-reply-to: <83efuy9zja.fsf@gnu.org> (message from Eli Zaretskii on Mon, 05 Jun 2017 19:20:41 +0300) Subject: Re: bug#27243: dired-auto-revert-buffer jumps point to beginning of buffer References: <87shjf48se.fsf@epsilon> <87d1aiy2qc.fsf@rosalinde> <83poeia361.fsf@gnu.org> <874lvuxy6t.fsf@rosalinde> <83efuy9zja.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 27243-done Cc: 27243-done@debbugs.gnu.org, antoine.levitt@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Mon, 05 Jun 2017 19:20:41 +0300 > From: Eli Zaretskii > Cc: 27243@debbugs.gnu.org, antoine.levitt@gmail.com > > > Your fix is certainly simpler and I think cleaner than mine, so I would > > say install it. > > OK, thanks. I will wait for a couple of days to let others a chance > to chime in, and will install if no further comments come up. No further comments, so I pushed the change, and I'm marking this bug done. From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 10 04:45:38 2017 Received: (at 27243-done) by debbugs.gnu.org; 10 Jun 2017 08:45:39 +0000 Received: from localhost ([127.0.0.1]:37783 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dJc1a-0002Az-MK for submit@debbugs.gnu.org; Sat, 10 Jun 2017 04:45:38 -0400 Received: from mail-yb0-f173.google.com ([209.85.213.173]:33129) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dJc1Z-0002An-BG for 27243-done@debbugs.gnu.org; Sat, 10 Jun 2017 04:45:37 -0400 Received: by mail-yb0-f173.google.com with SMTP id 202so19680143ybd.0 for <27243-done@debbugs.gnu.org>; Sat, 10 Jun 2017 01:45:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=flBMFB+5035nNuB3k6g/WS2wkdO7WNXDiS0LcKgCapM=; b=rjs7M43vU+biXMvLbbKgdhodSUXiTTiCV6cqjnDXtW2Bv6UvXdXj6NCj3yOnlDqgDT 4buMDxuwSgdFBLkoKMYguZQd0zKQ0r6o398xNS1rbkQQa/Gi2yWWEHtttNGx6vFfFuVb 1p8PPhn1cqDg61tCDsc/rYAbDZiQQJTa+exmJTSgOwZvT0flXy5/leAeJHzmBiZqnShB FBlTTEbwe6CFUXReqMDefA/kg+ttpvq93AhTGZZB4uVMxydg68C/Yfk25YNA6zqD05ka B6iCIPRVxel+cwOZfscOncM/eRTJbdBp4QsFvnlanm9RMe5zX/XjVHVkN8P8Vc4orYre HRyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=flBMFB+5035nNuB3k6g/WS2wkdO7WNXDiS0LcKgCapM=; b=EmyRE9Aifr2zqB7N61kduttsFnUUf5rr1S7cBUsknYP/CjTmUXYj7MzU4OUyiVny2/ 5HlC1GPDuN5PJu4DIJHi537fGdUCll2RzEXI6rENTopCcvJYxumjXWzyQuy3ZbxKaqWc yT3JsKEaCLS9hoDnTp/51nuZGAwAMmt5zSpD8piHTqHqWk7nNyfQOQfS+GWuQsT2nFZL 0VwK/2L+0Ut2QwgcvrIUF2EpwTqzafxQMrP+jh+qIz7C/I6wjCK3V/ez6hc0sbmqtMRE K9yySkb4X9Nw9itAyn4dK5GlTVoPhApeNRpS7nJoajMmLUXT38vosfeGzirZtcTE7jow dTQA== X-Gm-Message-State: AODbwcAPaDLdZsWEzk6nITnPKrqxxsb2EbxIgvmm+vfl25av7sIA8eMO GeZep27fljKf5JEWSk9AAl1ow4p5aA== X-Received: by 10.37.224.214 with SMTP id x205mr18719173ybg.101.1497084331807; Sat, 10 Jun 2017 01:45:31 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.248.30 with HTTP; Sat, 10 Jun 2017 01:45:31 -0700 (PDT) Received: by 10.37.248.30 with HTTP; Sat, 10 Jun 2017 01:45:31 -0700 (PDT) In-Reply-To: References: <87shjf48se.fsf@epsilon> <87d1aiy2qc.fsf@rosalinde> <83poeia361.fsf@gnu.org> <874lvuxy6t.fsf@rosalinde> <83efuy9zja.fsf@gnu.org> <83d1ac6yih.fsf@gnu.org> From: Antoine Levitt Date: Sat, 10 Jun 2017 01:45:31 -0700 Message-ID: Subject: Re: bug#27243: dired-auto-revert-buffer jumps point to beginning of buffer To: Eli Zaretskii Content-Type: multipart/alternative; boundary="94eb2c089f0acbdacb0551971bcc" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 27243-done Cc: 27243-done@debbugs.gnu.org, stephen.berman@gmx.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --94eb2c089f0acbdacb0551971bcc Content-Type: text/plain; charset="UTF-8" Thanks for the quick fix! Best, Antoine On 10 Jun 2017 10:25 am, "Eli Zaretskii" wrote: > Date: Mon, 05 Jun 2017 19:20:41 +0300 > From: Eli Zaretskii > Cc: 27243@debbugs.gnu.org, antoine.levitt@gmail.com > > > Your fix is certainly simpler and I think cleaner than mine, so I would > > say install it. > > OK, thanks. I will wait for a couple of days to let others a chance > to chime in, and will install if no further comments come up. No further comments, so I pushed the change, and I'm marking this bug done. --94eb2c089f0acbdacb0551971bcc Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks for the quick fix!=C2=A0

Best,=C2=A0
Antoine=C2=A0
<= /div>

On 10 Jun 20= 17 10:25 am, "Eli Zaretskii" <= eliz@gnu.org> wrote:
eliz@gnu.org>
> Cc: 27243@debbugs.gnu.org= , antoine.levitt@gmail.com<= br>
>
> > Your fix is certainly simpler and I think cleaner than mine, so I= would
> > say install it.
>
> OK, thanks.=C2=A0 I will wait for a couple of days to let others a cha= nce
> to chime in, and will install if no further comments come up.

No further comments, so I pushed the change, and I'm marking this= bug
done.

--94eb2c089f0acbdacb0551971bcc-- From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 17 08:16:11 2017 Received: (at 27243) by debbugs.gnu.org; 17 Jun 2017 12:16:11 +0000 Received: from localhost ([127.0.0.1]:52181 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dMCeB-0000tD-81 for submit@debbugs.gnu.org; Sat, 17 Jun 2017 08:16:11 -0400 Received: from mail-wr0-f175.google.com ([209.85.128.175]:34254) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dMCeA-0000t2-16 for 27243@debbugs.gnu.org; Sat, 17 Jun 2017 08:16:10 -0400 Received: by mail-wr0-f175.google.com with SMTP id 77so50054227wrb.1 for <27243@debbugs.gnu.org>; Sat, 17 Jun 2017 05:16:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:in-reply-to:from:to:subject:date:message-id :mime-version; bh=7ksZ/CoI4Ygu7wXRtQ2oftH7j1eh8QF5GYmjsphKkIo=; b=JzwGKV2/DCJBUzKWjQ4ut+9tBNCN6+6GzzGtXSOwmp3SNhHfP3ij3pzVYTb9GwswCa NoU4wbGBKewc8WCjoJgagBPbtHeTl7EzaT7yqSt/NyszClKsoToEj7KXzmFAaPWHdvhf nsQ7CJIgcuxOGahr5tJG/Hht3ielH0PAC9UrlZnHkB1KLr/UjPkdByZvlK34h92mwS0/ idNvfkrRrLNZS21A05LxQWrOYfS+AzPI9kCS6/WWvaZU2Ga3UnRBlk1jek4qAOP5Ler6 yA7gAC+AfEyg0RHELVAOThY3TK3L4F4KCvl21XiUdrpACSptVsgGpsVNVdWi5IAx5XzD SINw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:in-reply-to:from:to :subject:date:message-id:mime-version; bh=7ksZ/CoI4Ygu7wXRtQ2oftH7j1eh8QF5GYmjsphKkIo=; b=QzAr4FDZvRSkzwz5x/K2tmz1gL3Vb2fHkjWp/gX4vHnelVD3cymRwPSsFu9URr4scq PHCTGcRwrLqMQab/KrPPGQAxzN9nViveqftdj8ub4jRC5zZm1k6B4NqcvwthNyFLI2sa 2ZTntfeg96HBvns31KWZJ41N8mwYlOJubAw88TaoERqZUnDVCkenBypldpYtNDLES/rd 1ODk7GNA2hjK5Ylb8X94E3gPst+tvhbv2eAaA/97Fw1hv5il1Vy0SX2Yzws8pTUK0Dkg UtxcfI7+fZVpAVi6lvTWZ9rQwDa5/xmZfJ+gkleZuxUjFXUC7VQUPXM8wdhwE1npkPz5 /WfQ== X-Gm-Message-State: AKS2vOyLI7EuHd6C2Ms3a4x9t1eo7NaYQ/8aexuHMceSBtG9z77JQCmd dpBX8QaDXU0bKt8G X-Received: by 10.223.165.1 with SMTP id i1mr11118580wrb.59.1497701763905; Sat, 17 Jun 2017 05:16:03 -0700 (PDT) Received: from beta (cab14-1-88-177-10-57.fbx.proxad.net. [88.177.10.57]) by smtp.gmail.com with ESMTPSA id e77sm1608747wma.32.2017.06.17.05.16.02 for <27243@debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 17 Jun 2017 05:16:03 -0700 (PDT) References: <83d1ac6yih.fsf@gnu.org> <87shjf48se.fsf@epsilon> User-agent: mu4e 0.9.19; emacs 26.0.50 In-reply-to: From: Antoine Levitt To: 27243@debbugs.gnu.org Subject: Re: bug#27243: closed (Re: bug#27243: dired-auto-revert-buffer jumps point to beginning of buffer) Date: Sat, 17 Jun 2017 14:16:01 +0200 Message-ID: <87r2yizu66.fsf@beta> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.0 (-) X-Debbugs-Envelope-To: 27243 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) I just noticed this is not yet completely fixed: starting from emacs -Q, (setq dired-auto-revert-buffer t), open dired, open any file in that directory, C-x d RET to run dired again, the point jumps back to the beginning of the buffer. Best, Antoine From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 17 09:32:49 2017 Received: (at 27243) by debbugs.gnu.org; 17 Jun 2017 13:32:49 +0000 Received: from localhost ([127.0.0.1]:52241 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dMDqL-0002hT-Gp for submit@debbugs.gnu.org; Sat, 17 Jun 2017 09:32:49 -0400 Received: from mout.gmx.net ([212.227.15.19]:55274) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dMDqI-0002hG-PY for 27243@debbugs.gnu.org; Sat, 17 Jun 2017 09:32:47 -0400 Received: from rosalinde ([83.135.9.172]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LdpcB-1e4avs2W4x-00j2jK; Sat, 17 Jun 2017 15:32:39 +0200 From: Stephen Berman To: Antoine Levitt Subject: Re: bug#27243: closed (Re: bug#27243: dired-auto-revert-buffer jumps point to beginning of buffer) References: <83d1ac6yih.fsf@gnu.org> <87shjf48se.fsf@epsilon> <87r2yizu66.fsf@beta> Date: Sat, 17 Jun 2017 15:32:38 +0200 In-Reply-To: <87r2yizu66.fsf@beta> (Antoine Levitt's message of "Sat, 17 Jun 2017 14:16:01 +0200") Message-ID: <87bmpm20zt.fsf@rosalinde> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Provags-ID: V03:K0:1f15DcgE6NX87UObDrlw3MQOaFLohagqHEpDJn47AgXBRwxXTMW An2QlA1mqi/hQiUg38/SfqWPxKfrD4eFsVvSqBWk8TtKyylaLdWe3+QUaBwcoiOQa746zDm 7qFY9J59gJ+s6bvQaGmoB7QdE9T4ufdzJQhjMptTH+QFOIRbuR64O3VzAU51mRssB/oeLyp szJ4gx2DtIcA5iaSjsINA== X-UI-Out-Filterresults: notjunk:1;V01:K0:vrYgboSJqmM=:USMkHtN7oqgtOyVErgd4z0 nYLnH242L7ORK6UhJ7gwi/VtAceKgBAW+aJ9wf7MU6l940JCiYDRdjAx9/A0IY8DaoLRxLyTm KE02WyRciv49SMtVRDStzn8x/BQx7FoNHqmi9XojYi+1FVWhlIX7eCRWXgQjQ9wtEz01mRX9L EcR8rKT1n7rODmwayE3jcv0PCE6+7KcPFSfHGzBvfOyKSLbbFudzGCibEc67AI/mQR0amYn5L zveeBY5Iru0LeBANb5nQIePxLhZwt9XUk734sddT8I983q11gF6l0bXvloCb/kvSK/KDrX15a 1RO8dNmqAdl9DuNVm5qlLWOV07vQAwoP6GVgMRKdRsTdjyRqtwMpm/tru7Vi5HD0d7/TBEfEt 1VkU+En19/wQVwe+gVDJZu0fmnoAjC37ba9LssnVh0ASvl4BY4/+mJu5+bNsWCUr1wXBnCrXd v/2M7W8M75DxNuIaHAAYDtk+t4Q8yLCH/RZydVy4WJ/j1rcgq18n5ECybnC92lQWbTl0GzpMg zq6jhfbbKh45xRxcHc2Pi7bxHY5a6SO9LWuBzQ1QqYfFIY/wln+bM/kPDah5eHlhfvN/DUuMI Y7TSiUDzq5tUmRDSPRhX2dzTseatXhS4YRtc49enE6SHY/mzJ5FYU4iN6Ct2jIBf+tNHEKaDi NJgWQT6TnABiRkKEDmnAMWZCDzJTcQ8OM1il07JloG8FZLCFOfRvHeYac0VpnKKmmj5hEgj+8 qBko+cb2NSxwSevVptXXnE3ePqZggcZJEhvP1UZIAdK6eFnFi3a/Zv2vJiI= X-Spam-Score: -1.0 (-) X-Debbugs-Envelope-To: 27243 Cc: 27243@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain On Sat, 17 Jun 2017 14:16:01 +0200 Antoine Levitt wrote: > I just noticed this is not yet completely fixed: starting from emacs -Q, > (setq dired-auto-revert-buffer t), open dired, open any file in that > directory, C-x d RET to run dired again, the point jumps back to the > beginning of the buffer. I suppose the command `dired' should not use switch-to-buffer. With the following patch, executing the above recipe does not move point. --=-=-= Content-Type: text/x-patch Content-Disposition: inline Content-Description: dired patch diff --git a/lisp/dired.el b/lisp/dired.el index 8396652d50..aa59f01af9 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -786,7 +786,8 @@ dired If DIRNAME is already in a Dired buffer, that buffer is used without refresh." ;; Cannot use (interactive "D") because of wildcards. (interactive (dired-read-dir-and-switches "")) - (switch-to-buffer (dired-noselect dirname switches))) + (set-window-buffer (selected-window) + (set-buffer (dired-noselect dirname switches)))) ;;;###autoload (define-key ctl-x-4-map "d" 'dired-other-window) ;;;###autoload --=-=-= Content-Type: text/plain Steve Berman --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 09 13:38:03 2017 Received: (at 27243) by debbugs.gnu.org; 9 Jul 2017 17:38:03 +0000 Received: from localhost ([127.0.0.1]:59080 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dUG9j-0004J9-D1 for submit@debbugs.gnu.org; Sun, 09 Jul 2017 13:38:03 -0400 Received: from mail-wr0-f171.google.com ([209.85.128.171]:36022) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dUG9h-0004If-LQ for 27243@debbugs.gnu.org; Sun, 09 Jul 2017 13:38:02 -0400 Received: by mail-wr0-f171.google.com with SMTP id c11so109613117wrc.3 for <27243@debbugs.gnu.org>; Sun, 09 Jul 2017 10:38:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:in-reply-to:from:to:cc:subject:date :message-id:mime-version; bh=67bjcmznUgf2BNmIsiaQFuDc6N5knEKW1dv5FgdDdGQ=; b=cKM9nxq6optoPPbhkAegrUaRmHL+Vvqx8hz4k+91EekddXzYwISzk+eul7ZZ/6t1CM 4WeVjL6rXUW7pn8B7uDJ30DB4dsdOaomle1oRI7ra+N9Ql5UNnO16gRc/EKifFkx8L2s PNfZpqMOma/j508/vp4RaQyTm5AP8TulbZ5cO7rrNcv+3xPelIU//X1/sBdF6SjzISDD VMCNp5qpcH3jMNrAKvktG7aX/m13X420ae6EY/noP/DF5O1esBr7f47S2CoL6VWPuAKc LFppjM9DqcWizLoZDM65OZhP+sXq36w5nqpBK1sZfYXI6ccIHWNF+toKp98Klw+RS7O3 P8LQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:in-reply-to:from:to:cc :subject:date:message-id:mime-version; bh=67bjcmznUgf2BNmIsiaQFuDc6N5knEKW1dv5FgdDdGQ=; b=AwTuPExU1zGJeqlbrhaq2YuO2rGM8sUtsVXqCArOXk2sfLeJEBTJbflKMo0Ixr+Zaw hMJyjIhfs+nfYGqLqi43mcbNWaqwXqqOi1a2NbHBDM0tEGB0VlwNiVviWpJRZxaBew3w ga8i+lhERka6ojz/J+JC3tUVAoYdbQx4DDP1ZmIfW6YaTzH5CosMBg+zswpIfYAUa/nR R+3jgbtPjA9XTwkVjXWSfATuCeOCXFv01iHHcHrMYD0NDxIpzZGhRUc8vQ0uYIA82T2Q dUMGGefybJoe7aJSBRKXHuqV8u6SmJd3i1UvusYIwwXl296K1c0hGO2e3oMk8R2rAsq4 ZGrA== X-Gm-Message-State: AIVw111snUAFieO1UvUKA3FmYBSf2Z05itE5Rt5MvVAa9ttyYF199FLN JWjtExM7FOul2RjV X-Received: by 10.223.171.181 with SMTP id s50mr5722597wrc.129.1499621875630; Sun, 09 Jul 2017 10:37:55 -0700 (PDT) Received: from beta (ip-109.net-89-2-203.rev.numericable.fr. [89.2.203.109]) by smtp.gmail.com with ESMTPSA id p7sm7962720wmf.11.2017.07.09.10.37.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 09 Jul 2017 10:37:54 -0700 (PDT) References: <83d1ac6yih.fsf@gnu.org> <87shjf48se.fsf@epsilon> <87r2yizu66.fsf@beta> <87bmpm20zt.fsf@rosalinde> User-agent: mu4e 0.9.19; emacs 26.0.50 In-reply-to: <87bmpm20zt.fsf@rosalinde> From: Antoine Levitt To: Stephen Berman Subject: Re: bug#27243: closed (Re: bug#27243: dired-auto-revert-buffer jumps point to beginning of buffer) Date: Sun, 09 Jul 2017 19:37:53 +0200 Message-ID: <87zicd1pfy.fsf@beta> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: 27243 Cc: 27243@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.8 (--) Works for me, feel free to merge! Best, Antoine 17 June 2017 15:32 +02, Stephen Berman : > On Sat, 17 Jun 2017 14:16:01 +0200 Antoine Levitt wrote: > >> I just noticed this is not yet completely fixed: starting from emacs -Q, >> (setq dired-auto-revert-buffer t), open dired, open any file in that >> directory, C-x d RET to run dired again, the point jumps back to the >> beginning of the buffer. > > I suppose the command `dired' should not use switch-to-buffer. With the > following patch, executing the above recipe does not move point. > > diff --git a/lisp/dired.el b/lisp/dired.el > index 8396652d50..aa59f01af9 100644 > --- a/lisp/dired.el > +++ b/lisp/dired.el > @@ -786,7 +786,8 @@ dired > If DIRNAME is already in a Dired buffer, that buffer is used without refresh." > ;; Cannot use (interactive "D") because of wildcards. > (interactive (dired-read-dir-and-switches "")) > - (switch-to-buffer (dired-noselect dirname switches))) > + (set-window-buffer (selected-window) > + (set-buffer (dired-noselect dirname switches)))) > > ;;;###autoload (define-key ctl-x-4-map "d" 'dired-other-window) > ;;;###autoload > > Steve Berman From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 14 05:57:02 2017 Received: (at 27243) by debbugs.gnu.org; 14 Jul 2017 09:57:02 +0000 Received: from localhost ([127.0.0.1]:37771 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dVxLK-0001ly-N9 for submit@debbugs.gnu.org; Fri, 14 Jul 2017 05:57:02 -0400 Received: from mout.gmx.net ([212.227.15.19]:57334) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dVxLJ-0001lR-0b for 27243@debbugs.gnu.org; Fri, 14 Jul 2017 05:57:01 -0400 Received: from rosalinde ([83.135.15.98]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0McmS9-1dEhRE3Zz7-00HypC; Fri, 14 Jul 2017 11:56:54 +0200 From: Stephen Berman To: Antoine Levitt Subject: Re: bug#27243: closed (Re: bug#27243: dired-auto-revert-buffer jumps point to beginning of buffer) References: <83d1ac6yih.fsf@gnu.org> <87shjf48se.fsf@epsilon> <87r2yizu66.fsf@beta> <87bmpm20zt.fsf@rosalinde> <87zicd1pfy.fsf@beta> Date: Fri, 14 Jul 2017 11:56:53 +0200 In-Reply-To: <87zicd1pfy.fsf@beta> (Antoine Levitt's message of "Sun, 09 Jul 2017 19:37:53 +0200") Message-ID: <87lgnrgx3u.fsf@rosalinde> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:uGii2PUiH7X0oUXaMiCzRMkm1gksNXwj+ylhsK3w/zR5oFbtycs PrROpFLXav0qK0iYLmgIGmFxuqc7tVYj/6StTQVkUv8UXfLzbGc/9fSoaj6+vb42//SvOav a5MvowBX/n0IOdNEJBC1+1nKDWEeVwn4G+vJRtkWtC/sBfLLzgiN8bF8px4r9V48WsXctWM kCZ9htYAGR+gWLl3prbIQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:cxv1M8DXpMI=:PXIMuCkBdMjQNU15lEDA8e eveI5An1GyqljCJCCjAuNnYpgGWXuhpwXVYnOoNG8BW+CdcJQPRbFCfZi6Yi76QAqTuF1PaQX US3CU+CG49qEk7Lt+DvGgpMiBSSblO2akO+WC4WxAzTyDlsawSpfaSOQgS54hcTqDAVFYB9h3 TIBIhgSmyQJ3TivCStv14oaXdQWhmlB+rtWBieTzP90tHCvOcRlnZfArNldb9tROFUrtDlavA DQ5SO54ixGskpOtyqI0u5txNMPOdJ2SkljRbmdyAMylqJDlhSgNuIR9/SieiUHoiOMWM6w958 SyAdGSmKOnwpCyjGylSFCK8gVJMzw/3JJY5fREn5cjGgwARzynB3ZwWBBKMQVtWIKyoGoKfil fIpQvVFl8hNg5kWej/pf3ot7+R5qqJq79Tous7he6v6hJbYraRSnLGqqNbkYBglqJLYyH9Ool 5ZfZ23MnvLrBbuiZZJ+TqjK37xk+2/yimIo0e0HhBGWxgQTdd0X8JNe2yNDx/Rl4ZGsBvdmiQ YQxPVvYYiUfKO3I1WfekZLkVWH2ssk6sNVoniGE4hB852UZT6TVyct+OEGaUO2byqOLTsgLE/ Sbce798vcxVo3rd9gc5Jas0Iik0Eq19WSLooqbvDt0EJXzxXmJjEgrYeBEDVBhyCkfHBnL14m 9YoduB3gdTu13H3cvVfC0aEIvO+b1pq/Amc7IETdpovPIjlGZJWInaGsvH3Dt0ZEcb5zgr8bk /hVyo0i8z2m6xisypThUxCKAd0GEoQtBYrCMeBtLVWj5JS1uZ/Ql7tJswE1njxRh6AZmAP6qv 9froT2gLedg6NGNG6ZN+f2dCq2ijQfc+HfqZwVuSPwsZNSnULU= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 27243 Cc: 27243@debbugs.gnu.org, Eli Zaretskii , John Wiegley X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On Sun, 09 Jul 2017 19:37:53 +0200 Antoine Levitt wrote: > Works for me, feel free to merge! > > Best, > Antoine Thanks for confirming. I think this is the right fix and would commit it, but since this exchange has taken place in a closed bug, it may have fallen under the radar, so I'd like an explicit go-ahead. Eli, John? Steve Berman > 17 June 2017 15:32 +02, Stephen Berman : >> On Sat, 17 Jun 2017 14:16:01 +0200 Antoine Levitt wrote: >> >>> I just noticed this is not yet completely fixed: starting from emacs -Q, >>> (setq dired-auto-revert-buffer t), open dired, open any file in that >>> directory, C-x d RET to run dired again, the point jumps back to the >>> beginning of the buffer. >> >> I suppose the command `dired' should not use switch-to-buffer. With the >> following patch, executing the above recipe does not move point. >> >> diff --git a/lisp/dired.el b/lisp/dired.el >> index 8396652d50..aa59f01af9 100644 >> --- a/lisp/dired.el >> +++ b/lisp/dired.el >> @@ -786,7 +786,8 @@ dired >> If DIRNAME is already in a Dired buffer, that buffer is used without refresh." >> ;; Cannot use (interactive "D") because of wildcards. >> (interactive (dired-read-dir-and-switches "")) >> - (switch-to-buffer (dired-noselect dirname switches))) >> + (set-window-buffer (selected-window) >> + (set-buffer (dired-noselect dirname switches)))) >> >> ;;;###autoload (define-key ctl-x-4-map "d" 'dired-other-window) >> ;;;###autoload >> >> Steve Berman From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 15 01:52:31 2017 Received: (at 27243) by debbugs.gnu.org; 15 Jul 2017 05:52:31 +0000 Received: from localhost ([127.0.0.1]:39462 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWG0F-00082J-G9 for submit@debbugs.gnu.org; Sat, 15 Jul 2017 01:52:31 -0400 Received: from mail-pf0-f176.google.com ([209.85.192.176]:35996) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWG0D-000825-MQ for 27243@debbugs.gnu.org; Sat, 15 Jul 2017 01:52:30 -0400 Received: by mail-pf0-f176.google.com with SMTP id q86so54407854pfl.3 for <27243@debbugs.gnu.org>; Fri, 14 Jul 2017 22:52:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:date:message-id:references :user-agent:mime-version; bh=z0OjfM5o5/mW2amRsfEa02mylFMmfMG+kIkHinbQElc=; b=oTq8uDOdabh9Cna261zXiwtkxiDW31qhD6Mc0rYoXlNW0aaMPBfEpCNqWnDyQHMjW1 CIGy1z529YGXLDug9zN4wS28ENu145nlf5X9cbrrHZnAOg2xoyR/J0wprVKhuWnv5orU WCryTN/V92P4Iy/kcdw+RxfMO4bxqddfUKNWH86C78HX1EwBdmzc4pX6ip0GNIrFooSo DI+DAa/JRI0dpCxS322ZmOPa6LuMps5ShDYmEuZYxAx1oufMbCOJ35LXSMHqcI5Uwlgt w28qSzmd4CRaUJ+rJTxMAb0jENk7JaxFWNN/FyQwEw+PYAK4iECyuEPNS8QPPOpT0mLC jF8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:date:message-id :references:user-agent:mime-version; bh=z0OjfM5o5/mW2amRsfEa02mylFMmfMG+kIkHinbQElc=; b=ffL7ByMTzqmiSiXXacHdpHFUO7RDnL0QzW8cYHvyKsPqrkFcVurZb75laeCEBzHB8R cNpJ2+XYart0z+mkdSgtEhnjSWNbpfbdfe5wRfkBkJa2JhMnKYXB/d474zEj3909t+e5 w3f2uGvatHFtyVm5yE+tDaUtURx0QQCqeyS6lv/JrRe7cM6XwSmpW/DsD29gDFUisas7 TzC8SlmL9W3Nrv6vKgn48iwxgcCcbiyQur6gqIImoqvqRf5jp0QCUpvP/8nKPtY69cPd nu2m3krQxHcBVO2uyMqm+wNDE3qyhCbyOxpEdSJP8/q4WrjTz3qW+a+FbbUVHPt6O/FB jXzw== X-Gm-Message-State: AIVw111uGCTr849W3SSLypB9X2zV4XR4K791HtZ5YIjNMWZCsJHE4NDv dB+J/gBJslKdppHANyI= X-Received: by 10.99.111.129 with SMTP id k123mr6245118pgc.217.1500097943627; Fri, 14 Jul 2017 22:52:23 -0700 (PDT) Received: from Vulcan.local (76-234-69-149.lightspeed.frokca.sbcglobal.net. [76.234.69.149]) by smtp.gmail.com with ESMTPSA id 10sm23974203pfj.61.2017.07.14.22.52.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Jul 2017 22:52:22 -0700 (PDT) From: John Wiegley X-Google-Original-From: "John Wiegley" Received: by Vulcan.local (Postfix, from userid 501) id DA2A16E8643D; Fri, 14 Jul 2017 22:52:21 -0700 (PDT) To: Stephen Berman Subject: Re: bug#27243: closed (Re: bug#27243: dired-auto-revert-buffer jumps point to beginning of buffer) In-Reply-To: <87lgnrgx3u.fsf@rosalinde> (Stephen Berman's message of "Fri, 14 Jul 2017 11:56:53 +0200") Date: Fri, 14 Jul 2017 22:52:18 -0700 Message-ID: References: <83d1ac6yih.fsf@gnu.org> <87shjf48se.fsf@epsilon> <87r2yizu66.fsf@beta> <87bmpm20zt.fsf@rosalinde> <87zicd1pfy.fsf@beta> <87lgnrgx3u.fsf@rosalinde> User-Agent: Gnus/5.130016 (Ma Gnus v0.16) Emacs/25.2.50 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 27243 Cc: 27243@debbugs.gnu.org, Eli Zaretskii , Antoine Levitt X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) >>>>> Stephen Berman writes: > Thanks for confirming. I think this is the right fix and would commit it, > but since this exchange has taken place in a closed bug, it may have fallen > under the radar, so I'd like an explicit go-ahead. Eli, John? At first glance it looks OK to me, though I defer to Eli's experience in such matters. -- John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2 From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 15 03:18:17 2017 Received: (at 27243) by debbugs.gnu.org; 15 Jul 2017 07:18:17 +0000 Received: from localhost ([127.0.0.1]:39474 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWHLF-0001Xm-Fj for submit@debbugs.gnu.org; Sat, 15 Jul 2017 03:18:17 -0400 Received: from eggs.gnu.org ([208.118.235.92]:59669) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWHLD-0001XZ-MB for 27243@debbugs.gnu.org; Sat, 15 Jul 2017 03:18:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dWHL4-0002gZ-Lu for 27243@debbugs.gnu.org; Sat, 15 Jul 2017 03:18:10 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:55939) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dWHL4-0002gT-IP; Sat, 15 Jul 2017 03:18:06 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1338 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dWHL0-0008V1-11; Sat, 15 Jul 2017 03:18:02 -0400 Date: Sat, 15 Jul 2017 10:18:06 +0300 Message-Id: <838tjqf9sh.fsf@gnu.org> From: Eli Zaretskii To: John Wiegley In-reply-to: (message from John Wiegley on Fri, 14 Jul 2017 22:52:18 -0700) Subject: Re: bug#27243: closed (Re: bug#27243: dired-auto-revert-buffer jumps point to beginning of buffer) References: <83d1ac6yih.fsf@gnu.org> <87shjf48se.fsf@epsilon> <87r2yizu66.fsf@beta> <87bmpm20zt.fsf@rosalinde> <87zicd1pfy.fsf@beta> <87lgnrgx3u.fsf@rosalinde> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 27243 Cc: 27243@debbugs.gnu.org, stephen.berman@gmx.net, antoine.levitt@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: John Wiegley > Cc: Antoine Levitt , 27243@debbugs.gnu.org, Eli Zaretskii > Date: Fri, 14 Jul 2017 22:52:18 -0700 > > >>>>> Stephen Berman writes: > > > Thanks for confirming. I think this is the right fix and would commit it, > > but since this exchange has taken place in a closed bug, it may have fallen > > under the radar, so I'd like an explicit go-ahead. Eli, John? > > At first glance it looks OK to me, though I defer to Eli's experience in such > matters. No objections here. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 15 03:36:56 2017 Received: (at 27243) by debbugs.gnu.org; 15 Jul 2017 07:36:56 +0000 Received: from localhost ([127.0.0.1]:39507 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWHdI-00022r-64 for submit@debbugs.gnu.org; Sat, 15 Jul 2017 03:36:56 -0400 Received: from mout.gmx.net ([212.227.15.18]:64865) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWHdF-00022c-BX for 27243@debbugs.gnu.org; Sat, 15 Jul 2017 03:36:53 -0400 Received: from [192.168.1.100] ([46.125.250.39]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LfTVx-1dyWz11Pcf-00p94L; Sat, 15 Jul 2017 09:36:46 +0200 Message-ID: <5969C609.4040803@gmx.at> Date: Sat, 15 Jul 2017 09:36:41 +0200 From: martin rudalics MIME-Version: 1.0 To: Stephen Berman , Antoine Levitt Subject: Re: bug#27243: closed (Re: bug#27243: dired-auto-revert-buffer jumps point to beginning of buffer) References: <83d1ac6yih.fsf@gnu.org> <87shjf48se.fsf@epsilon> <87r2yizu66.fsf@beta> <87bmpm20zt.fsf@rosalinde> In-Reply-To: <87bmpm20zt.fsf@rosalinde> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:uCUhJgLqzl/g1KcKkpZyBKUWqRvA+EzA2o+aoxA5rPiWjlAOowb cQMHvL+OFbq/Uc7cN56T+XIgZfGd8q1DD3d1yuul/+diqN2fI1wCt6KpTBE+3Efo9kXMQQL NO2+4JwtbQiG4Y3XlqiY6x+P4pDFaCYjTjNYKhzGLu3+boWKYHzGCwVmsLwdOyiDw8tJVAx KUEXlOkA5FP90/01hDp/g== X-UI-Out-Filterresults: notjunk:1;V01:K0:zcCIn0a728o=:nimVmaP6M7oIP0bce0vntg lDUhQ+i1dZktU5OVkHoq0CUYjXP1r7GBS9zmn0L2i2SBWIK3x7k2IgS3JZNQ+lZEzwIG0iOoz 8U+j3z3i7xXN7s989eC459gQgMh+Qu6o8vicpQOBHCs3C9HU1mKT1pnnWG6Laib1FcY9ZITJ0 /KwHT/GZhmEtOhk2AoP+wy8tQexMXyfBv8hJpdetLgUAa8zIwC9+q6rh25B6NFZLtRcTgXzAa ROk187WT9YZ3sTqbUp9QmrQ/N8jMazI5GgkqH4bAhtymXOhjf+QZWbBJ3Tb7yTAuqVpSBuOrM li0NEeMw4oiYwFBqtBqJH1ZJP2JopTi4Wyx0XsDEl2KbBnZzu9R2s3eDbk5PEgjbcDLeGL+gm PmvL5vo0Y1yNH0nzwVaYjkdv++AgeRgTOmWqFC6sAMEed4YPM1ngInCJ1RS7WwVhCAj9d8OAO SnRwwpnOcpx2hmmEvcuc7mve/ZVuZXataJvDkDZLgA8lm9hXOevoYUHpbbi87XzqQDYR95/e9 8I3oE6d3+XToXHQl2M37YIxX9g9+N7tAjNOzhBWzgu+CeRLN4PvCnuzMOd9bsI7CF0oxVBapQ d+1wx0TT40lbnPsQOj0s95X1wfruOqO9oa+5aUoa6LnvC322bTppw0uiX8XPO93eKeKXw5hwb d7b87f/8zdtkGmCYLzUe06jmmhzTiqQns3DeKNRDMOh6eRUPzfVRdX471w6OFGGajV1VNORLL I7QXAnUYixd7SMfW1MJYCV1KDqcqH1ktXMpkDs0sP2+pB87Eu28egda0QtjIIBRrKSjmipWFP db9zCQNa++2efo6CjRz8VdIHskHMogv+ofk0vgv+nZRHfY5AXgDFCcuYRH4dwpQ7RLzGsMx X-Spam-Score: -3.5 (---) X-Debbugs-Envelope-To: 27243 Cc: 27243@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.5 (---) > + (set-window-buffer (selected-window) > + (set-buffer (dired-noselect dirname switches)))) This really should be (pop-to-buffer-same-window (dired-noselect dirname switches)) Even if people disliked it in the past and some still dislike it: Try C-h f M-x dired martin From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 15 07:14:18 2017 Received: (at 27243) by debbugs.gnu.org; 15 Jul 2017 11:14:18 +0000 Received: from localhost ([127.0.0.1]:39572 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWL1e-0005pu-E7 for submit@debbugs.gnu.org; Sat, 15 Jul 2017 07:14:18 -0400 Received: from mout.gmx.net ([212.227.17.22]:53207) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWL1c-0005pf-D7 for 27243@debbugs.gnu.org; Sat, 15 Jul 2017 07:14:17 -0400 Received: from rosalinde ([83.135.8.203]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MRocn-1d3LvF2Xaz-00SzMB; Sat, 15 Jul 2017 13:14:08 +0200 From: Stephen Berman To: martin rudalics Subject: Re: bug#27243: closed (Re: bug#27243: dired-auto-revert-buffer jumps point to beginning of buffer) References: <83d1ac6yih.fsf@gnu.org> <87shjf48se.fsf@epsilon> <87r2yizu66.fsf@beta> <87bmpm20zt.fsf@rosalinde> <5969C609.4040803@gmx.at> Date: Sat, 15 Jul 2017 13:14:06 +0200 In-Reply-To: <5969C609.4040803@gmx.at> (martin rudalics's message of "Sat, 15 Jul 2017 09:36:41 +0200") Message-ID: <87wp7arlz5.fsf@rosalinde> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:cfbFtdXs7ORtzmv5zRzQylNpZkhCjtNGIDLWS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iXKMsmfvX2ELgTD4WuZsrbElLx0pBufl0WTOiaFCA= X-Spam-Score: -3.0 (---) X-Debbugs-Envelope-To: 27243 Cc: 27243@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.0 (---) On Fri, 14 Jul 2017 22:52:18 -0700 John Wiegley wrote: >>>>>> Stephen Berman writes: > >> Thanks for confirming. I think this is the right fix and would commit it, >> but since this exchange has taken place in a closed bug, it may have fallen >> under the radar, so I'd like an explicit go-ahead. Eli, John? > > At first glance it looks OK to me, though I defer to Eli's experience in such > matters. On Sat, 15 Jul 2017 10:18:06 +0300 Eli Zaretskii wrote: > No objections here. > > Thanks. Thanks for okaying, but... On Sat, 15 Jul 2017 09:36:41 +0200 martin rudalics wrote: >> + (set-window-buffer (selected-window) >> + (set-buffer (dired-noselect dirname switches)))) > > This really should be > > (pop-to-buffer-same-window (dired-noselect dirname switches)) > > Even if people disliked it in the past and some still dislike it: Try > > C-h f > M-x dired Wow, that's disastrous! And frightening: I use the "(set-window-buffer (selected-window) (set-buffer ...))" idiom a lot in todo-mode.el; I just checked two commands using `C-h f' followed by the command invocation: one worked fine but the other caused the same disaster. So now I have to check all uses :(. Is there a general guideline for when to use set-window-buffer and when to use pop-to-buffer-same-window? Anyway, I'll commit the dired.el change you recommend; many thanks. Steve Berman From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 15 09:59:20 2017 Received: (at 27243) by debbugs.gnu.org; 15 Jul 2017 13:59:20 +0000 Received: from localhost ([127.0.0.1]:40425 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWNbM-00038I-HC for submit@debbugs.gnu.org; Sat, 15 Jul 2017 09:59:20 -0400 Received: from mout.gmx.net ([212.227.15.18]:59299) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWNbK-000381-2h for 27243@debbugs.gnu.org; Sat, 15 Jul 2017 09:59:18 -0400 Received: from [192.168.1.100] ([46.125.250.102]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MI4yc-1dUiMy3eZC-003sE7; Sat, 15 Jul 2017 15:59:10 +0200 Message-ID: <596A1FAB.8060808@gmx.at> Date: Sat, 15 Jul 2017 15:59:07 +0200 From: martin rudalics MIME-Version: 1.0 To: Stephen Berman Subject: Re: bug#27243: closed (Re: bug#27243: dired-auto-revert-buffer jumps point to beginning of buffer) References: <83d1ac6yih.fsf@gnu.org> <87shjf48se.fsf@epsilon> <87r2yizu66.fsf@beta> <87bmpm20zt.fsf@rosalinde> <5969C609.4040803@gmx.at> <87wp7arlz5.fsf@rosalinde> In-Reply-To: <87wp7arlz5.fsf@rosalinde> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K0:9JymREdxT3T9jYtH/iCIOYsEQNF/1HpUJcZqwz5h5T1NNFH3is4 z/kiz8zTYeiGsV1VG7xQH2ap0NB4+OX4TxTeXRplMpFYBCpxOIHMgkEWy3wTkzVzMAG2RK+ 4igdwV8VNRc4UIHqWtsxSCFtxrzcqqhMSYQgrEL3vqhccZBCkqTfxjeCsCrj8QmXzXvVg3O Nb/DfB7kEf0dPUTEOWa1Q== X-UI-Out-Filterresults: notjunk:1;V01:K0:PkuVcA60reI=:1KTywb4fibxHWafxkp6S8N xp3fOkpY8lWA9U3GC4wm483OCQzLBqeaQLJ0E0/omg3seCu1CVUJwzsGS4xzWNaw/k936PxFN nOl9ktjQMPGtcCLkrBy81afqiWnSK1tzohRMY1nO/cf11osJtu+YmwZVp1YVe66QOKm1N1M0l KFd76IZ5eQSr53hjUbRDB84lPCIJRdqaKAQgU8xifSEs4hod20LQD3mmeTvoBTZcKKi99/jwM n9NWSL4R1/gpADBK24pZV64DvH949+hyryc93/GWowtsLRZq2oN3GrSFwNY0YjPAkTHHaOu1x kIAmQlrNryVaPBuxK8G128FJVGxO+/96RLvJqSoJajST5oc/cMfV9JPwNv1unDwCeB6FZGio7 eip+CjxvXr1Ot5AOB0nhnFovsFQ5YX+YnH0+n5Z9+HaJqS2bgSWId8m5z2LZKmYC3O6kxuAV8 G2iSQtFM9bC9878ffeFu8JVHtZrXgjhVzN6u0h/CbK1SUoBxaAsIPwJNiS3WbEYUA64bVhhIj 9j6SvstB4WH3/PTXihogW6PXCHUOqZCcQqHJ5jDuXnWyRynczye/vDYYpoGKeWDYcb4SNUSX7 axhKO0dvghO4KkdbjYi02vLS8WH4eFYQsm7UCrh3US0w29g7YNLCZQB5S4NFVEq/V6GbKKnYT YAJCPtFvYbDvPBh7cbNxOe5Ynjs7NgHkXKBVmx4xE4KcE98LvutmmPb0x3rheNlPJakk4BrvG 4w8imw/SLxv3/vvP/veNUTqdid1PBJL/mAH9D9s3K0tv3P8ybONcssbWcV5HngRqFW2jzwQeu PGGIyVdm6Qt5LWygA73Vm6bh4R11F3J5F+FA/o4Y3psHBB4eA5bxR5n/nwCm8bRn/AJQib9 X-Spam-Score: -3.5 (---) X-Debbugs-Envelope-To: 27243 Cc: 27243@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.5 (---) > Wow, that's disastrous! And frightening: I use the "(set-window-buffe= r > (selected-window) (set-buffer ...))" idiom a lot in todo-mode.el; I ju= st > checked two commands using `C-h f' followed by the command invocation:= > one worked fine but the other caused the same disaster. So now I have= > to check all uses :(. Is there a general guideline for when to use > set-window-buffer and when to use pop-to-buffer-same-window? Always try =E2=80=98pop-to-buffer-same-window=E2=80=99 or =E2=80=98displa= y-buffer-same-window=E2=80=99 first. If they fail, try to find out why. Maybe that can be fixed. martin From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 17 05:22:56 2017 Received: (at 27243) by debbugs.gnu.org; 17 Jul 2017 09:22:56 +0000 Received: from localhost ([127.0.0.1]:43213 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dX2Ex-00054u-Ok for submit@debbugs.gnu.org; Mon, 17 Jul 2017 05:22:55 -0400 Received: from mout.gmx.net ([212.227.15.18]:50043) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dX2Ev-00054f-NE for 27243@debbugs.gnu.org; Mon, 17 Jul 2017 05:22:54 -0400 Received: from rosalinde ([83.135.12.56]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MFuWk-1dS8wq3Bo6-00Es8M; Mon, 17 Jul 2017 11:22:46 +0200 From: Stephen Berman To: Antoine Levitt Subject: Re: bug#27243: closed (Re: bug#27243: dired-auto-revert-buffer jumps point to beginning of buffer) References: <83d1ac6yih.fsf@gnu.org> <87shjf48se.fsf@epsilon> <87r2yizu66.fsf@beta> <87bmpm20zt.fsf@rosalinde> <87zicd1pfy.fsf@beta> Date: Mon, 17 Jul 2017 11:22:46 +0200 In-Reply-To: <87zicd1pfy.fsf@beta> (Antoine Levitt's message of "Sun, 09 Jul 2017 19:37:53 +0200") Message-ID: <87379vwh7d.fsf@rosalinde> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:mbX+4h65kK7PV6MdDd2zyvjBDa3DlkyJFCUvrBAEZTNd92hc0bc BFpjhypULRnkmNcbJIhHPOpN0XE14BabXmmfEpGeC1XLfODkRjx2OcVZPfL1cVtVZ4mdm5a hEIHHhsh1EDIRw/eW5avSUCqRCcXaCSAoc1z09/6QuI5rVvLf7ND1eOKJdYgmiFYirD7Jz6 N8rIWyGb2g2lf38ji/GNg== X-UI-Out-Filterresults: notjunk:1;V01:K0:GTIzyk1paiE=:/MsSlaOqt9KZ0ScMbD7sx3 87i2VNEq5SvJsk1z1e1gAo/G9G1l/DmfZYgKcvNbyYfiFKlpS8gE3oMO4zzfiwltHhRSWIAV4 Zw8VhK6tFKn461cF7rNOrAOqc4y7fs7xuMtGx6sICV3Pj7YEN4bNUCfsurSLq8kH+qBbbD/Ww /76pS8gvpibIwxdtaWRm3Q6SRqsEOawFcDssycGlewO1Chyh05vkdgDMxypVxQEZJkUE+Swcl BYQcDmEODlN4bS+IyCJ9LUgDFn5uQ5PFDgTEtcTj/xpRFfbL5Q34xx9RzSUAQT8cLu/kqkT20 KfLBU/6plKf7FLE0oq9p8pHqdPIOZUN0mErCbeNu8NHX44bg2pPDhaX794xWuGj1zqXdFP2jE z1Ta+nyMuKEQd6+HUVJVBJS7frVbP5bDOt1ZI97GV6J1aezCLmqnxxpnmpk5Z3PZNK9IPkdLf g06hmZGbpRqjHPn45i0XyE5lb9URE+Ap3j20E0NAfdee91ayxZoSszgAhXW/rYHye0Ez8AJMr oFdqn3nDPxhdJ7Z+7DAs9cPfxeCZoZKxb1rdgqwy2BWWCMPs5vXsx1MwbZD52VkMmiiCbIgOp i3LrnV3V4UCr4StYdB3TphcFLxxHZDZ0RjHaOjeyj/W5tAVWI0c+jJXHtNuDYTxb+WH5HxwWD qQPfNTfzwdnW+uoWYFIZ3MmcIbtvEY7K2cg2jH9lpN7nKoynzdrp35Anzb/dfXEMyUvZ5ZkW/ Jdb4cfVojjT64kmXIeeKLhRG1xWvdVnTy6zLIJxD/hrHzbRPg5fCAKkNcBgshp3sKww+fc2IW qD8RSk7knNs1GWx8FHJ2VHcvCTvPjD5M0U8ymt1sKZ3dMQ5CPs= X-Spam-Score: -3.0 (---) X-Debbugs-Envelope-To: 27243 Cc: 27243@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.0 (---) On Sun, 09 Jul 2017 19:37:53 +0200 Antoine Levitt wrote: > Works for me, feel free to merge! > > Best, > Antoine > > 17 June 2017 15:32 +02, Stephen Berman : >> On Sat, 17 Jun 2017 14:16:01 +0200 Antoine Levitt wrote: >> >>> I just noticed this is not yet completely fixed: starting from emacs -Q, >>> (setq dired-auto-revert-buffer t), open dired, open any file in that >>> directory, C-x d RET to run dired again, the point jumps back to the >>> beginning of the buffer. >> >> I suppose the command `dired' should not use switch-to-buffer. With the >> following patch, executing the above recipe does not move point. >> >> diff --git a/lisp/dired.el b/lisp/dired.el >> index 8396652d50..aa59f01af9 100644 >> --- a/lisp/dired.el >> +++ b/lisp/dired.el >> @@ -786,7 +786,8 @@ dired >> If DIRNAME is already in a Dired buffer, that buffer is used without refresh." >> ;; Cannot use (interactive "D") because of wildcards. >> (interactive (dired-read-dir-and-switches "")) >> - (switch-to-buffer (dired-noselect dirname switches))) >> + (set-window-buffer (selected-window) >> + (set-buffer (dired-noselect dirname switches)))) >> >> ;;;###autoload (define-key ctl-x-4-map "d" 'dired-other-window) >> ;;;###autoload >> >> Steve Berman On Sat, 15 Jul 2017 09:36:41 +0200 martin rudalics wrote: >> + (set-window-buffer (selected-window) >> + (set-buffer (dired-noselect dirname switches)))) > > This really should be > > (pop-to-buffer-same-window (dired-noselect dirname switches)) > > Even if people disliked it in the past and some still dislike it: Try > > C-h f > M-x dired I installed the fix Martin recommended to master as commit b2150e0 (after confirming that it indeed DTRT). I also added a test for this case and the first one. Steve Berman From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 17 05:29:07 2017 Received: (at 27243) by debbugs.gnu.org; 17 Jul 2017 09:29:08 +0000 Received: from localhost ([127.0.0.1]:43223 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dX2Kx-0005E9-MI for submit@debbugs.gnu.org; Mon, 17 Jul 2017 05:29:07 -0400 Received: from mout.gmx.net ([212.227.15.19]:57275) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dX2Kw-0005DZ-Rs for 27243@debbugs.gnu.org; Mon, 17 Jul 2017 05:29:07 -0400 Received: from rosalinde ([83.135.12.56]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MUoma-1d7s4u2bCG-00YChN; Mon, 17 Jul 2017 11:29:00 +0200 From: Stephen Berman To: martin rudalics Subject: Re: bug#27243: closed (Re: bug#27243: dired-auto-revert-buffer jumps point to beginning of buffer) References: <83d1ac6yih.fsf@gnu.org> <87shjf48se.fsf@epsilon> <87r2yizu66.fsf@beta> <87bmpm20zt.fsf@rosalinde> <5969C609.4040803@gmx.at> <87wp7arlz5.fsf@rosalinde> <596A1FAB.8060808@gmx.at> Date: Mon, 17 Jul 2017 11:28:59 +0200 In-Reply-To: <596A1FAB.8060808@gmx.at> (martin rudalics's message of "Sat, 15 Jul 2017 15:59:07 +0200") Message-ID: <87y3rnv2ck.fsf@rosalinde> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K0:eu+FLa9j8tVpKMcuSP308hvaIIetDnVNbuwC7q9ZcimmY7iJnTi Kl2rC6NAYVX1w80Aclcn9JIlSft4fmCiNrC4dnlwl4zNydSnGvEZUUnxUHKk+sPZRxmSm+/ 273OOmpFgFwg+pW9kZ2gOYiboXIhWu02ZlB21KLrDnh9J9BFrdXrexLYiLWpixgBrP6piGs 6nGw1LXN6qq+9y2lTRBzw== X-UI-Out-Filterresults: notjunk:1;V01:K0:O8RUZtRqfaY=:H9uS5J7HUwBmzFcqgIZt+p xJQfGLi8H3gKh+cq2cDC043SjaHnKTW9xNGEbMPi7H7OAOQn9teGiaKD4lgAgtD+o5CVaFCw+ 22Imdd66HL/iOWG2x/hSqtZEKBgEJ/rUivzjKswuFMz8IiZqDEWVfkjHGL3+VS3elz791BbXW J8VTQbELKGifKYy6eOeInhpabADfNA7XhR4KA4vuYrmhIxfCe33okJpPlGSbxSb8GWUU5/mgl fAuF7aKCQ9opjvKRakPxbACGqe8dyih7vVi50FdLA7V8QzoLy/o9dD8LTKRunrcBiHVru9MK7 cVD+0M+IDEPqYK6kjGoipKjtzQpGnPm6rRHZnylV6k4yxChNtssn5ZKlv8q/TiY6tUfg3mbki MgDTLlbvQS+/V8u/OghkZJPr2DnS7dkP/eGmyMwfZUCg/EEeY2wub5Fxndzm+YH/d/n/j1WFo x1HfuREOnN1iBoLpmI5J9OHn/UoZy5qlE90i5MOuYkS/fkaMT9tTROpBpXehKH/id3ukUAp46 8wYc8r81qckCoK3CZl/rdVGiq7OdE5SMOMHgGIEo49+/9ZB9D+sudqj1Y4fvzYlVPUrH4XVCL 3GKks/yltg+EORPVCbcyf89lzasnLiCGJ4QCSgUNN24mbfGcyrpGqWDPmsD/P66WLtARa975Q YKoqZv0MKkkrD7JZHoTtagvplW+Lg+aSU8jyyQC9b0VLvedU4BmvRXAaIhBB699wh06WVu6tb kKu7WdxBcmYi6xO+dbdy8H22vtVVNT0Pqz3EQRXC+8R54zdEGhWtp17wm7vHU+lu1Q2618kWs 05CAZLBPog5iFhaxwSCtFaMNd9YmUXvdOEsbUe6hTiPLEdWT54= X-Spam-Score: -0.2 (/) X-Debbugs-Envelope-To: 27243 Cc: 27243@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.2 (/) On Sat, 15 Jul 2017 15:59:07 +0200 martin rudalics wrote: >> Wow, that's disastrous! And frightening: I use the "(set-window-buffer >> (selected-window) (set-buffer ...))" idiom a lot in todo-mode.el; I just >> checked two commands using `C-h f' followed by the command invocation: >> one worked fine but the other caused the same disaster. So now I have >> to check all uses :(. Is there a general guideline for when to use >> set-window-buffer and when to use pop-to-buffer-same-window? > > Always try =E2=80=98pop-to-buffer-same-window=E2=80=99 or =E2=80=98displa= y-buffer-same-window=E2=80=99 > first. If they fail, try to find out why. Maybe that can be fixed. Thanks for the advice. Steve Berman From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 22 11:29:10 2017 Received: (at 27243) by debbugs.gnu.org; 22 Jul 2017 15:29:10 +0000 Received: from localhost ([127.0.0.1]:52524 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dYwL8-0004yc-BO for submit@debbugs.gnu.org; Sat, 22 Jul 2017 11:29:10 -0400 Received: from mail-wr0-f169.google.com ([209.85.128.169]:35790) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dYwL5-0004yP-RN for 27243@debbugs.gnu.org; Sat, 22 Jul 2017 11:29:08 -0400 Received: by mail-wr0-f169.google.com with SMTP id k71so38182091wrc.2 for <27243@debbugs.gnu.org>; Sat, 22 Jul 2017 08:29:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:in-reply-to:from:to:cc:subject:date :message-id:mime-version; bh=HJ67CtrEr4rUqT/Wx4jdY0HEJOYyzTyJf+mtMWFvl74=; b=G+90rWnNaTlZkB4MjZfJIsopcKR1hwgc/5k//anH6ubNj/76/zhI4I4zjjFHWrZDyf w7NyIZp5b7J5vtv+g2m0akuQJ8SBmdsMl/VdVc1tvbmgIYSziULFdxyhHpNAFNluGkM8 EPpBReDdGiQ5qvZKS5VATBKKUPQMW+2gwXCZcF7dsECQsI627DTIFhnofHoMqp7VhXUn 3muTrZtLaoZKeVcuvtOUXOG49eCRKfP82fn+Fa1mqs3ZDKXum1NMPJ+uE0AvWhCUW6Zu doQwvanoAPO8VAGFyKZBozRe8n1uINVZ7DoqDJWEyUa8FVjVtmj+VyhfITMDDyoVryqH ca1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:in-reply-to:from:to:cc :subject:date:message-id:mime-version; bh=HJ67CtrEr4rUqT/Wx4jdY0HEJOYyzTyJf+mtMWFvl74=; b=i2P/SJSnbGQ3zdOP9mUSBDLtddTOfaS7aZpOjcJULx0gPlTj2QugDjO5PpjD7FxyGZ XuN2Hspw1lBvQ8DuHqY9ZcOCkzZRo4s3fsvAud9kE7pnRSm1geWRYmYX5wVic9yKepva o+zXFTNBr+O8RrjKxEVevoMoMVLykdGpVE4vkSp+pc0ZiXQV+tucHuGb2hikA+99KIlC 2ere7xtBOYGWN9mXZQ787vqesoXsE5VB9j+axeBHRZgCg0lrQY9SpDyM2VJRK2jTNDe5 jOCruqZ14qcSVtFPvdeLQm3rHBtIOCsoeFcux2xfRXn0VWLcDdUVRfAAor3NQgSGNzSZ DQnw== X-Gm-Message-State: AIVw1113SzNGUzQONzdCMoPGPW2R5kZyEnqdbqFi4Q0B/7JiiAAV2/RW LsaotXV6IEMXmvD8 X-Received: by 10.223.163.16 with SMTP id c16mr13327294wrb.173.1500737341922; Sat, 22 Jul 2017 08:29:01 -0700 (PDT) Received: from beta (ip-109.net-80-236-113.lhaylesroses.rev.numericable.fr. [80.236.113.109]) by smtp.gmail.com with ESMTPSA id i185sm4327458wmf.34.2017.07.22.08.29.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 22 Jul 2017 08:29:00 -0700 (PDT) References: <83d1ac6yih.fsf@gnu.org> <87shjf48se.fsf@epsilon> <87r2yizu66.fsf@beta> <87bmpm20zt.fsf@rosalinde> <87zicd1pfy.fsf@beta> <87379vwh7d.fsf@rosalinde> User-agent: mu4e 0.9.19; emacs 26.0.50 In-reply-to: <87379vwh7d.fsf@rosalinde> From: Antoine Levitt To: Stephen Berman Subject: Re: bug#27243: closed (Re: bug#27243: dired-auto-revert-buffer jumps point to beginning of buffer) Date: Sat, 22 Jul 2017 17:28:59 +0200 Message-ID: <87o9scv6bo.fsf@beta> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 27243 Cc: 27243@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Sorry to be the bearer of bad news, but still not completely fixed ;-) >From emacs -Q, (setq dired-auto-revert-buffer t), C-x C-f RET, C-x b RET, C-x C-f RET, and point jumps. 17 July 2017 11:22 +02, Stephen Berman : > On Sun, 09 Jul 2017 19:37:53 +0200 Antoine Levitt wrote: > >> Works for me, feel free to merge! >> >> Best, >> Antoine >> >> 17 June 2017 15:32 +02, Stephen Berman : >>> On Sat, 17 Jun 2017 14:16:01 +0200 Antoine Levitt wrote: >>> >>>> I just noticed this is not yet completely fixed: starting from emacs -Q, >>>> (setq dired-auto-revert-buffer t), open dired, open any file in that >>>> directory, C-x d RET to run dired again, the point jumps back to the >>>> beginning of the buffer. >>> >>> I suppose the command `dired' should not use switch-to-buffer. With the >>> following patch, executing the above recipe does not move point. >>> >>> diff --git a/lisp/dired.el b/lisp/dired.el >>> index 8396652d50..aa59f01af9 100644 >>> --- a/lisp/dired.el >>> +++ b/lisp/dired.el >>> @@ -786,7 +786,8 @@ dired >>> If DIRNAME is already in a Dired buffer, that buffer is used without refresh." >>> ;; Cannot use (interactive "D") because of wildcards. >>> (interactive (dired-read-dir-and-switches "")) >>> - (switch-to-buffer (dired-noselect dirname switches))) >>> + (set-window-buffer (selected-window) >>> + (set-buffer (dired-noselect dirname switches)))) >>> >>> ;;;###autoload (define-key ctl-x-4-map "d" 'dired-other-window) >>> ;;;###autoload >>> >>> Steve Berman > > On Sat, 15 Jul 2017 09:36:41 +0200 martin rudalics wrote: > >>> + (set-window-buffer (selected-window) >>> + (set-buffer (dired-noselect dirname switches)))) >> >> This really should be >> >> (pop-to-buffer-same-window (dired-noselect dirname switches)) >> >> Even if people disliked it in the past and some still dislike it: Try >> >> C-h f >> M-x dired > > I installed the fix Martin recommended to master as commit b2150e0 > (after confirming that it indeed DTRT). I also added a test for this > case and the first one. > > Steve Berman From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 22 12:55:59 2017 Received: (at 27243) by debbugs.gnu.org; 22 Jul 2017 16:55:59 +0000 Received: from localhost ([127.0.0.1]:52564 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dYxh8-00070r-Pt for submit@debbugs.gnu.org; Sat, 22 Jul 2017 12:55:58 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51553) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dYxh7-00070f-H5 for 27243@debbugs.gnu.org; Sat, 22 Jul 2017 12:55:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dYxh1-0001G9-G1 for 27243@debbugs.gnu.org; Sat, 22 Jul 2017 12:55:52 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46623) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dYxgu-0001E8-25; Sat, 22 Jul 2017 12:55:44 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1dYxgs-0008Aq-5k; Sat, 22 Jul 2017 12:55:42 -0400 From: Glenn Morris To: Antoine Levitt Subject: Re: bug#27243: closed (Re: bug#27243: dired-auto-revert-buffer jumps point to beginning of buffer) References: <83d1ac6yih.fsf@gnu.org> <87shjf48se.fsf@epsilon> <87r2yizu66.fsf@beta> <87bmpm20zt.fsf@rosalinde> <87zicd1pfy.fsf@beta> <87379vwh7d.fsf@rosalinde> <87o9scv6bo.fsf@beta> X-Spook: Armed Revolutionary Forces Colombia ASPIC Mexico eternity X-Ran: 7P6ySfJ@):_k+Jnh0d!TMr=;*`~ivWx/oa_7kW(dx-^$adzRg`|q)j+u4"4fz@YRLxMeRP X-Hue: brightblue X-Debbugs-No-Ack: yes X-Attribution: GM Date: Sat, 22 Jul 2017 12:55:41 -0400 In-Reply-To: <87o9scv6bo.fsf@beta> (Antoine Levitt's message of "Sat, 22 Jul 2017 17:28:59 +0200") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -7.8 (-------) X-Debbugs-Envelope-To: 27243 Cc: 27243@debbugs.gnu.org, Stephen Berman X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -7.8 (-------) Also, the test dired-test-bug27243 fails intermittently. Eg http://hydra.nixos.org/build/56755248 http://hydra.nixos.org/build/56731329 It switches between passing and failing for no clear reason. From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 22 18:48:29 2017 Received: (at 27243) by debbugs.gnu.org; 22 Jul 2017 22:48:29 +0000 Received: from localhost ([127.0.0.1]:52687 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dZ3CG-0006Xe-SG for submit@debbugs.gnu.org; Sat, 22 Jul 2017 18:48:29 -0400 Received: from mout.gmx.net ([212.227.15.15]:64662) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dZ3CF-0006XR-GS for 27243@debbugs.gnu.org; Sat, 22 Jul 2017 18:48:28 -0400 Received: from rosalinde ([83.135.22.79]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LfTVx-1dwrc23Ai1-00p2qM; Sun, 23 Jul 2017 00:48:19 +0200 From: Stephen Berman To: Antoine Levitt Subject: bug#27243 another case: dired-auto-revert-buffer jumps point to beginning of buffer References: <83d1ac6yih.fsf@gnu.org> <87shjf48se.fsf@epsilon> <87r2yizu66.fsf@beta> <87bmpm20zt.fsf@rosalinde> <87zicd1pfy.fsf@beta> <87379vwh7d.fsf@rosalinde> <87o9scv6bo.fsf@beta> Date: Sun, 23 Jul 2017 00:48:18 +0200 In-Reply-To: <87o9scv6bo.fsf@beta> (Antoine Levitt's message of "Sat, 22 Jul 2017 17:28:59 +0200") Message-ID: <87k230qea5.fsf_-_@rosalinde> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:NN4gFAFfShQJI83eCpecbmMv8IyN8sR7aS+y0zhHzc1FYrHWVN1 7lD3BnIcSTxjEqu1TsSltzRpKc8hFVfkxpshcaPMLlIJmg3CxFIMkQG6A4zvQFUGxoEwcXF /Sh1T6t4eUCo9kcEb5L3c7HoLfhMF7NDH+k2T12DBSgb1Zlz9b0MWiz73/p//Ve1nz/OVfU sMrjexaQVAevv3txXo6LQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:EfyA3pxi1Eg=:cogTT0TjO1uLH5jtTDXCNE Yw3eU16XSWj17uOLRf9lsCxYOoFOe8KONobYUroAcvrrIRPg3QoX7ZL4Av6d1vPOWmlQs4fiO YuoVGqzsP4X+aTeUQTx8o4oKvpxmzqRwT27L9v4ApSyHypp35N6kDVqcYlMiW+rbiF0frlm4V MbFlh4ugk0b8JTeGQRNVbX8F6/hnDHBcAiTRsQQAsKZYNuNP5lNja2Ve2Uibtz9XkMt3S27MB Guf1b79FLs8TDeee4YLyt61iH2SmfpgOuqagmn0FiUB/75Iixut741i8nzxgYlsgukNyyfbbR oWfs/ySQCuP4XYP2wxo+vmuMior2+gOdiWQ4qHym1BP/KuDFrI3p7T0JmCC2TfccSwn5a73SH ih1Sj12fJe9Fren/dzlxQWxYcaUpu8E8oGZnUsxWtQ3G0WhSX/cs4qF0Q4ztPkdUI1IvOL947 OxslkX3XTnrjfrv4deREJWJpSrHh6F/zKeVHAFmTsIDDWksBtYd/3rCAZKi3GBT05HHY4s4s3 7GgxIB38Iqe9QqLE8+vY4MeeOb32+vX3WNh8DLZZ6SciiLmbrObtocCVDp0BrxLPY4vurYcCY R9fLrsgZ8nr2LS00JNP0ysdwzE4XUHbwfGYQ2QvmIc6xbRGSPOVX+6ITfuuBh7HvzLlmgQKgC cdT5rtCP7WmeJPUj+mR3JfFmyOHoG70Rm3UVq+sqRdYpu6kNOTx+5l5l7L/vpD5e1XL1mGy3j DfN65R5hHvjNnZAqA9zjjPQt5RggCIle2DyfaLsQQp6jRsxN4a2UuSXQAHrYdvJcsq6uEAlpi dMW8arw1WkR9KDWAjft3xR3dFq6cBq/u7Q/ywOY8rspDZIYeHA= X-Spam-Score: -3.0 (---) X-Debbugs-Envelope-To: 27243 Cc: 27243@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.0 (---) [Altered Subject to attract more attention] On Sat, 22 Jul 2017 17:28:59 +0200 Antoine Levitt wrote: > Sorry to be the bearer of bad news, but still not completely fixed ;-) >>>From emacs -Q, (setq dired-auto-revert-buffer t), C-x C-f RET, C-x b > RET, C-x C-f RET, and point jumps. This is exactly the same probem as the last one with dired and the same change -- using pop-to-buffer-same-window instead of switch-to-buffer in find-file -- fixes it. Since the dired change exposed a problematic dependency on switch-to-buffer in todo-mode.el (since fixed), if there are other packages that have a similar dependency, making the same change in find-file runs the risk of changing behavior in these packages. But like with todo-mode.el, presumably it would be better to expose and eliminate such a dependency than to leave it as a possibly ticking time-bomb. So should we go ahead and make this change to find-file? (I wonder if there are more such cases waiting in the wings...) Steve Berman From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 22 18:49:09 2017 Received: (at 27243) by debbugs.gnu.org; 22 Jul 2017 22:49:09 +0000 Received: from localhost ([127.0.0.1]:52691 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dZ3Cv-0006Yq-5w for submit@debbugs.gnu.org; Sat, 22 Jul 2017 18:49:09 -0400 Received: from mout.gmx.net ([212.227.15.15]:51078) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dZ3Ct-0006YU-FN for 27243@debbugs.gnu.org; Sat, 22 Jul 2017 18:49:08 -0400 Received: from rosalinde ([83.135.22.79]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MYg42-1d3eHu3ir4-00VS79; Sun, 23 Jul 2017 00:49:01 +0200 From: Stephen Berman To: Glenn Morris Subject: Re: bug#27243: closed (Re: bug#27243: dired-auto-revert-buffer jumps point to beginning of buffer) References: <83d1ac6yih.fsf@gnu.org> <87shjf48se.fsf@epsilon> <87r2yizu66.fsf@beta> <87bmpm20zt.fsf@rosalinde> <87zicd1pfy.fsf@beta> <87379vwh7d.fsf@rosalinde> <87o9scv6bo.fsf@beta> Date: Sun, 23 Jul 2017 00:48:59 +0200 In-Reply-To: (Glenn Morris's message of "Sat, 22 Jul 2017 12:55:41 -0400") Message-ID: <87inikqe90.fsf@rosalinde> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:rh/LAKADrp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uT7F7tdcf OTK97XFQ7kQXSSkWMvYTg2nlOC7MwONlQaDpS+VMzBdzS7kXEM= X-Spam-Score: -3.0 (---) X-Debbugs-Envelope-To: 27243 Cc: 27243@debbugs.gnu.org, Antoine Levitt X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.0 (---) On Sat, 22 Jul 2017 12:55:41 -0400 Glenn Morris wrote: > Also, the test dired-test-bug27243 fails intermittently. > Eg http://hydra.nixos.org/build/56755248 > http://hydra.nixos.org/build/56731329 > > It switches between passing and failing for no clear reason. Hm, I didn't get a failure when testing this test. It's too bad the hydra log doesn't pinpoint where the failure occurs. Could it be that the noninteractive use of switch-to-buffer in the test (going proxy for `C-x b' in the bug recipe) can sometimes mess with point in the test environment? Steve Berman From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 23 10:43:29 2017 Received: (at 27243) by debbugs.gnu.org; 23 Jul 2017 14:43:29 +0000 Received: from localhost ([127.0.0.1]:53561 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dZI6T-0005QF-I9 for submit@debbugs.gnu.org; Sun, 23 Jul 2017 10:43:29 -0400 Received: from eggs.gnu.org ([208.118.235.92]:47961) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dZI6R-0005Q3-QR for 27243@debbugs.gnu.org; Sun, 23 Jul 2017 10:43:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dZI6J-0008EX-Dd for 27243@debbugs.gnu.org; Sun, 23 Jul 2017 10:43:22 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57770) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dZI6J-0008EJ-AA; Sun, 23 Jul 2017 10:43:19 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1849 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dZI6I-0004pe-Jh; Sun, 23 Jul 2017 10:43:19 -0400 Date: Sun, 23 Jul 2017 17:43:15 +0300 Message-Id: <83h8y38b98.fsf@gnu.org> From: Eli Zaretskii To: Stephen Berman , martin rudalics In-reply-to: <87k230qea5.fsf_-_@rosalinde> (message from Stephen Berman on Sun, 23 Jul 2017 00:48:18 +0200) Subject: Re: bug#27243: another case: dired-auto-revert-buffer jumps point to beginning of buffer 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> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -7.8 (-------) X-Debbugs-Envelope-To: 27243 Cc: 27243@debbugs.gnu.org, antoine.levitt@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -7.8 (-------) > From: Stephen Berman > Date: Sun, 23 Jul 2017 00:48:18 +0200 > Cc: 27243@debbugs.gnu.org > > This is exactly the same probem as the last one with dired and the same > change -- using pop-to-buffer-same-window instead of switch-to-buffer in > find-file -- fixes it. Since the dired change exposed a problematic > dependency on switch-to-buffer in todo-mode.el (since fixed), if there > are other packages that have a similar dependency, making the same > change in find-file runs the risk of changing behavior in these > packages. But like with todo-mode.el, presumably it would be better to > expose and eliminate such a dependency than to leave it as a possibly > ticking time-bomb. So should we go ahead and make this change to > find-file? (I wonder if there are more such cases waiting in the > wings...) Martin, when might pop-to-buffer-same-window show the buffer in a window other than the selected one? If we are going to make this change, we need first to understand when it might misfire, because some users of find-file might not like the situation where the buffer pops up in another window. E.g., what happens in this particular use case if the Dire4d buffer pops in another window? From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 23 14:41:08 2017 Received: (at 27243) by debbugs.gnu.org; 23 Jul 2017 18:41:08 +0000 Received: from localhost ([127.0.0.1]:53627 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dZLoS-0002Vd-6r for submit@debbugs.gnu.org; Sun, 23 Jul 2017 14:41:08 -0400 Received: from mout.gmx.net ([212.227.15.19]:49307) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dZLoQ-0002V2-EV for 27243@debbugs.gnu.org; Sun, 23 Jul 2017 14:41:07 -0400 Received: from [192.168.1.100] ([46.125.250.105]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MSuMn-1d81Fe0CLV-00RuRa; Sun, 23 Jul 2017 20:40:59 +0200 Message-ID: <5974EDB5.7080608@gmx.at> Date: Sun, 23 Jul 2017 20:40:53 +0200 From: martin rudalics MIME-Version: 1.0 To: Eli Zaretskii , Stephen Berman Subject: Re: bug#27243: another case: dired-auto-revert-buffer jumps point to beginning of buffer 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> In-Reply-To: <83h8y38b98.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K0:mEbgiYssMF7wVND1odt/uHm0YIkE3xk8D2xWa2CEHmkdUa55IRB XPxYFuy+PPSrkkQWp0iUFeBMDDkHueZRWvEPN7ZwediEkXWiGyi/Y+fZ4vb2mqO22yHcDWO rJKILUNTIn9nHEpqh2GqoI+SrZkgtELIxeu2kWqVfKLUa6noTuGf/E59LTtudmHv3LB2qSs +vNj2exvFqq3oyf08R88A== X-UI-Out-Filterresults: notjunk:1;V01:K0:9xqm29dp+nc=:j1H8Iihd+aVAwB9b2Pp5RL c9FRLJ8GP3X8q8m1rJ/nqmwEMWJ5G3bP0dm8DLHJzFCzE5VJ26vnW339BVzyb7dlFLYZKg4Kx 5zzPgKJv2Uk1dd1r4A8enQrBGdBhNstZ4w2GPuxcz/F3hg3IQcv+syyAohuEK5/kc/pnYziR7 HjH9Yh8z0aqxwu2TRbFhgy9DXmnocqyhYCYyzQn1Nr8+NNKp/nrMU13py4IvvjAgDA1Uq60u4 zHQLVWsQWbeHe3apnVMXSkoFqGM0smjZnzgsqVP19KmZ6EJx9NumGB65DeBAbZDX1DDuaWwT2 ZEtV9tvILznENPHJLETRB3XlcuN5Vz14hrtdOwwhxI541OILgAPUJX1y4ebErOqUiC4eVPKIC ZqjAOzFoeYxAEMtlXRoB3bin7vGczQ2ln6Ryq28MFg1AiLaQTN7n7+afyIB3hO7ztwyN9iOro RCGqEFdJqI7bn13aZOHRo+FQFlJ/AGp3RBZorhbvaD9Qpuc4M1aD7k1Xdnk2oYPkAWfQIoiP+ vmYnn8Vfz9rRfDeCvXcnJasEioLGtwIFfMjjlwdXS+7RpNqMDRRtOz8mNzFc2V8A41NjczDit 1Rz4xgGwoTVi/XyW998JszdKe69Hzv47XMCRJxsVxoFCk8hmnC+ZPe+4Z8x1A8IrCib7Hun7z dYrxA6XqVOjE2K9mpC1uPlsfepNVvy2Ep51C5KG67tEP/EwlJzTZgKblWluigR4i6Hh2Yhlee 2Ikq5fwo1wGSbO3M2ScjA2sr1dMQJt9u5WcuBfvEmqHKy4IcfwYEHZBamUzxoTO2EXki/0IBj Xtokme3St7wd+AgD0KbrgJw175QlkGgf4FDJgPau2JvWHS4nhxZhgjfjjiCygZE+YUbd0z0 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 27243 Cc: 27243@debbugs.gnu.org, antoine.levitt@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) > Martin, when might pop-to-buffer-same-window show the buffer in a > window other than the selected one? If we are going to make this > change, we need first to understand when it might misfire, because > some users of find-file might not like the situation where the buffer > pops up in another window. Conceptually both, =E2=80=98pop-to-buffer-same-window=E2=80=99 and =E2=80= =98switch-to-buffer=E2=80=99, behave alike in this regard: They avoid the minibuffer and windows strongly dedicated to their buffers. Interactively, =E2=80=98switch-to-b= uffer=E2=80=99 may show another buffer in a strongly dedicated window when the option =E2=80=98switch-to-buffer-in-dedicated-window=E2=80=99 is non-nil, but I = suppose the issues mentioned in this thread are not about the interactive use of =E2=80=98switch-to-buffer=E2=80=99. > 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 =E2=80=98switch-to-buffer=E2=80=99= and is now shown by =E2=80=98pop-to-buffer-same-window=E2=80=99, the behaviors shoul= d be the same. Quitting the dired window, however, may behave differently. martin From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 23 14:58:37 2017 Received: (at 27243) by debbugs.gnu.org; 23 Jul 2017 18:58:37 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 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 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 Date: Sun, 23 Jul 2017 21:58:02 +0300 Message-Id: <83a83v7zgl.fsf@gnu.org> From: Eli Zaretskii To: martin rudalics In-reply-to: <5974EDB5.7080608@gmx.at> (message from martin rudalics on Sun, 23 Jul 2017 20:40:53 +0200) Subject: Re: bug#27243: another case: dired-auto-revert-buffer jumps point to beginning of buffer 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> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -7.8 (-------) X-Debbugs-Envelope-To: 27243 Cc: 27243@debbugs.gnu.org, stephen.berman@gmx.net, antoine.levitt@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -7.8 (-------) > 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. From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 23 17:10:06 2017 Received: (at 27243) by debbugs.gnu.org; 23 Jul 2017 21:10:06 +0000 Received: from localhost ([127.0.0.1]:53666 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dZO8c-0005rh-9v for submit@debbugs.gnu.org; Sun, 23 Jul 2017 17:10:06 -0400 Received: from mout.gmx.net ([212.227.17.20]:62038) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dZO8a-0005r9-Q0 for 27243@debbugs.gnu.org; Sun, 23 Jul 2017 17:10:05 -0400 Received: from [192.168.1.102] ([46.125.249.72]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MDm4o-1dNs4o3l2U-00HB1o; Sun, 23 Jul 2017 23:09:57 +0200 Message-ID: <5975109E.3010209@gmx.at> Date: Sun, 23 Jul 2017 23:09:50 +0200 From: martin rudalics MIME-Version: 1.0 To: Eli Zaretskii Subject: Re: bug#27243: another case: dired-auto-revert-buffer jumps point to beginning of buffer 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> <83a83v7zgl.fsf@gnu.org> In-Reply-To: <83a83v7zgl.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K0:aeEX9fHqQTMwwzjKsz8+AR6w+riTi3dZGNdZcl615WPQ8QMJxVJ VugeLLhMq2WINocseM+GnP3vfxrCAHNb9GKMbagfCF8OGDk+FJ5X1eeEV+RQ9vwvmp9ZlMr /KFYGGOPla4RI4hasKwFEBefpNGjEcaJ0SHDKfttf4JexDm8vv1tsEbGnIaT7Uok5jRzEu2 Y9nwlqeniqzcbYMuLiZ1Q== X-UI-Out-Filterresults: notjunk:1;V01:K0:9JO43TKcGfc=:+wd7D2bXirQgip64jwrJkY zpjnrq0h93xgz+/u5eIeGb74XJqhcKfPo40nh/gR6TDyXQR+8xPzquSniahaq7vXMKCIZnHz3 m7cdeacEMZhjWKnpKY0A/GAIWTigTJbTDCDMh1o4abLA0N0tDao48wyU0eaGc0P9OFASdY6qh eHo58+Ij3skMJxjdguWFW8mJBT+gunpp34wAxdZcy1aSoB73BSDlXh2ft4Bnn5tRefpmjeiFT 6mWVLuRzSafc17mToPlBETmWXiRJRlADA3oPQFZ5q/IsiHig7dv2eoyfmU13AknB3+pRfjF9k fzBwdRLalW/TF3U7fbhuvTBaRuU/eJ6p3OQrrnjyuViMr20ZMkNd9jXIpDAWkM1kUjK36UH2A KkOkJiOPpZx4UySHmlxB6J7EBQfcjTz2CR5Qf+F21Ykzc6XSV2ZEBkqRHbXYr5s9zf+R2B3Wn 7EwMEZUC+2k/zXYrEhvXN030GKiRApgLds0FysnEobdO10oMHt7lAXN41GditmC1G8k57/rPK RtxeQyo/ciiIpAKcc4i0Ub+kF3xJ4/J2QIhVBX9SrWmtW+O+FbLA9zigj4d5qdFVDhxNXSqlY 0LwqtryOWHVJtvI8tk/ZtxbrsYhDN0ue2uRmHjkyeEBLExhOVUveuO9VKXI9R46Ez/jUmtnzh 2RF2C9ZcZasX447fzFtPt521G5iSL/BjB8kepHb6zi9xio8QvHH34OKgYRPDy/2R9YiDsLX+H /D4x0r1RLSK6mmLkJ/fYj/nhoPpQWLJb1dtSBJMIEf1BpunNVWH9rOQHwL7HWcHMeYB/Gv9Na +y5ualUv6d9KNskwr8rAzi2Xohx5opTM6zWhONAa4D+tTDu36o= X-Spam-Score: -3.5 (---) X-Debbugs-Envelope-To: 27243 Cc: 27243@debbugs.gnu.org, stephen.berman@gmx.net, antoine.levitt@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.5 (---) > I don't think I'm bothered by quitting. The different quitting behavior was what made the test case fail so I mentioned it. > 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? Yes. Anything else would be an inconsistency we would have to fix. > If so, we can indeed modify find-file to use > pop-to-buffer-same-window. Modulo the fact that Stefan always wanted and probably still wants to get rid of functions like =E2=80=98find-file-other-window=E2=80=99 and =E2=80=98find-file-other-frame=E2=80=99 and move their functionality to =E2= =80=98find-file=E2=80=99 and I still don't know how to do that and probably never will. martin From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 28 04:50:01 2017 Received: (at 27243) by debbugs.gnu.org; 28 Jul 2017 08:50:01 +0000 Received: from localhost ([127.0.0.1]:59178 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1db0y8-0005IC-Vy for submit@debbugs.gnu.org; Fri, 28 Jul 2017 04:50:01 -0400 Received: from mout.gmx.net ([212.227.15.19]:60626) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1db0y6-0005Hz-Ic for 27243@debbugs.gnu.org; Fri, 28 Jul 2017 04:50:00 -0400 Received: from rosalinde ([83.135.17.177]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MPUlV-1dWsEl4C8H-004m8v; Fri, 28 Jul 2017 10:49:47 +0200 From: Stephen Berman To: martin rudalics Subject: Re: bug#27243: another case: dired-auto-revert-buffer jumps point to beginning of buffer 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> <83a83v7zgl.fsf@gnu.org> <5975109E.3010209@gmx.at> Date: Fri, 28 Jul 2017 10:49:44 +0200 In-Reply-To: <5975109E.3010209@gmx.at> (martin rudalics's message of "Sun, 23 Jul 2017 23:09:50 +0200") Message-ID: <8760ed7xp3.fsf@rosalinde> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K0:mMPDqnSa8AgfQlfwAEPZ1uZuSn2zJcwFI+71alcQnboDCRRBqta S20E5H4VGA/l/d6ciSQj7BvEwiDpnSbru8oaga0MJmbtbFGtPAGwsUucwn4qoCg+yki4osE UPC//HVf9NFoHx2lX89SYJ4DUSXrEvKExrxB5uWD6BneN+WqjJrViZHpIUbRhqG3+lWJ/PY EK/8MmOjxfHUeHeTf9gpQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:XHpKWloAvNM=:k+dFSpA+h0GaZzLiSETyWj Gkr4P4iw8m0zjANyNN7dUnyMpFlZ8SKFAm+z6CL5Dk2+BMvvcTfoGvQZxBLrtAJTULZAah5e5 xN44PHaAlF7g7H+81hv573XQu0LimGDnmLL+0FxxTd6TtmmLuUshyOMCh0ebk9Pc3jx8dFKB1 WT566i1z5hcX866vOVrXIWZmAm5QGZJsSMCmPWxOkWND3t9BVyMhXOy+99yyHhkDp7cjiOY+E mqTHUUlwt+OIXQoJv5DjQnQXhzJNN05ChqPjV3DkOfmsfZeiwPWnHf7FdDOQ4zD9u1Lq9ZdfA 1yGp2XStJD42h4j+crG99Ou2RjRH/Rlub4m9FgRDe9M17W1hYPrrolLEKmJcXEamODunc/XpP 4WJo7cSwQl/c7BjF7O8boxu52nMNSEF7PCAEkytnygN+EwJL9NSeWt5bZJdSP8iMerxu9elPg AO/GKfE2wnqkLy2bLFdFCRC6wZ+hm936T24rySf8xWc6XiZyWUE7/GqL9N4FsP9TEwmwpEXm7 1v3MzHAoQcSMdRp2ff7/9FExZehWWEMvQ4DwRclrTk5a+fm79qJOy1QubpZO1a30LN4Yw2qvu I3jd4+JKTykDH/aLVCex+71s/e0+TygrzJQwIjzn5ExghHxxhAqhi/vJ9MvAux14KnolL2fXF +BAORZHD+HPjHeJwAfWw05TtKubURdlgpnheHoLZl64SC9LuHaMNV3/AQzKJ+BxYrW/ZH0lQd kzxQNZ//OOmBR3CCJbrShcnqvLknJUbHdQnO6httAocx8+iVBAR39lHpcjrxv3Ue/Zy1/kQtf X/YjiaRcquLY/RUTTXPWTfhU0wlWybGLGj1Is0RBhEU7CxBUP4= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 27243 Cc: 27243@debbugs.gnu.org, Eli Zaretskii , Stefan Monnier , antoine.levitt@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On Sun, 23 Jul 2017 23:09:50 +0200 martin rudalics wrote: >> I don't think I'm bothered by quitting. > > The different quitting behavior was what made the test case fail so I > mentioned it. > >> 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? > > Yes. Anything else would be an inconsistency we would have to fix. > >> If so, we can indeed modify find-file to use >> pop-to-buffer-same-window. > > Modulo the fact that Stefan always wanted and probably still wants to > get rid of functions like =E2=80=98find-file-other-window=E2=80=99 and > =E2=80=98find-file-other-frame=E2=80=99 and move their functionality to = =E2=80=98find-file=E2=80=99 and > I still don't know how to do that and probably never will. Are we waiting for feedback from Stefan (cc'd just in case)? Or should I go ahead and push the fix? Steve Berman From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 28 05:28:30 2017 Received: (at 27243) by debbugs.gnu.org; 28 Jul 2017 09:28:30 +0000 Received: from localhost ([127.0.0.1]:59209 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1db1ZO-0006B6-E3 for submit@debbugs.gnu.org; Fri, 28 Jul 2017 05:28:30 -0400 Received: from eggs.gnu.org ([208.118.235.92]:46423) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1db1ZN-0006At-9q for 27243@debbugs.gnu.org; Fri, 28 Jul 2017 05:28:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1db1ZE-00035N-0Z for 27243@debbugs.gnu.org; Fri, 28 Jul 2017 05:28:24 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44572) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1db1ZD-00035J-Sr; Fri, 28 Jul 2017 05:28:19 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3102 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1db1ZD-0008Mu-0h; Fri, 28 Jul 2017 05:28:19 -0400 Date: Fri, 28 Jul 2017 12:28:05 +0300 Message-Id: <83eft052sa.fsf@gnu.org> From: Eli Zaretskii To: Stephen Berman In-reply-to: <8760ed7xp3.fsf@rosalinde> (message from Stephen Berman on Fri, 28 Jul 2017 10:49:44 +0200) Subject: Re: bug#27243: another case: dired-auto-revert-buffer jumps point to beginning of buffer 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> <83a83v7zgl.fsf@gnu.org> <5975109E.3010209@gmx.at> <8760ed7xp3.fsf@rosalinde> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 27243 Cc: rudalics@gmx.at, 27243@debbugs.gnu.org, monnier@iro.umontreal.ca, antoine.levitt@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Stephen Berman > Cc: Stefan Monnier , Eli Zaretskii , antoine.levitt@gmail.com, 27243@debbugs.gnu.org > Date: Fri, 28 Jul 2017 10:49:44 +0200 > > >> 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? > > > > Yes. Anything else would be an inconsistency we would have to fix. > > > >> If so, we can indeed modify find-file to use > >> pop-to-buffer-same-window. > > > > Modulo the fact that Stefan always wanted and probably still wants to > > get rid of functions like ‘find-file-other-window’ and > > ‘find-file-other-frame’ and move their functionality to ‘find-file’ and > > I still don't know how to do that and probably never will. > > Are we waiting for feedback from Stefan (cc'd just in case)? Or should > I go ahead and push the fix? Unless Martin objects, I think you should push it. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 28 08:22:52 2017 Received: (at 27243) by debbugs.gnu.org; 28 Jul 2017 12:22:52 +0000 Received: from localhost ([127.0.0.1]:59307 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1db4I8-0003by-Ai for submit@debbugs.gnu.org; Fri, 28 Jul 2017 08:22:52 -0400 Received: from mout.gmx.net ([212.227.15.18]:51123) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1db4I6-0003bk-A5 for 27243@debbugs.gnu.org; Fri, 28 Jul 2017 08:22:50 -0400 Received: from [192.168.1.100] ([46.125.250.39]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0M0gcI-1drDE01538-00uqyA; Fri, 28 Jul 2017 14:22:38 +0200 Message-ID: <597B2C8A.9080805@gmx.at> Date: Fri, 28 Jul 2017 14:22:34 +0200 From: martin rudalics MIME-Version: 1.0 To: Stephen Berman Subject: Re: bug#27243: another case: dired-auto-revert-buffer jumps point to beginning of buffer 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> <83a83v7zgl.fsf@gnu.org> <5975109E.3010209@gmx.at> <8760ed7xp3.fsf@rosalinde> In-Reply-To: <8760ed7xp3.fsf@rosalinde> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:zAjAtvLUO4uomdD3vSXAWfOj2XP2sxNYwfJVlRlE2Bz1twoP1Sz TLUoDV2vHmmECRMvepQCyYdxwCzTjDIgIaq47eSz3+tl0eDPug6WS4fJv7n4xFKwF2e9ToX a3eSk7kN5nciVhYj7CQrsQJZbxOoFS8xCkDizms/OnlTw7pjOFQszrWChvWTC1/UM6/9pHp iJoCn6ptomF6kFBPAAm7Q== X-UI-Out-Filterresults: notjunk:1;V01:K0:i4PrtJQhaVE=:Ig/a8wD1lbLBBg68fMejts CAooyupZb8MgG5rxDMQEAEIamDLhAkOaM/H2YF6TrJwPTh2+vOprSBFRHWAugJFiULNvUJnj/ CQZZuWiBS2pmXtSk6dvOWQfjDVk+cG+L+83lp3idO1fJ7OuBiV7PiHBu5TBT7xfUWbUKE2YD6 8qpu0YsXKMrL2A3ysDtk5dKqQ5PeEuGhh4+JRPklPP2RLOxjtGTJ8HOkRM6dtweBulta8O0HK QiZrlsue7tpFvcvUXAP4yTn99MryneeV3HdxPp63wXYZtx9xLH2i7yki5fXVZ7QqWjAX3VMgf XhQhLSGeuB1Tsh6yp2AykkdgCT90nQN3IYx0OwHClBYqEm+/JHmWixL9wpt5ckJuaGHEycJ7P hCrRGBaNqpnoXqgeg1KTvYpMJYQCV0s82O6bvnMzUwpYwB0x4Q5LuKVisfIgXbAt9k9GKGp7X xXTRBsaYdNGwMf3DgW3uudl4o4w61fIqmTWRQ7Z/VZb3EuDIlJzdr7ZhsRk+MCpBtw1MU+X/T e5UxGpyVBOtmfedE0rdpvtZA0opQUJOqdJkAoHk09ACN4+/aOQIg1NG4HQFngGnCTv1IozfbJ Qt0+OXG0/EoLVM3ZmQYryEDzoIVMuhQ3gGRyBk//SVRcTjHl+qNQkzLNBdXnVOR9SRVICSzHe fMj8/Suxb2FQqNvDnR/+avd9qcVnC8WxDL22HrTXRce1UP4gp6DPz/fPhwuEYNbayxN1aSsjL IcTK83vAdIA3+LCyt2ud17sMqzAFH+p9IwtWb+qoBf8SiNee+rIf5H8QLqw6hWbRuywKRi/S/ NZM3TaKue/c6QvrxJ7RqQnnsvmPGlQk/k3WgrUUGpXNvoYJp9VbUqlw1sR22b50JDJvp326 X-Spam-Score: -3.5 (---) X-Debbugs-Envelope-To: 27243 Cc: 27243@debbugs.gnu.org, Eli Zaretskii , Stefan Monnier , antoine.levitt@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.5 (---) > Are we waiting for feedback from Stefan (cc'd just in case)? Or should > I go ahead and push the fix? Go ahead and push it. martin From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 28 09:03:05 2017 Received: (at 27243) by debbugs.gnu.org; 28 Jul 2017 13:03:05 +0000 Received: from localhost ([127.0.0.1]:59324 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1db4v3-0004Ze-37 for submit@debbugs.gnu.org; Fri, 28 Jul 2017 09:03:05 -0400 Received: from pruche.dit.umontreal.ca ([132.204.246.22]:56465) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1db4v1-0004ZW-0i for 27243@debbugs.gnu.org; Fri, 28 Jul 2017 09:03:03 -0400 Received: from ceviche.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id v6SD2w1H012177; Fri, 28 Jul 2017 09:03:00 -0400 Received: by ceviche.home (Postfix, from userid 20848) id B61E366154; Fri, 28 Jul 2017 09:02:58 -0400 (EDT) From: Stefan Monnier To: Stephen Berman Subject: Re: bug#27243: another case: dired-auto-revert-buffer jumps point to beginning of buffer Message-ID: 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> <83a83v7zgl.fsf@gnu.org> <5975109E.3010209@gmx.at> <8760ed7xp3.fsf@rosalinde> Date: Fri, 28 Jul 2017 09:02:58 -0400 In-Reply-To: <8760ed7xp3.fsf@rosalinde> (Stephen Berman's message of "Fri, 28 Jul 2017 10:49:44 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 2 Rules triggered EDT_SA_DN_PASS=0, RV6081=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6081> : inlines <5998> : streams <1756135> : uri <2471519> X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 27243 Cc: martin rudalics , Eli Zaretskii , 27243@debbugs.gnu.org, antoine.levitt@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.3 (-) >>> 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? >> Yes. Anything else would be an inconsistency we would have to fix. Actually, when I do C-x C-f from a minibuffer-only frame it would be wrong to display the file in that (mini) window, so there are circumstances where it makes perfect sense for find-file to display the file in another window. Stefan From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 28 09:12:43 2017 Received: (at 27243) by debbugs.gnu.org; 28 Jul 2017 13:12:43 +0000 Received: from localhost ([127.0.0.1]:59334 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1db54N-0004nA-9D for submit@debbugs.gnu.org; Fri, 28 Jul 2017 09:12:43 -0400 Received: from eggs.gnu.org ([208.118.235.92]:53787) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1db54L-0004mv-1k for 27243@debbugs.gnu.org; Fri, 28 Jul 2017 09:12:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1db54F-0004Yd-4I for 27243@debbugs.gnu.org; Fri, 28 Jul 2017 09:12:35 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43060) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1db54F-0004YY-1d; Fri, 28 Jul 2017 09:12:35 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3462 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1db54C-0007yz-GU; Fri, 28 Jul 2017 09:12:34 -0400 Date: Fri, 28 Jul 2017 16:12:12 +0300 Message-Id: <838tj84ser.fsf@gnu.org> From: Eli Zaretskii To: Stefan Monnier In-reply-to: (message from Stefan Monnier on Fri, 28 Jul 2017 09:02:58 -0400) Subject: Re: bug#27243: another case: dired-auto-revert-buffer jumps point to beginning of buffer 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> <83a83v7zgl.fsf@gnu.org> <5975109E.3010209@gmx.at> <8760ed7xp3.fsf@rosalinde> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 27243 Cc: rudalics@gmx.at, stephen.berman@gmx.net, 27243@debbugs.gnu.org, antoine.levitt@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Stefan Monnier > Cc: martin rudalics , Eli Zaretskii , > antoine.levitt@gmail.com, 27243@debbugs.gnu.org > Date: Fri, 28 Jul 2017 09:02:58 -0400 > > >>> 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? > >> Yes. Anything else would be an inconsistency we would have to fix. > > Actually, when I do C-x C-f from a minibuffer-only frame it would be > wrong to display the file in that (mini) window, so there are > circumstances where it makes perfect sense for find-file to display the > file in another window. Doesn't this already happen, and will continue happening after the proposed change? From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 28 09:16:07 2017 Received: (at 27243) by debbugs.gnu.org; 28 Jul 2017 13:16:07 +0000 Received: from localhost ([127.0.0.1]:59340 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1db57e-0004sh-R8 for submit@debbugs.gnu.org; Fri, 28 Jul 2017 09:16:06 -0400 Received: from chene.dit.umontreal.ca ([132.204.246.20]:50864) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1db57c-0004sZ-Sj for 27243@debbugs.gnu.org; Fri, 28 Jul 2017 09:16:05 -0400 Received: from ceviche.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id v6SDG1HO027090; Fri, 28 Jul 2017 09:16:02 -0400 Received: by ceviche.home (Postfix, from userid 20848) id C22E566154; Fri, 28 Jul 2017 09:16:00 -0400 (EDT) From: Stefan Monnier To: Eli Zaretskii Subject: Re: bug#27243: another case: dired-auto-revert-buffer jumps point to beginning of buffer Message-ID: 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> <83a83v7zgl.fsf@gnu.org> <5975109E.3010209@gmx.at> <8760ed7xp3.fsf@rosalinde> <838tj84ser.fsf@gnu.org> Date: Fri, 28 Jul 2017 09:16:00 -0400 In-Reply-To: <838tj84ser.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 28 Jul 2017 16:12:12 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 2 Rules triggered EDT_SA_DN_PASS=0, RV6082=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6082> : inlines <5998> : streams <1756136> : uri <2471525> X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 27243 Cc: rudalics@gmx.at, stephen.berman@gmx.net, 27243@debbugs.gnu.org, antoine.levitt@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.3 (-) > Doesn't this already happen, and will continue happening after the > proposed change? Yes. I was just pointing out that it's not quite true that "anything else would be an inconsistency". Stefan From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 28 09:42:00 2017 Received: (at 27243) by debbugs.gnu.org; 28 Jul 2017 13:42:00 +0000 Received: from localhost ([127.0.0.1]:59350 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1db5Wi-0005SW-0Q for submit@debbugs.gnu.org; Fri, 28 Jul 2017 09:42:00 -0400 Received: from eggs.gnu.org ([208.118.235.92]:44583) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1db5Wg-0005SK-Ks for 27243@debbugs.gnu.org; Fri, 28 Jul 2017 09:41:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1db5WY-00065G-HX for 27243@debbugs.gnu.org; Fri, 28 Jul 2017 09:41:53 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45246) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1db5WY-000659-Da; Fri, 28 Jul 2017 09:41:50 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3471 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1db5WX-0004QB-Jb; Fri, 28 Jul 2017 09:41:50 -0400 Date: Fri, 28 Jul 2017 16:41:32 +0300 Message-Id: <837eys4r1v.fsf@gnu.org> From: Eli Zaretskii To: Stefan Monnier In-reply-to: (message from Stefan Monnier on Fri, 28 Jul 2017 09:16:00 -0400) Subject: Re: bug#27243: another case: dired-auto-revert-buffer jumps point to beginning of buffer 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> <83a83v7zgl.fsf@gnu.org> <5975109E.3010209@gmx.at> <8760ed7xp3.fsf@rosalinde> <838tj84ser.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 27243 Cc: rudalics@gmx.at, stephen.berman@gmx.net, 27243@debbugs.gnu.org, antoine.levitt@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Stefan Monnier > Cc: stephen.berman@gmx.net, rudalics@gmx.at, antoine.levitt@gmail.com, > 27243@debbugs.gnu.org > Date: Fri, 28 Jul 2017 09:16:00 -0400 > > > Doesn't this already happen, and will continue happening after the > > proposed change? > > Yes. > > I was just pointing out that it's not quite true that "anything else > would be an inconsistency". AFAIU, Martin was answering my question: > Are you saying this isn't more likely to happen than with > switch-to-buffer itself? IOW, the inconsistency would happen if the current behavior would change when switch-to-buffer is replaced with pop-to-buffer-same-window, not if find-file displayed in another window. From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 28 10:15:08 2017 Received: (at 27243) by debbugs.gnu.org; 28 Jul 2017 14:15:08 +0000 Received: from localhost ([127.0.0.1]:60161 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1db62l-0006Pr-P3 for submit@debbugs.gnu.org; Fri, 28 Jul 2017 10:15:07 -0400 Received: from mout.gmx.net ([212.227.17.20]:56582) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1db62j-0006P5-Gs for 27243@debbugs.gnu.org; Fri, 28 Jul 2017 10:15:06 -0400 Received: from [192.168.1.100] ([46.125.250.39]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LtJ5T-1dgyso20Sp-012lPq; Fri, 28 Jul 2017 16:14:53 +0200 Message-ID: <597B46DA.5040305@gmx.at> Date: Fri, 28 Jul 2017 16:14:50 +0200 From: martin rudalics MIME-Version: 1.0 To: Stefan Monnier , Eli Zaretskii Subject: Re: bug#27243: another case: dired-auto-revert-buffer jumps point to beginning of buffer 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> <83a83v7zgl.fsf@gnu.org> <5975109E.3010209@gmx.at> <8760ed7xp3.fsf@rosalinde> <838tj84ser.fsf@gnu.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:VnN2eb9CALkCAaBRDqUgJDvYqB4mBOcKL54Cc7EaMlFMtJZUogU 5ywc2JgvFOlznfvfzLHqsmjgJT5po+P8yOEncfTDbhulSoU8ELCfB9avjHTVEVFZPUdjfnF mO2eZ9078fCwcQqWesf+Z8YVkhDW7BgZh0ixe3WzZJh6qyS8BnfKv1FtkoNiyr62Wq4iIoy jPzjW6Sylz43OXWlufrDA== X-UI-Out-Filterresults: notjunk:1;V01:K0:UsQAOT16Pgg=:VYm03YYa5VMjQHPT+sKbW3 vBrftBrEz0ZDV2LNtGp8NVJEHEZAjjKnuvauttmaugGz2VgVZtskrBp9MkfLvi/0LU51OrhLd mSZfI58/ii1Rb8jy2IWwJKeIBJLV8E9i1cN94vSjxGWncT4g/SX7Yq2iIv/xQhnZh1uvQ5btq q2xDHE3h7Yj9pewsD2VboK4qpLDLydDJENRdVJkeRMMqT+DqVPYZLrFuitCtW/AcPmX/a46Jn l/KWrGQ+QrKUktDpCpmmBBQluxzmgZq1mqwRrq+xmQhztnfwNlS5UnpYRU4u5aRD9AQsdWJof gi6AHG8g6K/IemNldoecnJm0wdJHBfTaP8Rdwwv2VwD1xyX5dqkeUV/OthGjJbGNf2rijGtRq S6s/GHFqJwpvsCkIkk7S+VbWay3Eyqc/IEj3VvfXDPy0b512R61poMq9LAS7F1ouMAXYf4DGp uc/uXHg2MUVJfplDC7NBRmz7NnKNnxZA6XjoFnBIlnzkaSQsVM8fiA27Q4Z3/86DKWsZVMxAk xZBiCx2qsqZEZfupCE0+rBjxd/eG7pMmJUOwbCctTYwkludOIah+zDUE5hM22Kx9v9IcezZMV v5UvMZgU/0s7RXKY+W0DcPGdbwVRzOLN10i4DtVkGN7ellBeTRiPwqTItquC7XBtPscswvQ/4 j1h0ljaJkXFyNoN+AhSM69+W30DQXbfBv9jV8a5JK3OkVUh9Zo9sjofOLvqe31QC5HLfn+fnl z+6tD+yBzNs6lHPEKpFQhmMSjI1lKguoCibylKBRubOWY2Cc5hVA5mhLKZGPCNp+1jHGULTKw 2zg2ulbAd3v/kSArgop0drsqZEE5LRWWmUiyOcm9W+jIXvjuHL4ac1HNcy0rGugnj4dY9o/ X-Spam-Score: -3.0 (---) X-Debbugs-Envelope-To: 27243 Cc: 27243@debbugs.gnu.org, stephen.berman@gmx.net, antoine.levitt@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.0 (---) >> Doesn't this already happen, and will continue happening after the >> proposed change? > > Yes. Here it doesn't already happen and will not continue happening after the proposed change. > I was just pointing out that it's not quite true that "anything else > would be an inconsistency". It's quite true here. martin From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 28 10:45:43 2017 Received: (at 27243) by debbugs.gnu.org; 28 Jul 2017 14:45:43 +0000 Received: from localhost ([127.0.0.1]:60184 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1db6WN-00079J-Hk for submit@debbugs.gnu.org; Fri, 28 Jul 2017 10:45:43 -0400 Received: from eggs.gnu.org ([208.118.235.92]:54097) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1db6WM-000797-F4 for 27243@debbugs.gnu.org; Fri, 28 Jul 2017 10:45:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1db6WD-0007tS-Hs for 27243@debbugs.gnu.org; Fri, 28 Jul 2017 10:45:37 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:49726) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1db6WD-0007tA-FP; Fri, 28 Jul 2017 10:45:33 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3551 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1db6WA-00078z-Mb; Fri, 28 Jul 2017 10:45:33 -0400 Date: Fri, 28 Jul 2017 17:45:01 +0300 Message-Id: <8360ec4o42.fsf@gnu.org> From: Eli Zaretskii To: martin rudalics In-reply-to: <597B46DA.5040305@gmx.at> (message from martin rudalics on Fri, 28 Jul 2017 16:14:50 +0200) Subject: Re: bug#27243: another case: dired-auto-revert-buffer jumps point to beginning of buffer 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> <83a83v7zgl.fsf@gnu.org> <5975109E.3010209@gmx.at> <8760ed7xp3.fsf@rosalinde> <838tj84ser.fsf@gnu.org> <597B46DA.5040305@gmx.at> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 27243 Cc: 27243@debbugs.gnu.org, stephen.berman@gmx.net, monnier@IRO.UMontreal.CA, antoine.levitt@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Fri, 28 Jul 2017 16:14:50 +0200 > From: martin rudalics > CC: stephen.berman@gmx.net, antoine.levitt@gmail.com, > 27243@debbugs.gnu.org > > >> Doesn't this already happen, and will continue happening after the > >> proposed change? > > > > Yes. > > Here it doesn't already happen and will not continue happening > after the proposed change. As long as the current behavior doesn't change, it's fine with me. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 28 10:55:10 2017 Received: (at 27243) by debbugs.gnu.org; 28 Jul 2017 14:55:10 +0000 Received: from localhost ([127.0.0.1]:60189 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1db6fW-0007Mu-GX for submit@debbugs.gnu.org; Fri, 28 Jul 2017 10:55:10 -0400 Received: from mout.gmx.net ([212.227.15.19]:56709) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1db6fT-0007Mc-Sn for 27243@debbugs.gnu.org; Fri, 28 Jul 2017 10:55:08 -0400 Received: from rosalinde ([83.135.17.177]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MSuMn-1dBVKE1vhV-00Rtzx; Fri, 28 Jul 2017 16:54:55 +0200 From: Stephen Berman To: Eli Zaretskii Subject: Re: bug#27243: another case: dired-auto-revert-buffer jumps point to beginning of buffer 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> <83a83v7zgl.fsf@gnu.org> <5975109E.3010209@gmx.at> <8760ed7xp3.fsf@rosalinde> <838tj84ser.fsf@gnu.org> <597B46DA.5040305@gmx.at> <8360ec4o42.fsf@gnu.org> Date: Fri, 28 Jul 2017 16:54:53 +0200 In-Reply-To: <8360ec4o42.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 28 Jul 2017 17:45:01 +0300") Message-ID: <87mv7oharm.fsf@rosalinde> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:/Dj8UN7KH9T3bMItmIq+gMwiVcTpofAu3ofTTxx7QGleiatRr+e ZjQYv17Ti5uOT4+kudm4l29zLACTC/G2ZxSyruljiji19b7ImJqOBI479s4WQycVtg4XyCK O97/F/U94fDb8r+HE7OoSiMdbubSxL1Bt4Y5Bpcihe92Wf33wlpb8JAiF7cGAb791aJ6dkj uKVCeA71glJ/yA13ZDZWw== X-UI-Out-Filterresults: notjunk:1;V01:K0:hVjqGLnXeHo=:37VN1F66qOGxBUDb1Cys35 yLhPqtwSN153n2ct+WDNI/vRrg1glUCh5InRPkxTCFFOHjNG9tm/iF9vt69VSYIzAtuWSKfeC MaXiz12vwxjJkpDrGF7FGUDqVsrsw0TXLgOZRQ0qOYNrcF9F7ZMfsNM+FYKRurMDI8/c4Fqaa JGJSXiCpAMCf4lTHU/cv9BNHjbjbSfk17kco767i33ccqxU3CT5NEHyChfdbKlfZYQJvHMDJ0 YtqHxKXAKEDE8hyAy6/vvzeoneY/vtq2j98AudprxAsUtbBwjYi2swbaQdgKJapRLMm51TS/X p4+82qFTMF3KCsWzv233Xs5gkMVt54lbL95ZiWJRY10faXEaXdSOHVGhVTl29ZslA2P4F8byk PQYfacR3c6ZFLZmhEoleyKCDXoZEcAxkc7TQ2V5zeT1xVV7RPoX8EQxXFEGoNrOic+0HtCctU F9VnnuqWfasoV9BbM89blvEOI9zyAkmfOuCFTUlEAJsns0DDXqaj27/2XrgyTFwGIgDvMhWMH JLAhtvCBZe8AYqUQ0gPKL9MLQE2PElNy+FuJal/TvEjUqF9JrElfPpxdHkC85lWR9L3sWTVWd DpYkOE/JJHS98M9OwSi9Vuzn+D/NKvoVpS7vk94x8CPQ9lCoHiaxuCDKmIYO208rkYJ//6xMT iSF03VSNJKH/a9Wr94GDproYE2LNjRblF2HbBuXvJStu79NdDl3zRttAEUre5iIfz5VI2QGFZ g1nyrrEX9LhujYB6dJpJJuoxv+bxeHHjtzRhojRBDzzj5NP67xuiY6j+QEAvdpRHb+6KIaT7p Fz5HgFWEJgNZwAU9ivalcpTNfHNT5+VZprNqPUtt1b9Y51fIC8= X-Spam-Score: 0.8 (/) X-Debbugs-Envelope-To: 27243 Cc: martin rudalics , 27243@debbugs.gnu.org, monnier@IRO.UMontreal.CA, antoine.levitt@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.2 (/) On Fri, 28 Jul 2017 17:45:01 +0300 Eli Zaretskii wrote: >> Date: Fri, 28 Jul 2017 16:14:50 +0200 >> From: martin rudalics >> CC: stephen.berman@gmx.net, antoine.levitt@gmail.com, >> 27243@debbugs.gnu.org >> >> >> Doesn't this already happen, and will continue happening after the >> >> proposed change? >> > >> > Yes. >> >> Here it doesn't already happen and will not continue happening >> after the proposed change. > > As long as the current behavior doesn't change, it's fine with me. I agree with Martin, using a minibuffer-only setup doesn't change things: 1. emacs -Q --eval "(setq initial-frame-alist '((minibuffer . nil)))" ;; Now there's a minibufferless frame and a minibuffer-only frame. 2. M-: (setq dired-auto-revert-buffer t) 3. C-x C-f RET ; Now the default directory is shown with point on the ; first entry. 4. C-x b ; Back to *scratch*. 5. C-x C-f RET ; Now the default directory is shown with point at ; point-min. This is the bug. When switch-to-buffer in find-file is replaced by pop-to-buffer-same-window and the above recipe is repeated, after step 5 point has not moved to point-min but is still on the first entry as in step 3. So using pop-to-buffer-same-window works here. Or does Stefan have some other setup? Steve Berman From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 29 07:45:02 2017 Received: (at 27243) by debbugs.gnu.org; 29 Jul 2017 11:45:03 +0000 Received: from localhost ([127.0.0.1]:60683 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dbQB4-0006Rp-NL for submit@debbugs.gnu.org; Sat, 29 Jul 2017 07:45:02 -0400 Received: from mout.gmx.net ([212.227.15.15]:63033) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dbQB2-0006R2-PE for 27243@debbugs.gnu.org; Sat, 29 Jul 2017 07:45:01 -0400 Received: from rosalinde ([83.135.8.62]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MfVU3-1dDyJ50wA7-00P2FJ; Sat, 29 Jul 2017 13:44:44 +0200 From: Stephen Berman To: Eli Zaretskii Subject: Re: bug#27243: another case: dired-auto-revert-buffer jumps point to beginning of buffer 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> <83a83v7zgl.fsf@gnu.org> <5975109E.3010209@gmx.at> <8760ed7xp3.fsf@rosalinde> <838tj84ser.fsf@gnu.org> <597B46DA.5040305@gmx.at> <8360ec4o42.fsf@gnu.org> Date: Sat, 29 Jul 2017 13:44:41 +0200 In-Reply-To: <8360ec4o42.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 28 Jul 2017 17:45:01 +0300") Message-ID: <87mv7n4gd2.fsf@rosalinde> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:uwQsgHKAqhq8Ojl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wunedb4O+NY9MnYD7dNt4LcIoyWc28+XhYZHkqQwytE8bIao= X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 27243 Cc: martin rudalics , 27243@debbugs.gnu.org, monnier@IRO.UMontreal.CA, antoine.levitt@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.0 (---) On Fri, 28 Jul 2017 17:45:01 +0300 Eli Zaretskii wrote: >> Date: Fri, 28 Jul 2017 16:14:50 +0200 >> From: martin rudalics >> CC: stephen.berman@gmx.net, antoine.levitt@gmail.com, >> 27243@debbugs.gnu.org >> >> >> Doesn't this already happen, and will continue happening after the >> >> proposed change? >> > >> > Yes. >> >> Here it doesn't already happen and will not continue happening >> after the proposed change. > > As long as the current behavior doesn't change, it's fine with me. I pushed the fix to master (8e394b082b). I also added a test for this case; even though the change is to find-file, I added the test to dired-tests.el, since it's testing dired-auto-revert-buffer and belongs with the other two cases of this bug. (I also pulled apart the test of the two previous cases into two separate tests. I did this because the Hydra build system shows the previous combined test failing intermittently; it doesn't fail for me with make check, and AFAICS the test doesn't depend on anything outside of the test environment, so it's a mystery why it sometimes fails on Hydra, but maybe separately testing the two cases, though nearly identical, will help locate the point of failure.) Steve Berman From unknown Fri Jun 20 07:18:36 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 27 Aug 2017 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator From debbugs-submit-bounces@debbugs.gnu.org Mon May 25 00:02:29 2020 Received: (at control) by debbugs.gnu.org; 25 May 2020 04:02:29 +0000 Received: from localhost ([127.0.0.1]:39377 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jd4Jo-0002WI-Ul for submit@debbugs.gnu.org; Mon, 25 May 2020 00:02:29 -0400 Received: from mout.web.de ([212.227.17.12]:34835) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jd4Jn-0002W2-HX for control@debbugs.gnu.org; Mon, 25 May 2020 00:02:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1590379341; bh=byWLN1v9ti9JE6FcyE+7yx/UT7Rdk7TbWetDHUysvbo=; h=X-UI-Sender-Class:From:To:Subject:Date; b=o0zjKEDkhDz03W411+b6hTlf+ZxGisCg3zNbz5O14Ms/pdhSSNPZNqO/SCh0RFaTL Y4vIWOvwUhiqfZgWJ/e/wKJB+SVR710NWV5gL9Zk0mlCoKR6H9MqiN2D3EWWncZP4R 2ksz2LYycWKFsuUEOtEHJxlD8G27h/2CEZHjtmGA= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from drachen.dragon ([188.98.100.187]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MSJGB-1jRDPD3evL-00TS2S; Mon, 25 May 2020 06:02:21 +0200 From: Michael Heerdegen To: control@debbugs.gnu.org Subject: unarchive 27243 Date: Mon, 25 May 2020 06:02:20 +0200 Message-ID: <87d06s8xwz.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:/AAaDdY1TH1Y8+JrfZdcyilu5VursGrbMIzKzVpLQ3f1z2V6MRV S0LYpM0ESnpjAyILPvXPUyiiOUg59ogBra2nNme4AJdk0BPKI27y1v1CR/+rZROwR9aGbKx vTHACw3Az4MzwMYXmCZR5Z23Dm1tJgauQj4fsUK5K5qkBfUu5wGoGIutBgTHL2v6PnOzH0C 6SV5sHbg8Z9wMWjpM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NvczhUFIJ27hsObCV8p6MMf5j04kcdXZYFwEFly74g ClTtMn5FX9CISpdZZy8XVMVR6KeAaHxloTU0NxswA6wGNzmVJajNdX8VlF8oLamXnq0BM4azU JHJq8hiqcBG3MWgAhR7oF9Z9jtBTHHmMUu6VyVNJjRo76svHVf8Om0dTdsnAOu5KcrSctjahb 0oEPj69pz/lv1jBVj5kJMGXpXv4f1ouTM6qLV6/J0WQNQZTmtmrMgj2Dz5cNAVPJJjjFl9GmC IxhbmeSEXfgqHiHYv X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) unarchive 27243 From debbugs-submit-bounces@debbugs.gnu.org Mon May 25 00:21:43 2020 Received: (at 27243) by debbugs.gnu.org; 25 May 2020 04:21:43 +0000 Received: from localhost ([127.0.0.1]:39384 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jd4cR-00055x-FS for submit@debbugs.gnu.org; Mon, 25 May 2020 00:21:43 -0400 Received: from mout.web.de ([212.227.17.11]:37011) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jd4cP-00055k-Le for 27243@debbugs.gnu.org; Mon, 25 May 2020 00:21:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1590380492; bh=TcIo36eu/KoIUBddT3X3H7frWlYAxf1vrmcOIp+Wba0=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=C/wEzWklGiGke7Bgcf82qjcSHnWv6w7CvKzhOFBBWlNshQYUkhh5+8dcOVyhvekR4 QC4rBKRKzxRkPijaLPul7dfD/O6tPmPay/8QrjLuywX3SSA6gJdtp0U0HfKxhZrQUN Sx6yb/MvqNNN1wQlzhXKPIi8XzgDueeK3TDmLyAs= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from drachen.dragon ([188.98.100.187]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0M7bQ3-1ir1sC3rXT-00xNqf; Mon, 25 May 2020 06:21:32 +0200 From: Michael Heerdegen To: Stephen Berman Subject: Re: bug#27243: another case: dired-auto-revert-buffer jumps point to beginning of buffer 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> <83a83v7zgl.fsf@gnu.org> <5975109E.3010209@gmx.at> <8760ed7xp3.fsf@rosalinde> <838tj84ser.fsf@gnu.org> <597B46DA.5040305@gmx.at> <8360ec4o42.fsf@gnu.org> <87mv7n4gd2.fsf@rosalinde> Date: Mon, 25 May 2020 06:21:30 +0200 In-Reply-To: <87mv7n4gd2.fsf@rosalinde> (Stephen Berman's message of "Sat, 29 Jul 2017 13:44:41 +0200") Message-ID: <87blmcmyph.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:6JlF9dfuXwMJOpHVPDA7c5Lvekn2XbTZqqheQpSEgIXCV4kBkCD 0fFAKQ9aCtRO07cHB4AU6DrbdkAo/Jpu7w5oLIw0HZRTZbhvww+1w2zvujtcVlbh+WNoaVl 22OFQwhhnFRljd8rDa6bxCrX1mhb0TWk8fM6B6V0A9zVD8K3jbbs6kjqYJOSudiiJLmgXeN TYRvlBDhJeK0gPVCJqaRQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03: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xCqksJ/kDmwMsS+0qDeZndIX3BfYWCgZ2b46VxIkMs4a8WT5H/M5DSn62ZsH bZ61iK25VN9HettGJTIR3Eqb5w6sLUyEXMveXwqPT//+ecrT2S2DIyq74nVTRbZrMMh//Lod2 bP7Jtn47/2j9zchZ65C2l00rHOAgaIaotYmUCEwp5fwW7IR6RZWajBSNf6gwXntN1Bp+0S3Ae 11KtV1rPvPziA5j40 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 27243 Cc: martin rudalics , Eli Zaretskii , antoine.levitt@gmail.com, monnier@IRO.UMontreal.CA, 27243@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Stephen Berman writes: > I pushed the fix to master (8e394b082b). Unfortunately this brakes a different use case for me. Since `pop-to-buffer-same-window' doesn't respect `switch-to-buffer-preserve-window-point', when I use RET on a directory in dired and the target buffer had already been displayed in the selected-window, Emacs fails to restore the corresponding old window-point now. Works when I revert that commit. Sorry if this message is a kind of duplicate for you - pilot error with unarchiving... Michael. From debbugs-submit-bounces@debbugs.gnu.org Mon May 25 03:26:53 2020 Received: (at 27243) by debbugs.gnu.org; 25 May 2020 07:26:53 +0000 Received: from localhost ([127.0.0.1]:39635 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jd7Vd-0001Lp-3c for submit@debbugs.gnu.org; Mon, 25 May 2020 03:26:53 -0400 Received: from mout.gmx.net ([212.227.17.21]:51633) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jd7Va-0001LX-Uc for 27243@debbugs.gnu.org; Mon, 25 May 2020 03:26:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1590391600; bh=7SS1xR2b0bQNxZko/J0c6E6XRN872XrCLaf4M/tFsIE=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=VnyISxnLDGOalLihr2NgKygRjh9sJg2IsNg1roHFjTJidBG45BSzNIBPiT6WNKVDc 1ODjiZGZq3Fe6o0pXn0c++6V8Qk78FUuPaOYrU2dYsZs/wLEHjeV2JhuDANJtV5xpR ppJSLfJcHrwS9yDhgp+TsTBFLzNJV0pyF6AQH9Vg= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from strobe-jhalfs ([178.6.211.181]) by mail.gmx.com (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N9dsb-1j0Muj1yXF-015Y29; Mon, 25 May 2020 09:26:40 +0200 From: Stephen Berman To: Michael Heerdegen Subject: Re: bug#27243: another case: dired-auto-revert-buffer jumps point to beginning of buffer 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> <83a83v7zgl.fsf@gnu.org> <5975109E.3010209@gmx.at> <8760ed7xp3.fsf@rosalinde> <838tj84ser.fsf@gnu.org> <597B46DA.5040305@gmx.at> <8360ec4o42.fsf@gnu.org> <87mv7n4gd2.fsf@rosalinde> <874ks4ekpg.fsf@web.de> Date: Mon, 25 May 2020 09:26:38 +0200 In-Reply-To: <874ks4ekpg.fsf@web.de> (Michael Heerdegen's message of "Mon, 25 May 2020 05:51:07 +0200") Message-ID: <87lflgfpap.fsf@gmx.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:vYdvVKr99X4eKPzBVlcdpbC8t/pvrEYV9i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D6/90+JTfvPABrm+z96bFSw759qhZ2z3OTbVrnPqvnQzuD6stfhWMiLM M6dbTy42qVExBatxZIivUDzCFuc7uXPUqhZd1krzE1fHuUOeUUMpkCVjP03a79JS8Sl570pP8 OhjxEjZ4uBorU1/kHFNCOGJiPHI6aavQO062RiL1kz9k86ie007l0VJKZqeMYolcdaEt7ejSd OylyG4FjyTPLiDz2IQj/n4sY3B4uPknj+LtvnowgKAK+thxDvR1jpqmr2jHLheo1tEC0EqLlC wR4EtmqiVDhojGrc1tG0qUig7QLxbK6y7j1dQIxXVWCsBlkHXNX0AQmlwrBX6I526USTaFzyy /wzMPbJmO7WldtFap5pbo9oqgV9h+Ql04yfBfwgZ05XpUSNeHq8ya5caKyX4kvIuKZbctDKEw kPDduTYPJwRUshOOj X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 27243 Cc: martin rudalics , Eli Zaretskii , antoine.levitt@gmail.com, monnier@IRO.UMontreal.CA, 27243@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Mon, 25 May 2020 05:51:07 +0200 Michael Heerdegen wrote: > Stephen Berman writes: > >> > As long as the current behavior doesn't change, it's fine with me. >> >> I pushed the fix to master (8e394b082b). > > This broke a different use case for me. > > I'm using switch-to-buffer-preserve-window-point > t and > dired-auto-revert-buffer > nil. > > Say I have a frame showing the same dired buffer twice, with different > values of point, in two windows. When I hit ^ and then RET in > succession in the first window, I'm back in that buffer but point now > equals window-point of the second window. Emacs failed to restore the > correct value of point. If I revert this commit which replaced > `switch-to-buffer' with `pop-to-buffer-same-window' in `find-file', the > correct value of point is restored as expected. > `pop-to-buffer-same-window' probably doesn't care about > `switch-to-buffer-preserve-window-point' at all? Is this with -Q? I don't see this with -Q in a build from (not current but recent) master. I tried to reproduce what you described as follows: 1. emacs -Q 2. M-: switch-to-buffer-preserve-window-point RET => t M-: dired-auto-revert-buffer RET => nil 3. C-x d RET M-: (point) => 211 4. C-x 2 C-x o 10 n M-: (point) => 890 5. C-x o ^ RET M-: (point) => 211 also: 6. C-x o ^ RET M-: (point) => 890 If Emacs behaves as you described, the result in step 5 should have been 890, or have I misunderstood you? Steve Berman From debbugs-submit-bounces@debbugs.gnu.org Mon May 25 19:37:08 2020 Received: (at 27243) by debbugs.gnu.org; 25 May 2020 23:37:08 +0000 Received: from localhost ([127.0.0.1]:42810 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jdMea-0006rS-Ds for submit@debbugs.gnu.org; Mon, 25 May 2020 19:37:08 -0400 Received: from mout.web.de ([212.227.15.14]:37173) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jdMeY-0006qx-AT for 27243@debbugs.gnu.org; Mon, 25 May 2020 19:37:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1590449816; bh=C1JGOzT0bBGdsHlwrFQjAgUvDsjjcig6k2N0HZltnD8=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=QZ0zUyMTjD+gNnm7kfVprVYMsDWWl5apbkVCxlbfiw776HSUYVgiDEuvGXy7uvhpL SOKFyA4L/rhfea7bEK9VlB9JyEKgBmBXESTYvT47ImGNK2GuS3jchf/iVRXPwXnMC0 tdHDqAU0MgZX9io+2uDlV72HK2g8qNLtt5oV9ktY= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from drachen.dragon ([188.98.100.187]) by smtp.web.de (mrweb001 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MhlT9-1jQu4J2azD-00MqGs; Tue, 26 May 2020 01:36:56 +0200 From: Michael Heerdegen To: Stephen Berman Subject: Re: bug#27243: another case: dired-auto-revert-buffer jumps point to beginning of buffer References: <83d1ac6yih.fsf@gnu.org> <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> <83a83v7zgl.fsf@gnu.org> <5975109E.3010209@gmx.at> <8760ed7xp3.fsf@rosalinde> <838tj84ser.fsf@gnu.org> <597B46DA.5040305@gmx.at> <8360ec4o42.fsf@gnu.org> <87mv7n4gd2.fsf@rosalinde> <874ks4ekpg.fsf@web.de> <87lflgfpap.fsf@gmx.net> Date: Tue, 26 May 2020 01:36:55 +0200 In-Reply-To: <87lflgfpap.fsf@gmx.net> (Stephen Berman's message of "Mon, 25 May 2020 09:26:38 +0200") Message-ID: <87367nbn8o.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:RCQ3hrKpmRP3Z+/YMukkp0WNMH5Pd2kFeK6yKjLQDKEmK1JS3T0 IpiDBCTdTDzSZBE2Ai+buKnoJHQkXe1NcGl5haBDAGnmDZ4uIMRytTb6C9XlFHNW8eRJOYG rDRic7v61csPDKdAZpAkN7Ws4f4k38ohvgylR6Of/hWlG+yCiSPTm79eJwvVaMTatzmsfz6 5lur+xCmpvtupqMWJMmOw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Y3v7WOOtdKA=:66G2z9Sz6Grhkua5I+VyAZ 2oIh0HjaY1EV6yIJMaHDVyCGf1hJhgDe/opTjyHIZms9SrqWSDFLMgTjh0fmSJdSLqEvxPzi8 dfkvE4n92k3b5W6drnLhXX6fRBxN7+ZrY5OBHPgOunx0pufEwo1jH/oqG7CFQNKgTCfWFBtmu c7CbJTeUgCLfwR20K1BxSyYqtT8IYc8gy4rbIMF4ikNkmoqEtdeuJFtP4H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To: 27243 Cc: martin rudalics , Eli Zaretskii , antoine.levitt@gmail.com, monnier@IRO.UMontreal.CA, 27243@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Stephen Berman writes: > If Emacs behaves as you described, the result in step 5 should have been > 890, or have I misunderstood you? Hmm indeed, it doesn't seem to happen with emacs -Q. Sorry, I didn't expect that, it was late when I wrote that message. I spent several hours to debug this issue with my setup. It behaves like a Heisenbug. I cannot reliably reproduce, so I can't just bisect my setup. And whenever I thought I have a way to debug...it's gone. Debugging is hard anyway, since AFAICT redisplay plays a certain role. I only know that when reverting your patch, the problem is gone as well (I guess quantum Emacs counts this as a debugging attempt). I've no idea how to make progress, so feel free to ignore, since the issue is not hard to avoid for me by rebinding RET in dired. Michael. From debbugs-submit-bounces@debbugs.gnu.org Tue May 26 04:02:30 2020 Received: (at 27243) by debbugs.gnu.org; 26 May 2020 08:02:30 +0000 Received: from localhost ([127.0.0.1]:43941 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jdUXe-0006p4-Aa for submit@debbugs.gnu.org; Tue, 26 May 2020 04:02:30 -0400 Received: from mout.gmx.net ([212.227.17.21]:49403) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jdUXb-0006om-P9 for 27243@debbugs.gnu.org; Tue, 26 May 2020 04:02:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1590480137; bh=nexQ3pSj+wFsEteLsiWYafnfXoTtAHpsGRILKPmic74=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=doKj4jM83SrH5PKlvYH/S0CG/wig+CcJrdNiRv633obCDGRI6gsdEyEH8pz2UIcG7 ZK8xDvUCj2LU+YFgMOkBUDMYJP4/Kn1hqLTdGZ1XGCsLJO5i0nKVaworTmVvJ3yhU8 xeha7wF436HfSI8XeS40Z3p+ltkdUw++JfH3Vxu0= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.1.101] ([46.125.249.36]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MzhnN-1irBFI0m4P-00vfBt; Tue, 26 May 2020 10:02:17 +0200 Subject: Re: bug#27243: another case: dired-auto-revert-buffer jumps point to beginning of buffer To: Michael Heerdegen , Stephen Berman 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> <83a83v7zgl.fsf@gnu.org> <5975109E.3010209@gmx.at> <8760ed7xp3.fsf@rosalinde> <838tj84ser.fsf@gnu.org> <597B46DA.5040305@gmx.at> <8360ec4o42.fsf@gnu.org> <87mv7n4gd2.fsf@rosalinde> <874ks4ekpg.fsf@web.de> From: martin rudalics Message-ID: Date: Tue, 26 May 2020 10:02:14 +0200 MIME-Version: 1.0 In-Reply-To: <874ks4ekpg.fsf@web.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:m2GV8slXhhUP0jAnJJ6KHMx9mS0NIcCqsnzK9JODY7RtFTrNF1T cmd98ntlNVodqGxsGNwzqi8YQ7E6a0bdQ3UD9Z5F8OJbo+VQFGO1nNMsnECE3aIBk/bMKfZ 6FWrJjfBhFMJXNyo4FajVRHMyit2heC3suP7CC/y1RsyQr0ylv3fmaEm4rwUv0PI4AAb5cD z8heaBcxZisH2pQwn33Zw== X-Spam-Flag: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PsKekZFFWTQT8SKXwgTa107S ik4WHguWsJHR8vUViYvrjwooyAgwKRai3cYNzolSoIgRpcjTLZIDIoopzqVRRfSAJxxgbYk0I T2iIxSWZRNiK36anleY9US4ohqKw9R8z7P1tR1Te1Pat8QXZTDv2WuvruSbzd1JY9/ZjJwepg gWsyUBgOclmcgwest71C6JhuCYgb/9iRYs+8R2KKTHLIrCg76NbeuMUHXYsJRAbWIjIoErovq qBJX+IOfTCD73IyiI X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 27243 Cc: 27243@debbugs.gnu.org, Eli Zaretskii , monnier@IRO.UMontreal.CA, antoine.levitt@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > This broke a different use case for me. > > I'm using switch-to-buffer-preserve-window-point > t and > dired-auto-revert-buffer > nil. Would setting 'switch-to-buffer-preserve-window-point' to 'already-displayed' change anything in the behavior? Or setting 'switch-to-buffer-obey-display-actions'? Maybe we missed something when introducing those. martin From debbugs-submit-bounces@debbugs.gnu.org Tue May 26 21:16:38 2020 Received: (at 27243) by debbugs.gnu.org; 27 May 2020 01:16:38 +0000 Received: from localhost ([127.0.0.1]:47505 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jdkgQ-0002tO-Ia for submit@debbugs.gnu.org; Tue, 26 May 2020 21:16:38 -0400 Received: from mout.web.de ([212.227.15.4]:40111) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jdkgO-0002tA-Gg for 27243@debbugs.gnu.org; Tue, 26 May 2020 21:16:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1590542186; bh=Af2wcOiRMuqQraRIVTdYjDoN2NgvrNeo4AN8EY41xM4=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=IN+k/KnH2Vdm01yjLrvzKWR1Bfe3uqS/PWzb7seduXORejFus/E6Asx3Eqc9ZwKLp ni5tx4BSJGMgQ7vzGqN/n+3m4xU2FNxGOvy1t7x85/9wyO3lZ9Pr81ty6ZECVKFa8E NLtYX+MBra4dkC75sn5610Qtj/CAV/IwzHn7PSbI= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from drachen.dragon ([94.217.125.96]) by smtp.web.de (mrweb006 [213.165.67.108]) with ESMTPSA (Nemesis) id 1Mae3q-1j2ky33p7a-00cCAB; Wed, 27 May 2020 03:16:26 +0200 From: Michael Heerdegen To: martin rudalics Subject: Re: bug#27243: another case: dired-auto-revert-buffer jumps point to beginning of buffer References: <83d1ac6yih.fsf@gnu.org> <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> <83a83v7zgl.fsf@gnu.org> <5975109E.3010209@gmx.at> <8760ed7xp3.fsf@rosalinde> <838tj84ser.fsf@gnu.org> <597B46DA.5040305@gmx.at> <8360ec4o42.fsf@gnu.org> <87mv7n4gd2.fsf@rosalinde> <874ks4ekpg.fsf@web.de> Date: Wed, 27 May 2020 03:16:24 +0200 In-Reply-To: (martin rudalics's message of "Tue, 26 May 2020 10:02:14 +0200") Message-ID: <87v9ki9nyv.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:NHtGmpbNmTdvikngDfCZwOkYjJ/gpNdLh7v/ui573Dk4EQXkA4n 8eKL+SLiaqtinWLLlXGpsh9oY3YiXi+A7LiAlOZrQ/T6ZONA/liaet4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upb1AtLu91Qa2ondMDACAzZjZbyu5vMntVyjFxJU0/qXu5nnwkiMCu94ufFtN2FQ/H3 6rLe0Y8nlANNOoUHrDLIRzffNlQzzz9CFK82W3vQciznCTh8dKvuRnZF7jA5APgvyAgxJuQHL gjmYWthA9oFC3iaRAJDbtvDVHUIpGQKnLIhhv2Hpm4PqR4QfM1NKo8lBP5473IE8NEklxdtYo ThWNj+RmbAgRN/Hn4uQJRD96+p9sPaiHOU/54kJfqL8Mcycw789tsZG06gcmF2sq5fMeCYd/L 1vbx76EhKLvhpbdb6qMFb2w4YPHoucQjww0t35jdY+YgHogBgWfat9TLFmFaIoFQlhpDE5clm t5noMjx87W0D9xbFI X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 27243 Cc: 27243@debbugs.gnu.org, Eli Zaretskii , Stephen Berman , monnier@IRO.UMontreal.CA, antoine.levitt@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) martin rudalics writes: > Would setting 'switch-to-buffer-preserve-window-point' to > 'already-displayed' change anything in the behavior? Or setting > 'switch-to-buffer-obey-display-actions'? Maybe we missed something when > introducing those. I don't think these are related. I had already played with switch-to-buffer-preserve-window-point -> already-displayed, that doesn't make any difference. And `switch-to-buffer-obey-display-actions' should not be referenced at all. Michael. From debbugs-submit-bounces@debbugs.gnu.org Tue May 26 21:23:18 2020 Received: (at 27243) by debbugs.gnu.org; 27 May 2020 01:23:18 +0000 Received: from localhost ([127.0.0.1]:47513 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jdkms-00033n-GZ for submit@debbugs.gnu.org; Tue, 26 May 2020 21:23:18 -0400 Received: from mout.web.de ([212.227.17.11]:53967) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jdkmq-00033Z-SW for 27243@debbugs.gnu.org; Tue, 26 May 2020 21:23:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1590542587; bh=5VQWQtlR4HWDZEBQaM7EtOqswaQ9AOg6RCalOg6aRY4=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=b2lkQsnKg05rtb+cPZWCRT3sCYTI7hbegz/mbB5yuo+RKl+9HWq9FeHNDCzo8mEwv bgjLnGlSPEE+7LJj9g3fWbts3eoIoph1SfhlBuEZ45/FJ0bbLkL3FpZR0TB4wPw/pP AWysp7et68Sy9YaYvI7S82hS2ahTq2ApsnyhflJk= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from drachen.dragon ([94.217.125.96]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0LqDQS-1j8poJ1Q0m-00dnZy; Wed, 27 May 2020 03:23:07 +0200 From: Michael Heerdegen To: Stephen Berman Subject: Re: bug#27243: another case: dired-auto-revert-buffer jumps point to beginning of buffer References: <83d1ac6yih.fsf@gnu.org> <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> <83a83v7zgl.fsf@gnu.org> <5975109E.3010209@gmx.at> <8760ed7xp3.fsf@rosalinde> <838tj84ser.fsf@gnu.org> <597B46DA.5040305@gmx.at> <8360ec4o42.fsf@gnu.org> <87mv7n4gd2.fsf@rosalinde> <874ks4ekpg.fsf@web.de> <87lflgfpap.fsf@gmx.net> Date: Wed, 27 May 2020 03:23:05 +0200 In-Reply-To: <87lflgfpap.fsf@gmx.net> (Stephen Berman's message of "Mon, 25 May 2020 09:26:38 +0200") Message-ID: <87r1v69nnq.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:5eCX1vbY3aurDlq5mYqEf3VkfooGXIn5kGSnwAXy79sUMC9Fk5v e6txMD/Ncy4wcfXN0Ai7hGsTYHKxdyZY3w0CJcMHg2lf8RbE2Ie3D4yzE7+rCL1N+gaYXuT ASDVF1yhbcHJbeWW31bkZQGmXvKHUd6wduok7FGxteYUtn/IWLvl6CZDT6e+/pBKVlti/DT MIB9MVDfaIsltR4vwQz5g== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Nu9XbP+s/z8=:pyExIdpzVgQIbo6lCn3oc+ 8iD3Viuvm/IuPHo0MyvYAEwe5dAyfsdalYViFXnE2Mo21yFIffukj/hAbAEXUYA8T96v9v/ND oHQqyhqOGkcVtYVKWBVbQH/KIpWtAMzhr0hyx76dLrryjPxLT5gaoLNmaedK8ClGBJeepxPvf TScHBk+WMgDFKhm0l8n2r+/tGsh/OS3PUJe0fK1ADoVK/1UWZjId1HpZtB3HRw6QJ4gGXK1N1 EIoSJqSK1SVESjCncXHeq+KTs2UScYQNBrCihTreAtnbYS0kn46pfl9HzYJlfUo4kGJ1CSI3h 24o8t12MnDOjmi2EWJuVDWsh76LIa31mSRSYgbhaC3WTOHKTPijcxo0M4hS3wmZ3S2U8iDOJ3 aHqFqzDqcsA9yF8h7EHX/wqjdxn63RtBviQpwynHRPVezo6htJFWB5CPlWPLLi9Ldjbemc5Qi PB4r4AfRDj+ILymA4IvBQN9h474/CMUaZaHEfyWnxDhgTwlLvy0EqYWok9MglPkUVrL+s1b9C xRwoVaqWp9mAmxpQl1rIhd3wGSMa6gHuG2ICVVIpIYAoh3ep30qizFhGRdBWdZQyt//3Dajvg cIB/Kh25Q6Y3Q7gcRVLB/pkScvNkPNF+mBu2Oo4Nd6DCY3u6H/UFKSguFrNEwGslrE/FAOFfj glVndWPcmo4fvnqe5W5xykwngSxRKOdJL2ttkNIfVQt+jJEeqogS0JbhbvlvI+eQqraNgVPL6 d+TrV47IC52dyXZEEJCmcuQmd8Huo3aSRCbj0x42GOtGCQqhbpFw7QYQjB5Cvm4Jc8uEpgZ1s cFHlSO0y8TmrtzNt1fPmS0azNQFh3dfGkrJmdB/OERxMMQ+jjZAkAIDIQnhVEfs/SX+DgC4w3 Zyp/yI3cqijYiGxBsUQ+984pcvBL6J7VN03uLhwX3npSyJe7ffhVdgZ94le+9usLMFqjTNscQ G66vG/Rp9KgbZEjd8PA3JxIWtKliTa1iZeJ9Ve3kYgHUQ9SlCj9iAHlSFnxHwaTC21doECtpB t/BNSP3VWt4tyYMaU0Bb5g/qjSeSEAzerMW4qnsYz1gDp4SnDRDTcfAf+dpJn47CMfi34j9WL 4+3xQ7R95xBa+Gn3WUbLOqm/XwjgjAb0EjvNwMr4mqurAB+M8Y5SY4srT+YDNmbZ8wfsSvGyZ 6dN2LUhF6v51thGXyVyTBUbXTMOfirsO/iGhVGUeiIFKgHI9xtBGMPtMXxXRau5mYLRV1zhwO Ob9honojd00Xe1/lN X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 27243 Cc: martin rudalics , Eli Zaretskii , antoine.levitt@gmail.com, monnier@IRO.UMontreal.CA, 27243@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Stephen Berman writes: > 1. emacs -Q > 2. M-: switch-to-buffer-preserve-window-point RET => t > M-: dired-auto-revert-buffer RET => nil > 3. C-x d RET M-: (point) => 211 > 4. C-x 2 C-x o 10 n M-: (point) => 890 > 5. C-x o ^ RET M-: (point) => 211 > also: 6. C-x o ^ RET M-: (point) => 890 But if I do this with emacs -Q, and use edebug to step through the related functions, I can reproduce it there. It is enough to edebug just `dired-find-file' and hit SPC, SPC ... for the issue to occur as I see it. I was using two different frames for Edebugging and performing the recipe. Does this confirm my suspicions that intermediate redisplay may play a role? Michael. From debbugs-submit-bounces@debbugs.gnu.org Wed May 27 01:36:49 2020 Received: (at 27243) by debbugs.gnu.org; 27 May 2020 05:36:49 +0000 Received: from localhost ([127.0.0.1]:48016 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jdokC-00015a-Rh for submit@debbugs.gnu.org; Wed, 27 May 2020 01:36:49 -0400 Received: from mout.web.de ([212.227.17.11]:45327) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jdokB-00015L-63 for 27243@debbugs.gnu.org; Wed, 27 May 2020 01:36:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1590557797; bh=4Kia7tiPPATXx5Aqs9XHwWIIAtfSZ9UmO+2oiGsxSgI=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=GFNB7QjfqAMLfVRImH3zlf3b40niF63XCpW//I5mHskFyqAWHVVe+o3wUryMta4so 6KGipptH8w0i4mlNMG+IhgYv8OEQTYg1ar3Ia65EijMk19XkPbumnVI2z92H/twjUx X4u2hpoY9He2hE7Hnw3eaqs7k30iQJ6hLGasava8= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from drachen.dragon ([94.217.125.96]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MEEiK-1jokxw3Y7M-00FQW5; Wed, 27 May 2020 07:36:37 +0200 From: Michael Heerdegen To: Stephen Berman Subject: Re: bug#27243: another case: dired-auto-revert-buffer jumps point to beginning of buffer References: <83d1ac6yih.fsf@gnu.org> <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> <83a83v7zgl.fsf@gnu.org> <5975109E.3010209@gmx.at> <8760ed7xp3.fsf@rosalinde> <838tj84ser.fsf@gnu.org> <597B46DA.5040305@gmx.at> <8360ec4o42.fsf@gnu.org> <87mv7n4gd2.fsf@rosalinde> <874ks4ekpg.fsf@web.de> <87lflgfpap.fsf@gmx.net> <87r1v69nnq.fsf@web.de> Date: Wed, 27 May 2020 07:36:35 +0200 In-Reply-To: <87r1v69nnq.fsf@web.de> (Michael Heerdegen's message of "Wed, 27 May 2020 03:23:05 +0200") Message-ID: <87blma9bx8.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:5zc2QWZ79elMSVpGMwj+MsaGUZVIeANtxSPu+aN+suUTpEkLLnH ZFpmU5fyNCI4r/1+a7iaGDbNBpTR6vRkJwgxpX/aTBjTJ+U9GDqECtD1F3IitxuGmHQokHm XDJ3pGDNFPO3+Kzvw78faODdbxQZG1/fw+nMWp+xBriouddZdglUnlU0U8+rZpUzpzm3WrW uUgUsy9xFOQ9PRz6YAF3Q== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:5btToMdewE0=:0l1vFswqtsCS1DJbFWjqmW +B/BcMU7hgBAPVcMZR70RN+0Fyvo9uXP+CduBpY5N2swZVm4a0qN2mKeYGEMRR+Vd4i+Ozg6C iU4oUp7t+b1LCD+oCSsJ3qTyWL4jQIajp5W+NiHAyWkcHai0yBsp9RXR+M7MaiGL5pmkOpAQ+ B2UVdk6tkoolbuZUTb6xHgORpVgy0cTtFrd+U8KxwV5N4nnlKdE6X9wrO0DHKKR6OozISQNUb 2XuuHipcOPoEiSzdbVPI6USbBCj4TFzCFMDyoO3f6nnSyhGtQf/lFxVsR7EQTOQaa+PRgx94g W/1UbOF0F+feve0MTiM4SQb8b7CeJJ/LEshUkYqKbDUFVvj6Vf1L9HuFVvW2qeDytWgRCweWI X7tQexA8KqUeS4O/zbpb1H27etiLay3pVXdIO77jAH9Bw0UCEr8VftegGVwqyhHKROaA1xhet gcPCTnIn3TUv7JXUmAP/TsXrobl+vdzxJpI2n8vGTp0uWyLuZ1ZF+XIDfNh1PPWp1QsmN/Tre d1qPjcbhBQIBySt8CKGqqF7+MJFRVxMV50IIwb+wz+YZvqtnvFnpdwuYR+FSJ1Sr/Nu8EotsY URHHcNp57XX9y72PaXifcg4xNA/9FAuTtEqPnNXfsnEj88sAS4ufOC9fh6B1sT88Mbh2w6hCQ ZE/vrpQjcJST8mcgIdS4F4WUNVnwcNNOkodWuwKGhMKwlCcdgaODVpZa9RlfzHtYNDNr6Bo3r CpNLGbZLaMbt9/7Ks4ROib2D+HGF+3iD/wwkIzmZqAgwCPq8e1SE/rL3JgSkf9Mk9i8A+Fq5y JeT/RRw+oskDdoAxLmPvyQbWjw3fIsVH3TBVbS5ZFLi/X3yAaEq1Oo3t+jjfdZ3fj+o0bLIQU WsRjibIUUTRaGJiIBjxrkz3TTzKi61yLdQ8LW9vq0/qsG35sg+e0Ui3cn2lieHCJcoaIw71gT NSB0ycmR1UMedITCNuk/vFXTd5GGO9XPRRoRpJqpx/wqIRd4fNCZhtYg5wbVuWfI5pxjT/hqU aki5ko/S2rTk/tIyNeGcAXovqiEDo0CUqhy7gBie8rymZZV816gzTBoQSfZOwid/crBn75RPF lhh1QYLDmsWzgSaew4x/l8DcRAdcxffizP2tIpQ83uBKG29LP434kjKhdtXPAtoQzqrxmdOWU tL0dQAtBbLVgj45xGL6np7cWsN271JlXXdmjHvvTdt+DiJtf86vXZ97e46E+BE4rDsIrplEgP w9AxUqGQwbSqJk2UE X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 27243 Cc: martin rudalics , Eli Zaretskii , antoine.levitt@gmail.com, monnier@IRO.UMontreal.CA, 27243@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Michael Heerdegen writes: > Does this confirm my suspicions that intermediate redisplay may play a > role? Yes, I guess that's it. In the recipe, when you are in emacs -Q, it's enough to select the second window before the last step to make the issue happen. There is no restoration of the old window's window-point, I think it's the buffer's current value of point that becomes window-point in the first window. I verified here that when running the recipe the function `window-prev-buffers' is never consulted. Michael. From debbugs-submit-bounces@debbugs.gnu.org Wed May 27 10:53:12 2020 Received: (at 27243) by debbugs.gnu.org; 27 May 2020 14:53:12 +0000 Received: from localhost ([127.0.0.1]:49753 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jdxQd-0000Ej-U3 for submit@debbugs.gnu.org; Wed, 27 May 2020 10:53:12 -0400 Received: from mout.gmx.net ([212.227.15.15]:59171) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jdxQc-0000EX-Bi for 27243@debbugs.gnu.org; Wed, 27 May 2020 10:53:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1590591181; bh=DDxTWPPtEsrRlkPt3FtRNAw7HU7+ax7TvkGw1+xueoU=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=I4u/m+QN3djwQDI5L9G1O/fUQdclGjCTxHHOY2xIWxvG0meS/pCptAdjh/wWfXHSS nTl+RYChBLegXCgcR8i9teG7vTUJ3ZBOEFt8objU7LsuQC0zXmuj2k0y/NT2ljQryX cj7u/zAu0cc7U62n62lRyDkJxRUutbqfxnfbA2gc= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.1.100] ([212.95.5.136]) by mail.gmx.com (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1Mq2nA-1jHUac3dTe-00nATC; Wed, 27 May 2020 16:53:00 +0200 Subject: Re: bug#27243: another case: dired-auto-revert-buffer jumps point to beginning of buffer To: Michael Heerdegen , Stephen Berman References: <83d1ac6yih.fsf@gnu.org> <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> <83a83v7zgl.fsf@gnu.org> <5975109E.3010209@gmx.at> <8760ed7xp3.fsf@rosalinde> <838tj84ser.fsf@gnu.org> <597B46DA.5040305@gmx.at> <8360ec4o42.fsf@gnu.org> <87mv7n4gd2.fsf@rosalinde> <874ks4ekpg.fsf@web.de> <87lflgfpap.fsf@gmx.net> <87r1v69nnq.fsf@web.de> <87blma9bx8.fsf@web.de> From: martin rudalics Message-ID: Date: Wed, 27 May 2020 16:52:59 +0200 MIME-Version: 1.0 In-Reply-To: <87blma9bx8.fsf@web.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:76tIm2LFDBlCC4UIqYgCh+rc6LU3JytHwivE6HFPvQwZTGHUK1C jAHOdP9+mW1T1u+Szl0ihnXHoOo6ukmLZ3KiT9T+QLCFiWFM24L95KDLs3zZZFMuleFnB6k kf7LJSuUZK28H1k+Y2Tzt59Zi2cfSRFCGubbwlQ8HCFuvW9TWjt8iFt6tOYZoCNWdlf+zOs NsxcpCXJKZxY2Xl+YsLSA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:jOfVJ9xS1Qk=:qc9/T0TMtwxk5yEv9S1VtZ aH2HnaiHeNX0yHzu2wYjtv/kJWx0M03nX/ehbdUhwBSipvxXj6s7Dw1NYImD4dbHNmusNqUZf rr9+yfaHJdrYSpYBWU9AdEhpKPwya3ZQLE/TEEj/FZtb5f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gXncHMJbdgUCKKQly4XThY6kjijNZc6sNsgVXP51T9sDmT WSn+5avVdaDnxJMt0 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 27243 Cc: 27243@debbugs.gnu.org, Eli Zaretskii , monnier@IRO.UMontreal.CA, antoine.levitt@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > In the recipe, when you are in emacs -Q, it's enough to select the > second window before the last step to make the issue happen. Anything that moves point of that buffer elsewhere. This includes selecting another window on that buffer whose window-point does not equal that of the window we switched away from. > There is no restoration of the old window's window-point, I think it's > the buffer's current value of point that becomes window-point in the > first window. I verified here that when running the recipe the function > `window-prev-buffers' is never consulted. Right. Maybe we should call 'switch-to-buffer' here so people with 'switch-to-buffer-obey-display-actions' non-nil get the 'pop-to-buffer-same-window' behavior and others are unaffected. Let's wait for Juri to comment. martin From debbugs-submit-bounces@debbugs.gnu.org Wed May 27 13:01:25 2020 Received: (at 27243) by debbugs.gnu.org; 27 May 2020 17:01:25 +0000 Received: from localhost ([127.0.0.1]:49879 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jdzQf-0005c1-GB for submit@debbugs.gnu.org; Wed, 27 May 2020 13:01:25 -0400 Received: from mout.web.de ([212.227.17.11]:60167) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jdzQc-0005bm-Ub for 27243@debbugs.gnu.org; Wed, 27 May 2020 13:01:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1590598867; bh=Sfm9GEs+l7lUDc89n1VU5vYKPn4b7k9TX8tj+UJZy/A=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=Q5ZfAWQ43x4CCjdO+X6PocD3vb2xy7jWBo6tIQ1A0RESX/zQy305staGAJEHGbrsq yrdtl/tVI23U+x98MzhZ0yshBCITZbEIJ/q96kNe0Tcb0ZJJz1KM3mH0eo1FTzyhLK 9bT95irXWJI0F+JRjGeNKaQ4AcnNWAu9zBbMIJzY= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from drachen.dragon ([94.217.119.187]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MGign-1jrTxS0Dzt-00DZZQ; Wed, 27 May 2020 19:01:07 +0200 From: Michael Heerdegen To: martin rudalics Subject: Re: bug#27243: another case: dired-auto-revert-buffer jumps point to beginning of buffer References: <83d1ac6yih.fsf@gnu.org> <87zicd1pfy.fsf@beta> <87379vwh7d.fsf@rosalinde> <87o9scv6bo.fsf@beta> <87k230qea5.fsf_-_@rosalinde> <83h8y38b98.fsf@gnu.org> <5974EDB5.7080608@gmx.at> <83a83v7zgl.fsf@gnu.org> <5975109E.3010209@gmx.at> <8760ed7xp3.fsf@rosalinde> <838tj84ser.fsf@gnu.org> <597B46DA.5040305@gmx.at> <8360ec4o42.fsf@gnu.org> <87mv7n4gd2.fsf@rosalinde> <874ks4ekpg.fsf@web.de> <87lflgfpap.fsf@gmx.net> <87r1v69nnq.fsf@web.de> <87blma9bx8.fsf@web.de> Date: Wed, 27 May 2020 19:01:04 +0200 In-Reply-To: (martin rudalics's message of "Wed, 27 May 2020 16:52:59 +0200") Message-ID: <87367l9usv.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:gbLw2fQlw+N5lYihD4TqfWHbo3pLYdR988u0tWKBInb6E5e78gB gUIiNontBGL5wD9gFEQFT7QzEYLwuq9kAc/h5z5WLhgFLwmc46ZRXQVB9+sp4wcO5akHU1L DFfqs0uQVQcsgCRMEsr52AlnJhmoRcbjAE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LbX0mVPntx R8q+B+BS2jOonjIT/7U72GdlRsimgpUYUilo3IdUHIZxq/wuorvgdmjRYB0vGUx33P7LIY2/+ tzlw3lhoBDHZc5rTikcv1qrT4nSdimtlzjoZ5iH5VWfOiB2udkGgclSw+vpJSeQN7ncDrPHXu 391qIoIdk3F3U/Kdj4OTN0fR07VCqsPEGSAOxmA6+jjMZpLnsuwXPLfh4Q/c9rc5yp1HrBONc Ci19Lekez+oOkaAsPeKyba6Ua5GNn/dpLUoroT5TRobYqa6poqZnF6QQ5oN+svz04jFKJk3UT 5TrzWikHOXPcG3SEgZrapi26Aom5ANs8fFR6DVw== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 27243 Cc: 27243@debbugs.gnu.org, Eli Zaretskii , Stephen Berman , monnier@IRO.UMontreal.CA, antoine.levitt@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) martin rudalics writes: > Maybe we should call 'switch-to-buffer' here so people with > 'switch-to-buffer-obey-display-actions' non-nil get the > 'pop-to-buffer-same-window' behavior and others are unaffected. The code once used `switch-to-buffer' but had been changed to use `pop-to-buffer-same-window' when fixing one aspect of this Bug report. Michael. From debbugs-submit-bounces@debbugs.gnu.org Wed May 27 13:57:01 2020 Received: (at 27243) by debbugs.gnu.org; 27 May 2020 17:57:01 +0000 Received: from localhost ([127.0.0.1]:49957 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1je0IX-0000fn-73 for submit@debbugs.gnu.org; Wed, 27 May 2020 13:57:01 -0400 Received: from mout.gmx.net ([212.227.17.22]:44985) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1je0IV-0000fW-Ch for 27243@debbugs.gnu.org; Wed, 27 May 2020 13:56:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1590602208; bh=XUJqoDWHPplc15BNthksbsuum2uWPEIAq9lUz5lp0ho=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=AnTPgaHF5DqkNmqTol/bUroQR40IdokxMCHR6XXor5qSJCX9CuorO1TYwn2l7NV/2 DepIaYlb1xWCskswyRfo3gAaIbsctkn25OiQDYJJ5oDFFpmY5BxsSb29e3Zwkh6N5u rPnrBz4ATZmacvzbWh/QPKC1+AVWDf6ff4sMHVZM= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.1.100] ([212.95.5.25]) by mail.gmx.com (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1My32F-1inyc32LEt-00zTXh; Wed, 27 May 2020 19:56:48 +0200 Subject: Re: bug#27243: another case: dired-auto-revert-buffer jumps point to beginning of buffer To: Michael Heerdegen References: <83d1ac6yih.fsf@gnu.org> <87zicd1pfy.fsf@beta> <87379vwh7d.fsf@rosalinde> <87o9scv6bo.fsf@beta> <87k230qea5.fsf_-_@rosalinde> <83h8y38b98.fsf@gnu.org> <5974EDB5.7080608@gmx.at> <83a83v7zgl.fsf@gnu.org> <5975109E.3010209@gmx.at> <8760ed7xp3.fsf@rosalinde> <838tj84ser.fsf@gnu.org> <597B46DA.5040305@gmx.at> <8360ec4o42.fsf@gnu.org> <87mv7n4gd2.fsf@rosalinde> <874ks4ekpg.fsf@web.de> <87lflgfpap.fsf@gmx.net> <87r1v69nnq.fsf@web.de> <87blma9bx8.fsf@web.de> <87367l9usv.fsf@web.de> From: martin rudalics Message-ID: <7af26c8d-5814-ca96-1870-7e8c1cf376ce@gmx.at> Date: Wed, 27 May 2020 19:56:46 +0200 MIME-Version: 1.0 In-Reply-To: <87367l9usv.fsf@web.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7b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FKJbNLEyA4agL4EvpKjZGJCvRvHT/H56xWHrlu0SmXp9PjWG95J2 B/50XLWuS8zwOuHNk5Z2DvrIEa2QWmLAmc5lDCWpXm42G/kz3DrrPtlwrJRrH1hsDs767R+F3 3Q9shLzy7aa78jttlYvuBVfHYHDg0w417W8LI2/xuILaRQ27DNr3B5F/8RreD46zADm2CiaJ0 ed3bc5Edn2sQ9exWNk1qDZjSxR6TXT0JvCV3bCyeBUUNQS5BN1oPQ3vUNJaZ6VhQ9bhcJuWvR UmIF17V5MyBDKfit0Ji1+wXPlOnK+1I/E/o0Pfcw1oszevA9UQtv7BQeMnyIsbPN9mV7k6HOU XKufuzrBDojzm4FRlfv2Jl/nOo0Iaha13tDdRia9T52hVUSQ2ACyFOqUHZpHnGhrgf13ZJXuX G1Jl0mIcuNxhvh/EXXh4LH9LRi8es9agp4A17kwO1g3hQ6w8qEasuAgjtPFVlPeadLfSDnQ7F 9Hqhe1TX5BgN56eRF X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 27243 Cc: 27243@debbugs.gnu.org, Eli Zaretskii , Stephen Berman , monnier@IRO.UMontreal.CA, antoine.levitt@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > The code once used `switch-to-buffer' but had been changed to use > `pop-to-buffer-same-window' when fixing one aspect of this Bug report. Right. But that change happened some time before Juri added 'switch-to-buffer-obey-display-actions'. martin From debbugs-submit-bounces@debbugs.gnu.org Sat May 30 18:34:21 2020 Received: (at 27243) by debbugs.gnu.org; 30 May 2020 22:34:21 +0000 Received: from localhost ([127.0.0.1]:59369 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jfA3Z-0004fq-8V for submit@debbugs.gnu.org; Sat, 30 May 2020 18:34:21 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:39167) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jfA3X-0004fb-Ns for 27243@debbugs.gnu.org; Sat, 30 May 2020 18:34:20 -0400 X-Originating-IP: 91.129.108.6 Received: from mail.gandi.net (m91-129-108-6.cust.tele2.ee [91.129.108.6]) (Authenticated sender: juri@linkov.net) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 3D22540008; Sat, 30 May 2020 22:34:10 +0000 (UTC) From: Juri Linkov To: martin rudalics Subject: Re: bug#27243: another case: dired-auto-revert-buffer jumps point to beginning of buffer Organization: LINKOV.NET References: <83d1ac6yih.fsf@gnu.org> <87zicd1pfy.fsf@beta> <87379vwh7d.fsf@rosalinde> <87o9scv6bo.fsf@beta> <87k230qea5.fsf_-_@rosalinde> <83h8y38b98.fsf@gnu.org> <5974EDB5.7080608@gmx.at> <83a83v7zgl.fsf@gnu.org> <5975109E.3010209@gmx.at> <8760ed7xp3.fsf@rosalinde> <838tj84ser.fsf@gnu.org> <597B46DA.5040305@gmx.at> <8360ec4o42.fsf@gnu.org> <87mv7n4gd2.fsf@rosalinde> <874ks4ekpg.fsf@web.de> <87lflgfpap.fsf@gmx.net> <87r1v69nnq.fsf@web.de> <87blma9bx8.fsf@web.de> Date: Sun, 31 May 2020 01:11:32 +0300 In-Reply-To: (martin rudalics's message of "Wed, 27 May 2020 16:52:59 +0200") Message-ID: <87o8q5nkdn.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 27243 Cc: Michael Heerdegen , 27243@debbugs.gnu.org, Stephen Berman , monnier@IRO.UMontreal.CA, antoine.levitt@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) >> There is no restoration of the old window's window-point, I think it's >> the buffer's current value of point that becomes window-point in the >> first window. I verified here that when running the recipe the function >> `window-prev-buffers' is never consulted. > > Right. Maybe we should call 'switch-to-buffer' here so people with > 'switch-to-buffer-obey-display-actions' non-nil get the > 'pop-to-buffer-same-window' behavior and others are unaffected. Let's > wait for Juri to comment. Yes, now 'pop-to-buffer-same-window' could be changed back to 'switch-to-buffer'. But we need to ask Stephen if reverting back to 'switch-to-buffer' and customizing 'switch-to-buffer-obey-display-actions' to non-nil really provides the same behavior. From unknown Fri Jun 20 07:18:36 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 28 Jun 2020 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator