From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.help Subject: Tweaking magit/diff mode to be more helpful in text editing Date: Tue, 31 May 2016 14:49:35 +0800 Message-ID: <87shwyvi0w.fsf@ericabrahamsen.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1464677439 14399 80.91.229.3 (31 May 2016 06:50:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 31 May 2016 06:50:39 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 31 08:50:29 2016 Return-path: Envelope-to: geh-help-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 1b7dVV-0001BO-0E for geh-help-gnu-emacs@m.gmane.org; Tue, 31 May 2016 08:50:29 +0200 Original-Received: from localhost ([::1]:34634 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7dVU-00035B-3l for geh-help-gnu-emacs@m.gmane.org; Tue, 31 May 2016 02:50:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35876) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7dV1-00034r-54 for help-gnu-emacs@gnu.org; Tue, 31 May 2016 02:50:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b7dUx-00033U-24 for help-gnu-emacs@gnu.org; Tue, 31 May 2016 02:49:58 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:40925) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7dUw-00033B-RS for help-gnu-emacs@gnu.org; Tue, 31 May 2016 02:49:54 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1b7dUr-0000hB-93 for help-gnu-emacs@gnu.org; Tue, 31 May 2016 08:49:49 +0200 Original-Received: from 123.115.136.119 ([123.115.136.119]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 31 May 2016 08:49:49 +0200 Original-Received: from eric by 123.115.136.119 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 31 May 2016 08:49:49 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 25 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 123.115.136.119 User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.1.50 (gnu/linux) Cancel-Lock: sha1:nArHeyhT1xZ8jBM7bdAuNI6t3UU= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:110142 Archived-At: So I do a fair amount of writing in Org, in files that are kept in a git repository, and I've found that, when editing large documents, it can be nice to have the Magit Diff buffer open to one side, which I can refresh from time to time and see the edits I've made. It's kind of an alternative to Track Changes, etc. I've set `magit-diff-refine-hunk' to 'all, and that helps distinguish the actual edits from the fact that the paragraphs have been re-filled. It's not ideal, but it's okay. I'm currently editing someone else's (very long) document, and instead of actually using track changes in LibreOffice, I'd much rather give him a clean odt document exported from Org, and along with that an html document made using diff2html or one of the other similar tools, so he can check the edits if he wants. What I'd really like is to find a way (either a diff algorithm or a Magit tweak) of only showing the actual edits, not the filling. And then to still be able to export that in a way that will allow me to give the author a file only showing those edits. Does anyone have any clever ideas in that direction? Thanks! Eric