From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Two feature ideas for diffs Date: Fri, 08 Nov 2013 00:05:55 +0200 Message-ID: <87mwlfuat8.fsf@yandex.ru> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1383861982 28057 80.91.229.3 (7 Nov 2013 22:06:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 Nov 2013 22:06:22 +0000 (UTC) Cc: emacs-devel@gnu.org To: Barry OReilly Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 07 23:06:26 2013 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 1VeXib-0008Cr-A2 for ged-emacs-devel@m.gmane.org; Thu, 07 Nov 2013 23:06:25 +0100 Original-Received: from localhost ([::1]:42987 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VeXia-0006tf-Ot for ged-emacs-devel@m.gmane.org; Thu, 07 Nov 2013 17:06:24 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37375) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VeXiO-0006rq-3R for emacs-devel@gnu.org; Thu, 07 Nov 2013 17:06:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VeXiF-0005Nc-Ms for emacs-devel@gnu.org; Thu, 07 Nov 2013 17:06:12 -0500 Original-Received: from mail-ee0-x22c.google.com ([2a00:1450:4013:c00::22c]:42719) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VeXiF-0005NR-Eg for emacs-devel@gnu.org; Thu, 07 Nov 2013 17:06:03 -0500 Original-Received: by mail-ee0-f44.google.com with SMTP id d41so630386eek.31 for ; Thu, 07 Nov 2013 14:06:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=jZ1YnVvvZLRcRhinUECDT+hfLOJGtZCIWD65/2ESupQ=; b=CE3V1JgC6QFHKZ3sQSdBb/5z5Y05vtbnrV+jNVn24VsyDLcAnjIgbd8HG6FHjo7ZGe TZ1uW8ZGEmhyIRrUiEKfsRYAWQ7gSElAJxiwFtA/jeqflyJFpNLGq1N7J/w6q8nXhw8q 7+Q++XBIbpoFt7hDeo1+275sgUgYFYGKJ2mqWwiIsbDePv/YghxZ7o2elTM8YHT7N/zz FGmTStF3D5meKfqe4+SlpLiupp3oAXl0jlcJtA/uAa90U0nXM9QtQ5d0p3lf8Kaf4+P1 9xPIDjYKBoC6+/jUKSVblpuC4s96oTTFOpIidpldGLXyNsEqCBGStvgMvxsj7XISS18w qcEw== X-Received: by 10.14.1.130 with SMTP id 2mr12030197eed.24.1383861962289; Thu, 07 Nov 2013 14:06:02 -0800 (PST) Original-Received: from axl (87-236-188.netrun.cytanet.com.cy. [87.228.236.188]) by mx.google.com with ESMTPSA id k7sm6249787eeg.13.2013.11.07.14.06.00 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 07 Nov 2013 14:06:01 -0800 (PST) In-Reply-To: (Barry OReilly's message of "Thu, 7 Nov 2013 13:49:42 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c00::22c X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:165055 Archived-At: Barry OReilly writes: >> Nice, but it's a pity it's written as git-specific. Git should only >> be one of the backends and the frontend should call the appropriate >> backend after checking what VC the file is under. > > It should operate on unified diffs and provide the customization for > how to obtain the unified diffs, eg 'git diff'. > > Dmitry, can diff-hl be used to review patch files distributed as diff > files without relying on a VCS? No, it's rather tied to the VC package. But why would you want that? The main benefit of diff-hl is to see the diff on the margin updated as you edit and save the file.