From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#49057: 28.0.50; windmove-display-in-direction ignores windmove-display-no-select Date: Thu, 17 Jun 2021 02:08:57 +0300 Organization: LINKOV.NET Message-ID: <87mtrpjtkm.fsf@mail.linkov.net> References: <20210616064248.mqqzlt7qyxwqrcfy.ref@Ergus> <20210616064248.mqqzlt7qyxwqrcfy@Ergus> <87fsxitdmt.fsf@mail.linkov.net> <20210616121632.k365bes37rs5m6sl@Ergus> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14912"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: 49057@debbugs.gnu.org To: Ergus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 17 01:20:11 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ltepP-0003lR-EG for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 17 Jun 2021 01:20:11 +0200 Original-Received: from localhost ([::1]:52100 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ltepO-0002Ss-Ha for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 16 Jun 2021 19:20:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47762) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ltepG-0002Sk-Am for bug-gnu-emacs@gnu.org; Wed, 16 Jun 2021 19:20:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41947) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ltepG-0000Tz-2y for bug-gnu-emacs@gnu.org; Wed, 16 Jun 2021 19:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ltepF-00082C-QC for bug-gnu-emacs@gnu.org; Wed, 16 Jun 2021 19:20:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 16 Jun 2021 23:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49057 X-GNU-PR-Package: emacs Original-Received: via spool by 49057-submit@debbugs.gnu.org id=B49057.162388559830871 (code B ref 49057); Wed, 16 Jun 2021 23:20:01 +0000 Original-Received: (at 49057) by debbugs.gnu.org; 16 Jun 2021 23:19:58 +0000 Original-Received: from localhost ([127.0.0.1]:53493 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ltepC-00081q-BP for submit@debbugs.gnu.org; Wed, 16 Jun 2021 19:19:58 -0400 Original-Received: from relay10.mail.gandi.net ([217.70.178.230]:46439) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ltepA-00081b-9J for 49057@debbugs.gnu.org; Wed, 16 Jun 2021 19:19:57 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by relay10.mail.gandi.net (Postfix) with ESMTPSA id C35A0240002; Wed, 16 Jun 2021 23:19:48 +0000 (UTC) In-Reply-To: <20210616121632.k365bes37rs5m6sl@Ergus> (Ergus's message of "Wed, 16 Jun 2021 14:16:32 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:208649 Archived-At: > Sorry, I forgot to mention that line but it is enabled but I already > have that in my config. Even with that it is not working fine. Thanks for clarification, then we have a problem because pop-to-buffer insists on always selecting the new window that was displayed: ;; Make sure the window is selected (Bug#8615), (Bug#6954) (select-window window norecord)) Here is the workflow: 1. switch-to-buffer calls pop-to-buffer-same-window 2. pop-to-buffer-same-window calls pop-to-buffer 3. pop-to-buffer calls display-buffer 4. display-buffer calls display-buffer-override-next-command that calls post-function from windmove-display-in-direction that selects the old window 5. but later pop-to-buffer selects the new window, thus overriding the specified selection of the old window.