From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#19170: 25.0.50; enhancement request: `compare-windows' use across frames Date: Mon, 24 Nov 2014 20:09:22 -0800 (PST) Message-ID: References: <32848088-e8db-46dc-b9c7-f53bc46bb4e1@default> <87egss9r7v.fsf@mail.linkov.net> <2f6cb7a6-e050-4909-9b54-d651523bb5d5@default> <87egss86a8.fsf@mail.linkov.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1416888633 8610 80.91.229.3 (25 Nov 2014 04:10:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Nov 2014 04:10:33 +0000 (UTC) Cc: 19170@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 25 05:10:25 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Xt7SK-00085O-GW for geb-bug-gnu-emacs@m.gmane.org; Tue, 25 Nov 2014 05:10:24 +0100 Original-Received: from localhost ([::1]:55368 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xt7SJ-0002x3-Rj for geb-bug-gnu-emacs@m.gmane.org; Mon, 24 Nov 2014 23:10:23 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40713) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xt7S8-0002wJ-88 for bug-gnu-emacs@gnu.org; Mon, 24 Nov 2014 23:10:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xt7Rz-0005Bz-Di for bug-gnu-emacs@gnu.org; Mon, 24 Nov 2014 23:10:12 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47232) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xt7Rz-0005BI-9U for bug-gnu-emacs@gnu.org; Mon, 24 Nov 2014 23:10:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Xt7Ry-0003d3-Pl for bug-gnu-emacs@gnu.org; Mon, 24 Nov 2014 23:10:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 Nov 2014 04:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19170 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19170-submit@debbugs.gnu.org id=B19170.141688857113859 (code B ref 19170); Tue, 25 Nov 2014 04:10:02 +0000 Original-Received: (at 19170) by debbugs.gnu.org; 25 Nov 2014 04:09:31 +0000 Original-Received: from localhost ([127.0.0.1]:44445 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xt7RT-0003bR-BU for submit@debbugs.gnu.org; Mon, 24 Nov 2014 23:09:31 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:30641) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xt7RQ-0003bF-2E for 19170@debbugs.gnu.org; Mon, 24 Nov 2014 23:09:28 -0500 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id sAP49Oui030032 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 25 Nov 2014 04:09:25 GMT Original-Received: from aserz7022.oracle.com (aserz7022.oracle.com [141.146.126.231]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id sAP49NV7013486 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Tue, 25 Nov 2014 04:09:24 GMT Original-Received: from abhmp0011.oracle.com (abhmp0011.oracle.com [141.146.116.17]) by aserz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id sAP49Ne5013476; Tue, 25 Nov 2014 04:09:23 GMT In-Reply-To: <87egss86a8.fsf@mail.linkov.net> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8.2 (807160) [OL 12.0.6691.5000 (x86)] X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:96531 Archived-At: > > The main reason for the bug report, however, is the inability > > to choose the two windows, especially when they are in different > > frames. Cycling via `other-window' is limited when you have > > multiple frames (each possibly with multiple windows). It is > > even somewhat limited in the typical case of two windows in the > > same frame. >=20 > Ediff-windows is session-based, whereas compare-windows is > stateless. > It would be a major inconvenience to select a window to compare > before every invocation of compare-windows. I didn't say before every invocation of compare-windows, did I? I said that an optional behavior would be to choose the second window in some way. IOW, on user request (e.g., via non-positive prefix arg), a user would be able to choose the second window. How to choose? Click the mouse in a window, or choose a window by name using the keyboard - those are two possibilities I suggested. I can code something up as a POC, when I get a moment, if that helps. Yes, I realize that things are different for Ediff: `buffer-list' is ordered wrt access time, and there is no equivalent list for windows (AFAIK). For Ediff, you can just click two buffers with the mouse and they become the defaults, because of the time-ordering of `buffer-list'. (Ediff only needs the buffer, regardless of which window you click in that might be showing the same buffer.) > Although I'm aware > of this problem in the single frame with three windows, at least > the rule of selecting a window is simple, so it's easy to arrange > windows in the previous-next order for comparison. I guess I'm not aware of this. What is the "rule of selecting a window", so that I can get `compare-windows' to compare the selected window against any other window that I choose?