all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: help-gnu-emacs@gnu.org
Subject: Re: Tweaking magit/diff mode to be more helpful in text editing
Date: Wed, 01 Jun 2016 12:00:45 +0800	[thread overview]
Message-ID: <87h9ddsglu.fsf@ericabrahamsen.net> (raw)
In-Reply-To: 20160531075538.GA25176@tuxteam.de

<tomas@tuxteam.de> writes:

> On Tue, May 31, 2016 at 02:49:35PM +0800, Eric Abrahamsen wrote:
>
> [...]
>
>> What I'd really like is to find a way [...] of only showing the
>> actual edits, not the filling [...]
>
> You mean a diff which works at whole paragraph level instead of
> at line level, as if the whole paragraph were a big honkin' line?

Yup, that's exactly it. I'm also just considering the dumb kludge of
clobbering Magit's deffaces. That wouldn't solve any of the other
issues, though.

> The "word processors" seem to "see" texts in this way. With
> Emacs we are in a somewhat schizophrenic spot. You might try
> actually having one-line paragraphs and use visual-line mode
> with word wrapping; be warned that many an Emacs algorithm
> doesn't like extremely long lines (they work, but they let
> you notice their distaste :-)

I've tried visual-line-mode before, and didn't like it too much.

I just found wdiff[1]! This looks to be exactly what I want, and it's
got the right brand, too :) There's also something called adiff.

I've installed it, and tweaked my git config so that I can call "git
difftool --tool=wdiff" and see the diff using wdiff. Right now it spits
out the whole file, not just changes-plus-context, but presumably I can
figure out how to change that.

I suppose I might be able to fool with Magit so that it displays diffs
using the wdiff difftool, but probably I should just write some sort of
standalone mode for doing this display.

But then I'd still want to write git integration, to diff against the
index...

Are any of the Magit developers here? How hard would it be to add wdiff
display as a sort of paste-on command to Magit? Obviously the diffs
themselves can't be fed to git in any useful way, but it would be great
to just have a command that compares commits using wdiff...

Progress!

E

[1] https://www.gnu.org/software/wdiff/




  reply	other threads:[~2016-06-01  4:00 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
2016-06-01  3:08   ` Eric Abrahamsen
2016-05-31  7:55 ` tomas
2016-06-01  4:00   ` Eric Abrahamsen [this message]
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=87h9ddsglu.fsf@ericabrahamsen.net \
    --to=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.