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: Re: Tweaking magit/diff mode to be more helpful in text editing Date: Wed, 01 Jun 2016 11:08:24 +0800 Message-ID: <87lh2psj13.fsf@ericabrahamsen.net> References: <87shwyvi0w.fsf@ericabrahamsen.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1464750570 4264 80.91.229.3 (1 Jun 2016 03:09:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 Jun 2016 03:09:30 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 01 05:09:18 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 1b7wX0-0005bN-3y for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Jun 2016 05:09:18 +0200 Original-Received: from localhost ([::1]:39395 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7wWz-0002gl-9d for geh-help-gnu-emacs@m.gmane.org; Tue, 31 May 2016 23:09:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49905) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7wWO-0002eR-3d for help-gnu-emacs@gnu.org; Tue, 31 May 2016 23:08:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b7wWJ-0001fS-0A for help-gnu-emacs@gnu.org; Tue, 31 May 2016 23:08:38 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:42815) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7wWI-0001fN-PI for help-gnu-emacs@gnu.org; Tue, 31 May 2016 23:08:34 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1b7wWF-00054d-1U for help-gnu-emacs@gnu.org; Wed, 01 Jun 2016 05:08:31 +0200 Original-Received: from 111.197.167.74 ([111.197.167.74]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 01 Jun 2016 05:08:31 +0200 Original-Received: from eric by 111.197.167.74 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 01 Jun 2016 05:08:31 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 31 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 111.197.167.74 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cancel-Lock: sha1:3FPlUHm/xlsiKwiag20KLUrL+lM= 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:110156 Archived-At: Yuri Khan writes: > On Tue, May 31, 2016 at 12:49 PM, Eric Abrahamsen > wrote: > >> 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? > > I have an idea. > Whether it’s clever or stupid, is up to you. > > Do not fill paragraphs based on line width. > Wrap lines at stable positions based on sentence structure > such as sentence and clause boundaries > like I’m doing here. > > This way, diffs will be compact > (the worst case is when a single line grows too long > and you split it at a logical point near the middle) > and line breaks will be eliminated anyway > when the document is rendered to HTML > or whatever other form. > > (One disadvantage is that it looks like a poem.) Ha, that would be quite a mental adjustment! I might give it a shot, though. Perhaps my writing would improve if I treated it like poetry...