From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: Re: compare-windows should allow backwards comparing Date: Wed, 29 Dec 2004 03:45:18 +0200 Organization: JURTA Message-ID: <87ekh92871.fsf@jurta.org> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1104284905 20978 80.91.229.6 (29 Dec 2004 01:48:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 29 Dec 2004 01:48:25 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 29 02:48:19 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CjSwg-0005oK-00 for ; Wed, 29 Dec 2004 02:48:19 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CjT7G-0004lH-Jo for geb-bug-gnu-emacs@m.gmane.org; Tue, 28 Dec 2004 20:59:10 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CjT67-0004bm-EL for bug-gnu-emacs@gnu.org; Tue, 28 Dec 2004 20:57:59 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CjT63-0004ZW-RS for bug-gnu-emacs@gnu.org; Tue, 28 Dec 2004 20:57:56 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CjT62-0004XH-Ge for bug-gnu-emacs@gnu.org; Tue, 28 Dec 2004 20:57:54 -0500 Original-Received: from [194.126.101.98] (helo=MXR-4.estpak.ee) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CjSsl-0006ar-61 for bug-gnu-emacs@gnu.org; Tue, 28 Dec 2004 20:44:11 -0500 Original-Received: from mail.neti.ee (80-235-33-132-dsl.mus.estpak.ee [80.235.33.132]) by MXR-4.estpak.ee (Postfix) with ESMTP id E0BAA10B671; Wed, 29 Dec 2004 03:43:49 +0200 (EET) Original-To: Dan Jacobson In-Reply-To: (Dan Jacobson's message of "Wed, 29 Dec 2004 06:03:44 +0800") User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) X-Virus-Scanned: by amavisd-new-2.2.1 (20041222) (Debian) at neti.ee X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:10248 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:10248 Dan Jacobson writes: > compare-windows should allow backwards comparing, i.e., marching > upwards, not just always downwards. Great idea! I often need this too. Like searching for a text with C-s needs the reverse key C-r to return to the previous matches, searching for the differences needs the reverse function too. And it seems it is easily implementable: just changing `forward' to `backward' in some function names and changing the sign in some arithmetic operations. But what would be the best UI for this? `compare-windows' already has a prefix arg `ignore-whitespace', so using a prefix key to switch the direction is not possible. Maybe creating the new command `compare-windows-backward' is enough? -- Juri Linkov http://www.jurta.org/emacs/