all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "KARR, DAVID" <dk068x@att.com>
To: Bob Newell <bobnewell@bobnewell.net>,
	"help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: RE: Function to parse a "diff" command line to load both files into buffers and ediff them
Date: Sun, 13 May 2018 16:12:12 +0000	[thread overview]
Message-ID: <B8D164BED956C5439875951895CB4B226CEADA92@CAFRFD1MSGUSRJH.ITServices.sbc.com> (raw)
In-Reply-To: <CADoYgq98hGEeUxdg8SWVPVf3gUbxuCTfrT5hzKCP2AjdJsq+Dg@mail.gmail.com>

> -----Original Message-----
> From: help-gnu-emacs <help-gnu-emacs-bounces+dk068x=att.com@gnu.org> On
> Behalf Of Bob Newell
> Sent: Friday, May 11, 2018 10:31 AM
> To: help-gnu-emacs@gnu.org
> Subject: Re: Function to parse a "diff" command line to load both files
> into buffers and ediff them
> 
> On Thu, May 10, 2018 at 7:15 AM, KARR, DAVID <dk068x@att.com> wrote:
> > Quite often I find myself in a situation where I have a "diff" command
> that was run in a shell buffer, and I want to "transfer" that into
> ediff, by simply loading both of the files specified on the diff command
> line and then running ediff to compare them.  I could probably do this
> with a keyboard macro, but this just seems like something that someone
> must have thought of doing before.  I tried paging through the many
> functions that begin with "ediff-", but I didn't see anything that
> sounds like what I describe.  I'm using version "2.81.5".
> 
> Just wondering why you wouldn't use ediff in the first place. But if
> you really want, you could write a small function that does what you
> say.

Because the output originated from running "git diff" on the command line.

Yes, I could write that function.  I just didn't want to spend the time on doing something that someone else had already done, which is why I asked this.


  reply	other threads:[~2018-05-13 16:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-10 17:15 Function to parse a "diff" command line to load both files into buffers and ediff them KARR, DAVID
2018-05-11 17:31 ` Bob Newell
2018-05-13 16:12   ` KARR, DAVID [this message]
2018-05-14 12:39     ` Stefan Monnier
2018-05-16 22:29     ` Bob Newell
     [not found] <mailman.13605.1525973392.27995.help-gnu-emacs@gnu.org>
2018-05-21 17:50 ` unfrostedpoptart
2018-05-21 20:40 ` unfrostedpoptart

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=B8D164BED956C5439875951895CB4B226CEADA92@CAFRFD1MSGUSRJH.ITServices.sbc.com \
    --to=dk068x@att.com \
    --cc=bobnewell@bobnewell.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.