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#19259: 25.0.50; Be able to use `compare-windows' in either direction Date: Tue, 2 Dec 2014 14:53:18 -0800 (PST) Message-ID: <109d0892-03a9-4daa-8814-16207d2f3858@default> 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 1417560875 23263 80.91.229.3 (2 Dec 2014 22:54:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Dec 2014 22:54:35 +0000 (UTC) To: 19259@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 02 23:54: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 1XvwKw-0007OU-QZ for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Dec 2014 23:54:27 +0100 Original-Received: from localhost ([::1]:39064 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvwKw-0006Zg-GT for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Dec 2014 17:54:26 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40835) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvwKi-0006Ym-MM for bug-gnu-emacs@gnu.org; Tue, 02 Dec 2014 17:54:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XvwKY-0001cj-Bo for bug-gnu-emacs@gnu.org; Tue, 02 Dec 2014 17:54:12 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54917) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvwKY-0001cd-7u for bug-gnu-emacs@gnu.org; Tue, 02 Dec 2014 17:54:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XvwKX-0002r1-OU for bug-gnu-emacs@gnu.org; Tue, 02 Dec 2014 17:54:01 -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, 02 Dec 2014 22:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 19259 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.141756083410956 (code B ref -1); Tue, 02 Dec 2014 22:54:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Dec 2014 22:53:54 +0000 Original-Received: from localhost ([127.0.0.1]:52130 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XvwKP-0002qe-IT for submit@debbugs.gnu.org; Tue, 02 Dec 2014 17:53:54 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:39048) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XvwKN-0002qU-9k for submit@debbugs.gnu.org; Tue, 02 Dec 2014 17:53:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XvwKC-0001Wf-JQ for submit@debbugs.gnu.org; Tue, 02 Dec 2014 17:53:50 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:42978) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvwKC-0001WZ-GD for submit@debbugs.gnu.org; Tue, 02 Dec 2014 17:53:40 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40722) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvwK3-0006YD-ND for bug-gnu-emacs@gnu.org; Tue, 02 Dec 2014 17:53:40 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XvwJu-0001QS-Vf for bug-gnu-emacs@gnu.org; Tue, 02 Dec 2014 17:53:31 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:40684) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvwJu-0001PT-Ns for bug-gnu-emacs@gnu.org; Tue, 02 Dec 2014 17:53:22 -0500 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id sB2MrKNw026916 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 2 Dec 2014 22:53:21 GMT Original-Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id sB2MrJXs010969 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Tue, 2 Dec 2014 22:53:20 GMT Original-Received: from abhmp0017.oracle.com (abhmp0017.oracle.com [141.146.116.23]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id sB2MrJX3006799 for ; Tue, 2 Dec 2014 22:53:19 GMT 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: acsinet21.oracle.com [141.146.126.237] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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:96816 Archived-At: Especially when `compare-windows' is used repeatedly (e.g. bound to a repeatable key etc.), it can be helpful to be able to sometimes compare backward, toward bob, instead of always forward, toward eob. Please add this enhancement. It can be introduced at the user level by modifying how a prefix arg is handled. If the numeric value is 0 or greater, the behavior would be as it is now (so no change for `C-u', for instance). If the numeric value is 0 or less, then comparison would be toward bob. For example, (the parameter would be renamed ARG and) the doc string would be updated with something like this, concerning the prefix arg: ... Variable `compare-windows-whitespace' controls how whitespace is skipped. But a non-negative prefix arg means reverse the value of this variable. A non-positive prefix arg means compare backward not forward. If `compare-ignore-case' is non-nil then ignore changes in case. ... Repeatability would need to be handled using something like having `set-transient-map' recognize the repeated command and reuse the same direction, unless a prefix arg is used again to signal a direction change. E.g., if `C-=3D w' were bound to `compare-windows' then C-- C-=3D w w w w C-u w w C-- w w w would compare backward 4 times, then forward twice, then backward 3 times. In GNU Emacs 25.0.50.1 (i686-pc-mingw32) of 2014-10-20 on LEG570 Bzr revision: 118168 rgm@gnu.org-20141020195941-icp42t8ttcnud09g Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --enable-checking=3Dyes,glyphs CPPFLAGS=3D-DGLYPH_DEBUG=3D1'