From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#25946: 26.0.50; display-buffer ignores ignores reusable-frames in display-buffer-alist Date: Sun, 05 Mar 2017 12:27:53 +0100 Message-ID: <87pohwhsjq.fsf@rosalinde> References: <877f46d6go.fsf@wi.uni-muenster.de> <58B947A2.5040001@gmx.at> <87zih2bp98.fsf@wi.uni-muenster.de> <58B97CAF.6060600@gmx.at> <87varqe7pd.fsf@wi.uni-muenster.de> <58B9B496.2020100@gmx.at> <58BAFBFF.6060706@gmx.at> <58BBE9B9.80202@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1488713355 9418 195.159.176.226 (5 Mar 2017 11:29:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 5 Mar 2017 11:29:15 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: Jens Lechtenboerger , 25946@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 05 12:29:11 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ckULe-0001sH-Nr for geb-bug-gnu-emacs@m.gmane.org; Sun, 05 Mar 2017 12:29:10 +0100 Original-Received: from localhost ([::1]:38396 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ckULk-0006Mt-PJ for geb-bug-gnu-emacs@m.gmane.org; Sun, 05 Mar 2017 06:29:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37541) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ckULa-0006Me-Vj for bug-gnu-emacs@gnu.org; Sun, 05 Mar 2017 06:29:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ckULX-0003sr-1B for bug-gnu-emacs@gnu.org; Sun, 05 Mar 2017 06:29:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42381) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ckULW-0003sl-Tg for bug-gnu-emacs@gnu.org; Sun, 05 Mar 2017 06:29:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ckULW-0006ad-O4 for bug-gnu-emacs@gnu.org; Sun, 05 Mar 2017 06:29:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 05 Mar 2017 11:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25946 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25946-submit@debbugs.gnu.org id=B25946.148871328325194 (code B ref 25946); Sun, 05 Mar 2017 11:29:02 +0000 Original-Received: (at 25946) by debbugs.gnu.org; 5 Mar 2017 11:28:03 +0000 Original-Received: from localhost ([127.0.0.1]:40572 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ckUKZ-0006YH-Mg for submit@debbugs.gnu.org; Sun, 05 Mar 2017 06:28:03 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]:51468) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ckUKY-0006Xj-44 for 25946@debbugs.gnu.org; Sun, 05 Mar 2017 06:28:02 -0500 Original-Received: from rosalinde ([62.214.231.80]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0Lqm3a-1c6BUe40NW-00eJ18; Sun, 05 Mar 2017 12:27:55 +0100 In-Reply-To: <58BBE9B9.80202@gmx.at> (martin rudalics's message of "Sun, 05 Mar 2017 11:34:33 +0100") X-Provags-ID: V03:K0:7QWb63TDCBRpxuMVaeL4fa7YA/SUg4Sg26fQgNqjEJ6aeRTbCvV sTJPaG2+BFmPoqncMaRcnf2bbS3U7x9fICKWYdE1fBJBlLdf7dLgRR8SxdgjseozE+qGv3g M1ySBrEHEGeBVEUbWUBneZGQ/nw5uO9e/sTL00xrZ9d7e08YsalbyDRuuAXrloaLMxHyFgB kJ0yeXIAxU2uwNGkwTVkA== X-UI-Out-Filterresults: notjunk:1;V01:K0:4Q82ooYuEFQ=:A5RVCnfgh1im4ypOQv4fTG KVHsXoP8hfXxJ6zirW34TjL1QsylHtNx0nVrFuH4uv9/5QhVlsk3RxFNIBVKkSLIiOpyqcBmp r+BkpJzNNviqcigWxHhbYqkIezAMtNsUhAF/oteehdHHDjKsurpBQM/J0/ms7Y7S3NMxn8Fb7 3jhdG/0QJbzDApWuXkHZ5l72vfOYpLnGVo1DdvxKzWe5fvGiYD/9qg5Kzru3CXvIKbRWbDpQ8 JIMFiS/4dUXI/7xdq0DPlNqiIt0hFoFEZr5T68kV+HXBW/9nZsU3ZeQ/DNha1KF8C+zl5MQay AfI6zD4Ffm6iobKHKOBKWCQcIZJErQtbd10D6bMdjb9kEyPhlv7yaw8ZOgiCYRO2My1XFrvq7 8VMeGUher6djPfxZHfD8vkax0w48Nofp4ignLFpkuHpsSwcNKl2XZvXrTU72jVxzbs/Bsajbe J9ywdn18fHJXxzRe/ezls0dvwGao+W8vEoPBvNt+9pGNYHo2qfUx75xthMtvd50F0nONLW9xb Q2qh2DGHhjqVfObgEOENXu47O5KNjDX3L/TCEBWgYKSh62wXJcqY/c9nQ2spGT/RWDUR7cG8O R5G69+Lpwc3LwWLIi4zsa5RVOR/0B+sAuOSN3ertIgrbdeQo6rfVNCAKGk8tvPw3tGqmKclKt aLElHqBcQOAZDgMoxHkb3Y5jdNfsudXm1GY28jzVEzjrNwPVh58yJ6MXf9hnPftTF1UiT7t4G oquJsKvCdNut4+SaBVruRfqbYYuIoFKFNFQn/jYk4lWfgGZ1Mv+XTHjtl6bf5QJkSQEgh5PY 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:130205 Archived-At: On Sun, 05 Mar 2017 11:34:33 +0100 martin rudalics wrote: > Can some kind soul please apply the attached patch to master? The > commit message is > > > In `window--display-buffer' fix behavior reported in Bug#25946 > > * lisp/window.el (window--display-buffer): Set the dedicated > status of the window used and clear its history of previous > buffers also for the case that the window already shows the > buffer to be displayed. (Bug#25946) > > > Many thanks in advance, martin > > diff --git a/lisp/window.el b/lisp/window.el > index 358d7bc..5050243 100644 > --- a/lisp/window.el > +++ b/lisp/window.el > @@ -6643,11 +6643,11 @@ window--display-buffer > (display-buffer-record-window type window buffer) > (unless (eq buffer (window-buffer window)) > (set-window-dedicated-p window nil) > - (set-window-buffer window buffer) > - (when dedicated > - (set-window-dedicated-p window dedicated)) > - (when (memq type '(window frame)) > - (set-window-prev-buffers window nil))) > + (set-window-buffer window buffer)) > + (when dedicated > + (set-window-dedicated-p window dedicated)) > + (when (memq type '(window frame)) > + (set-window-prev-buffers window nil)) > (let ((quit-restore (window-parameter window 'quit-restore)) > (height (cdr (assq 'window-height alist))) > (width (cdr (assq 'window-width alist))) I pushed it in your name as commit 702aeca. Steve Berman