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: Wed, 26 Nov 2014 19:18:39 -0800 (PST) Message-ID: <3dcedc6e-0613-4af5-a061-02395bc9a506@default> References: <32848088-e8db-46dc-b9c7-f53bc46bb4e1@default> <87egss9r7v.fsf@mail.linkov.net> <2f6cb7a6-e050-4909-9b54-d651523bb5d5@default> <87egss86a8.fsf@mail.linkov.net> <87egsr0xjt.fsf@mail.linkov.net> <87egsqzy74.fsf@mail.linkov.net> <877fyhfno0.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 1417058376 26083 80.91.229.3 (27 Nov 2014 03:19:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Nov 2014 03:19:36 +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 Thu Nov 27 04:19:28 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 1Xtpc7-00065t-Ru for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Nov 2014 04:19:28 +0100 Original-Received: from localhost ([::1]:36870 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xtpc7-0001BW-D3 for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Nov 2014 22:19:27 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38379) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xtpbv-0001BA-4c for bug-gnu-emacs@gnu.org; Wed, 26 Nov 2014 22:19:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xtpbi-0007NA-Fa for bug-gnu-emacs@gnu.org; Wed, 26 Nov 2014 22:19:15 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49586) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xtpbi-0007N5-Bx for bug-gnu-emacs@gnu.org; Wed, 26 Nov 2014 22:19:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Xtpbi-0006H5-01 for bug-gnu-emacs@gnu.org; Wed, 26 Nov 2014 22:19: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: Thu, 27 Nov 2014 03:19:01 +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.141705832724095 (code B ref 19170); Thu, 27 Nov 2014 03:19:01 +0000 Original-Received: (at 19170) by debbugs.gnu.org; 27 Nov 2014 03:18:47 +0000 Original-Received: from localhost ([127.0.0.1]:46799 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XtpbS-0006GZ-JP for submit@debbugs.gnu.org; Wed, 26 Nov 2014 22:18:46 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:48533) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XtpbP-0006GP-O4 for 19170@debbugs.gnu.org; Wed, 26 Nov 2014 22:18:44 -0500 Original-Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id sAR3IggF014871 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 27 Nov 2014 03:18:42 GMT Original-Received: from userz7022.oracle.com (userz7022.oracle.com [156.151.31.86]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id sAR3Ifp5014293 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 27 Nov 2014 03:18:42 GMT Original-Received: from abhmp0002.oracle.com (abhmp0002.oracle.com [141.146.116.8]) by userz7022.oracle.com (8.14.5+Sun/8.14.4) with ESMTP id sAR3IecT029635; Thu, 27 Nov 2014 03:18:41 GMT In-Reply-To: <877fyhfno0.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: ucsinet21.oracle.com [156.151.31.93] 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:96657 Archived-At: > > Some things that I think are missing, or that might be helpful: > > > > 1. Maybe echo some indication of which two windows are compared > > (?). >=20 > Currently `compare-windows' displays in the echo area "Mark set" > which is mostly useless. We could overwrite it with more specific > messages, e.g. >=20 > Next difference between window1 and window2 > Next match between window1 and window2 > No more matching points between window1 and window2 Please do. And maybe print the point values too, unless they're the same buffer? Different, A: 2349, B: 1358 Same: A: 2349, B: 1358 No match Dunno what the names might be. They could be the buffer names (possibly truncated, if long), if different. > > I'm thinking that having that last-selected window recorded > > always might be a good thing, useful for more than just > > `compare-windows'. (And perhaps (?) the NORECORD arg of > > `select-window' should control updating of `last-window-selected' > > also. Dunno.) > > > > What do you think? Does this make sense? >=20 > We already have a lot of `last-...' variables, so a new variable > for the last selected window makes sense. Then it would be > convenient to compare `(selected-window)' with `last-selected- > window'. Please do. I'm sure that whatever you come up with will be good. IMO, this will make the command much more useful. I've been using it for decades, but never gave much thought to trying to improve it. It is a very useful command.