all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Yuri Khan <yuri.v.khan@gmail.com>
To: Eric Abrahamsen <eric@ericabrahamsen.net>
Cc: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Re: Tweaking magit/diff mode to be more helpful in text editing
Date: Tue, 31 May 2016 13:48:11 +0600	[thread overview]
Message-ID: <CAP_d_8WrNnsSWS-vqxwQqaYay=zvsqDvOGQgTVbq=fbLPgC3Hw@mail.gmail.com> (raw)
In-Reply-To: <87shwyvi0w.fsf@ericabrahamsen.net>

On Tue, May 31, 2016 at 12:49 PM, Eric Abrahamsen
<eric@ericabrahamsen.net> 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.)



  reply	other threads:[~2016-05-31  7:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-31  6:49 Tweaking magit/diff mode to be more helpful in text editing Eric Abrahamsen
2016-05-31  7:48 ` Yuri Khan [this message]
2016-06-01  3:08   ` Eric Abrahamsen
2016-05-31  7:55 ` tomas
2016-06-01  4:00   ` Eric Abrahamsen
2016-06-01  4:17     ` Yuri Khan
2016-06-01  5:08       ` Eric Abrahamsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAP_d_8WrNnsSWS-vqxwQqaYay=zvsqDvOGQgTVbq=fbLPgC3Hw@mail.gmail.com' \
    --to=yuri.v.khan@gmail.com \
    --cc=eric@ericabrahamsen.net \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.