From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#32790: 27.0.50; point jumps unexpectedly after delete-window Date: Wed, 28 Nov 2018 09:33:16 +0100 Message-ID: <5BFE52CC.4000600@gmx.at> References: <87efdnsp2k.fsf@mail.linkov.net> <87ftw2q74g.fsf@mail.linkov.net> <5BEE85A5.2070309@gmx.at> <878t1ruz4m.fsf@mail.linkov.net> <5BF12FB6.20203@gmx.at> <87o9am3smz.fsf@mail.linkov.net> <5BF2858C.40207@gmx.at> <87va4szo8n.fsf@mail.linkov.net> <5BF3D3D4.1080106@gmx.at> <87pnuzz2vf.fsf@mail.linkov.net> <5BF5151B.5000201@gmx.at> <87ftvu9f20.fsf@mail.linkov.net> <5BF65D56.9020806@gmx.at> <87pnuwenpk.fsf@mail.linkov.net> <5BF7AEC5.60808@gmx.at> <87va4mdoya.fsf@mail.linkov.net> <5BFA5BF3.50505@gmx.at> <87bm6can2p.fsf@mail.linkov.net> <5BFBBDD4.7050100@gmx.at> <87pnurjt92.fsf@mail.linkov.net> <83lg5fgivk.fsf@gnu.org> <87h8g2m9ii.fsf@mail.linkov.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1543393929 28173 195.159.176.226 (28 Nov 2018 08:32:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 28 Nov 2018 08:32:09 +0000 (UTC) Cc: 32790@debbugs.gnu.org To: Juri Linkov , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 28 09:32:05 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gRvGO-0007E0-Ti for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Nov 2018 09:32:05 +0100 Original-Received: from localhost ([::1]:46542 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gRvIU-0006DV-UZ for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Nov 2018 03:34:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42630) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gRvIL-0006DP-JG for bug-gnu-emacs@gnu.org; Wed, 28 Nov 2018 03:34:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gRvII-00010s-Ba for bug-gnu-emacs@gnu.org; Wed, 28 Nov 2018 03:34:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48553) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gRvII-00010k-66 for bug-gnu-emacs@gnu.org; Wed, 28 Nov 2018 03:34:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gRvIH-0001ND-Ut for bug-gnu-emacs@gnu.org; Wed, 28 Nov 2018 03:34:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Nov 2018 08:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32790 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 32790-submit@debbugs.gnu.org id=B32790.15433940175248 (code B ref 32790); Wed, 28 Nov 2018 08:34:01 +0000 Original-Received: (at 32790) by debbugs.gnu.org; 28 Nov 2018 08:33:37 +0000 Original-Received: from localhost ([127.0.0.1]:52811 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gRvHt-0001Ma-9v for submit@debbugs.gnu.org; Wed, 28 Nov 2018 03:33:37 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]:48487) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gRvHr-0001MM-AM for 32790@debbugs.gnu.org; Wed, 28 Nov 2018 03:33:35 -0500 Original-Received: from [192.168.1.101] ([212.95.5.26]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LwrS8-1fLoyK2X28-016RFT; Wed, 28 Nov 2018 09:33:24 +0100 In-Reply-To: <87h8g2m9ii.fsf@mail.linkov.net> X-Provags-ID: V03:K1:PA1zDlJFESGkJ6xHW99Ge6tB/6okK7KGyOVSDnaPVk3M3pvzhtH 2etUOA9h4kD7rZyXhydHfkcOennGx3Yj+5zc72sRwg+rLNLMXUunfhVmYAcOrUWWk5l/GPk 64bM+qTFdxRC9MP2lhcO8RvLWcFohhsIEwmv6E3bFyu8g2VNgpxbG8zgQn3fG0fx2ElLMMT P8i1eX4gvAjrn8h8MncVg== X-UI-Out-Filterresults: notjunk:1;V03:K0:/JM4VqQ45UE=:Ri52eh2zEUNsf1lHvjCwuh 1L4sb2jHcw7Crw2b27bVn0rucf9Xeb/NPGLszz/h5n+SgWCDgr/7f85nQeBRmQ9Pl0zEqNAnr VmcGNFxonBxB+Zyl7fy4JUlKuspaflsEWJZOzvztlji5vDM6QaePMTYtWx5aL6HzSjUN92KxY uc9rQ/B4qNlbGZvQ8QqpJnkBDzmoGCIRv3/m7arliH6ciB9y2H9ihREFKurXP8wYB874w5tdL 7zg3zmKvyO6YbaHNHbJpTt/WCM9hlfZdIlc1yOMyfugAynwTQVaTQ7/NklR0/MGTqv8eOnLpd ECBHajTJPV4pZnR2iprJ+1FvgQZLrBP0SQGDrTqlmkaHzuKiooSxwy1KkTpLlL7zLaRL364LK TKwi38BHQ6Vb+zoZ6KwiaRsqWatsiA636UO/VfFsFSo9uEUx1tiKqGB2fptfmoedX9SflxTSG aoDl1d7URIXT2DyEaXsPIHJnPcMPG8IAklCrr6rg4Ny7nJN0PFycH4jGBbvZ+UsfImvubiiC8 Ii7QZ5cKJWnQebicZ3c5yfevvzOkUUKEqPokutBXirIJCzqo1oGLPEAlmFoqrJ/NM4dUcWRfR QhB27Tt/LVjMF7k3L4ZKDFrarXCuN6N9O0zyhor62io7G1ciqfgoFlN4flM7C/EJoz5XUwNte 34JahT1MCV6W0EFWqjNOOh5H90V+tFZ7tovA3I3pwhg7KyhBG0k/lJUIXuoquJufYuZFPIk6G jWxgiR0j1AT/giuVajKBu1yneHzKh+MQe7Goe91N/t+Gy0je0zkWTMD+IZ2TtzPnvbOVk1LG X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:152848 Archived-At: > + "If non-nil, have `switch-to-buffer' run `pop-to-buffer-same-window'. > +This means that when switching the buffer it respects display actions > +specified for `display-buffer'. So `switch-to-buffer' will display the > +buffer in the window specified by the ACTION argument of `display-buffer', > +or by the rules in `display-buffer-alist' and other related variables." I don't think this is right because 'switch-to-buffer' does not have a display action it can pass to 'display-buffer'. The behavior is subject to 'display-buffer-overriding-action', 'display-buffer-alist' and other related variables alone IIUC. Furthermore, the doc-string of 'switch-to-buffer' should be amended like: If the option 'switch-to-buffer-obey-display-actions' is non-nil, run the function 'pop-to-buffer-same-window' instead. This may display the buffer in an arbitrary window as specified by 'display-buffer-overriding-action', 'display-buffer-alist' and other display related variables. If this results in displaying the buffer in the selected window, window start and point are adjusted as prescribed by the option `switch-to-buffer-preserve-window-point'. Otherwise, these are left alone. And the following part of the doc-string If optional argument FORCE-SAME-WINDOW is non-nil, the buffer must be displayed in the selected window when called non-interactively; if that is impossible, signal an error rather than calling `pop-to-buffer'. is presumably invalid when 'switch-to-buffer-obey-display-actions' is non-nil. Right? martin