From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Herring, Davis" Newsgroups: gmane.emacs.devel Subject: RE: [PATCH] Showing the relevant part of a diff Date: Sat, 16 Jul 2016 02:14:11 +0000 Message-ID: References: <83vb5lrss7.fsf@gnu.org> <83h9h3nmjq.fsf@gnu.org> , <57895355.4010803@lanl.gov> 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 1468636306 1826 80.91.229.3 (16 Jul 2016 02:31:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Jul 2016 02:31:46 +0000 (UTC) To: Emacs development discussions Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 16 04:31:36 2016 Return-path: Envelope-to: ged-emacs-devel@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 1bOFNw-0007N3-Nd for ged-emacs-devel@m.gmane.org; Sat, 16 Jul 2016 04:31:20 +0200 Original-Received: from localhost ([::1]:35654 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bOF7c-0005km-0q for ged-emacs-devel@m.gmane.org; Fri, 15 Jul 2016 22:14:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46126) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bOF7V-0005iv-9I for emacs-devel@gnu.org; Fri, 15 Jul 2016 22:14:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bOF7Q-0007L9-7o for emacs-devel@gnu.org; Fri, 15 Jul 2016 22:14:21 -0400 Original-Received: from proofpoint4.lanl.gov ([2001:400:4210:400::a4]:36147) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bOF7P-0007Kd-Sr for emacs-devel@gnu.org; Fri, 15 Jul 2016 22:14:16 -0400 Original-Received: from mailrelay2.lanl.gov (mailrelay2.lanl.gov [128.165.4.103]) by mailgate4.lanl.gov (8.15.0.59/8.15.0.59) with ESMTP id u6G2ECoM032048 for ; Fri, 15 Jul 2016 20:14:14 -0600 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by mailrelay2.lanl.gov (Postfix) with ESMTP id 1A3FFF2C868 for ; Fri, 15 Jul 2016 20:14:12 -0600 (MDT) X-NIE-2-Virus-Scanner: amavisd-new at mailrelay2.lanl.gov Original-Received: from ECS-EXG-P-CH01.win.lanl.gov (ecs-exg-p-ch01.win.lanl.gov [128.165.106.11]) by mailrelay2.lanl.gov (Postfix) with ESMTP id 03395F2C85D for ; Fri, 15 Jul 2016 20:14:12 -0600 (MDT) Original-Received: from ECS-EXG-P-MB01.win.lanl.gov ([169.254.1.37]) by ECS-EXG-P-CH01.win.lanl.gov ([128.165.106.11]) with mapi id 14.03.0301.000; Fri, 15 Jul 2016 20:14:12 -0600 Thread-Topic: [PATCH] Showing the relevant part of a diff Thread-Index: AdFq1dkEfO0ULeB2RLCQSdR8ko6sHQAHEwY6AEkM1zIAAiQdpQAAP5zHHK+o9YAABpVgKA== In-Reply-To: <57895355.4010803@lanl.gov> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [128.165.106.66] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.15.96, 1.0.3, 0.0.0000 definitions=2016-07-16_01:2016-07-15, 2016-07-16, 1970-01-01 signatures=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 2001:400:4210:400::a4 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:205752 Archived-At: > "soon" has finally arrived. There are now several "preparatory"=0A= > patches. The first is just an update of the cleanup from before=0A= > (February), but then there's [...]=0A= =0A= My subtlety will be by undoing. For those who haven't been waiting 5 month= s with bated breath, this is what "February" means: http://lists.gnu.org/ar= chive/html/emacs-devel/2016-02/msg01066.html and following.=0A= =0A= In short, in several circumstances where the text of a buffer is the "new" = side of a diff (C-x v =3D, C-x v D, M-x diff-backup, and M-x diff-buffer-wi= th-file; we could add M-x diff itself), this code displays the diff with po= int set to the place in the diff that corresponds to point in the buffer. = This is either a context line, an added/changed line, or the boundary betwe= en two hunks (or before the first, or after the last) in case point is too = far from a change to be included in the context.=0A= =0A= C-x v =3D was the original inspiration: this changes it from "What have I c= hanged in this file?" to "What have I changed _here_?". I frequently find = myself wanting to ask the latter question, and searching through the diff f= or my current position is tedious. If the answer is "nothing, but there ar= e changes elsewhere in the file", putting point on a hunk boundary shows wh= at the nearest changes are.=0A= =0A= Davis=0A= =0A= --=0A= This product is sold by volume, not by mass. If it appears too dense or=0A= too sparse, it is because mass-energy conversion has occurred during=0A= shipping.=