From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kai Grossjohann Newsgroups: gmane.emacs.devel Subject: Re: M-n in diff mode: use to a better spot? Date: Mon, 07 Jun 2004 07:13:18 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <86y8n0osr5.fsf@rumba.de.uu.net> References: <86r7st3pv9.fsf@rumba.de.uu.net> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1086585219 4195 80.91.224.253 (7 Jun 2004 05:13:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 7 Jun 2004 05:13:39 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Jun 07 07:13:34 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BXCRx-0004N7-00 for ; Mon, 07 Jun 2004 07:13:33 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BXCRx-0006Ip-00 for ; Mon, 07 Jun 2004 07:13:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BXCST-0006n1-Vq for emacs-devel@quimby.gnus.org; Mon, 07 Jun 2004 01:14:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BXCSQ-0006mm-Vw for emacs-devel@gnu.org; Mon, 07 Jun 2004 01:14:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BXCSP-0006mT-Fr for emacs-devel@gnu.org; Mon, 07 Jun 2004 01:14:02 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BXCSP-0006mQ-Dw for emacs-devel@gnu.org; Mon, 07 Jun 2004 01:14:01 -0400 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BXCRm-0005ay-0t for emacs-devel@gnu.org; Mon, 07 Jun 2004 01:13:22 -0400 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1BXCRl-0004kh-00 for ; Mon, 07 Jun 2004 07:13:21 +0200 Original-Received: from 139.4.37.213 ([139.4.37.213]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 07 Jun 2004 07:13:21 +0200 Original-Received: from kai by 139.4.37.213 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 07 Jun 2004 07:13:21 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 17 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 139.4.37.213 User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:3V5fO5MZVafwEiz/thM37suk3GY= X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:24633 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:24633 Richard Stallman writes: > WIBNI there was some automatic way of moving to the right spot in the > diff buffer, so that C-x 4 a can provide a better default? > > Are you suggesting that if point is at the start of the hunk, C-x 4 a > should operate on the file position of first change in the hunk, rather > than on the file position corresponding to point? That would have the > effect you want, and I think it would not cause problems. That would be fine. Another possibility is for M-n to move to the first +/-/! line inside the hunk instead of to the start of the hunk. Yet another possibility is to make a new command which moves to the +/-/! line inside the hunk. I would be happy with any one of these. Kai