all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Arni Magnusson <arnima@hafro.is>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 11067@debbugs.gnu.org
Subject: bug#11067: 24.0.94.1; diff-buffer-with-file
Date: Sat, 24 Mar 2012 02:28:32 +0000 (UTC)	[thread overview]
Message-ID: <alpine.LFD.2.02.1203240155460.61501@hafstokkur.hafro.is> (raw)
In-Reply-To: <jwvehsikbqz.fsf-monnier+emacs@gnu.org>

Hi Stefan, thanks for the response.

Being able to set `diff-command' to any external program is a great 
feature in Emacs, in my experience. I have been using it for many Emacs 
versions, and I would miss this capability if it would be removed from 
Emacs 24.

In Windows I set `diff-command' to "winmerge" and in Linux I set it to 
"kompare". Next week I might set it to whatever I find the most efficient 
diff program for me.

This lets me view the differences in a feature-rich external diff program. 
I can visualize the differences between my modified buffer and saved state 
much more efficiently than with diff. Sure, diff is okay for visualizing 
the changes, ediff would be better, but really the external diff programs 
are much more efficient for me. My `ediff-mode-hook' is extensive, but I 
still find the external programs more efficient.

I understand that pure diff is, well, pure. But I remember how impressed 
and thankful I was when I disovered the flexibility of `diff-command', and 
I'm guessing many other Emacs users have found it practical to set it to 
something other than "diff". Comparing changes is an important task when 
editing, and it's great that Emacs can delegate this task to specialized 
programs, although the default is to handle things within Emacs.

Best regards,

Arni



On Fri, 23 Mar 2012, Stefan Monnier wrote:

>> http://alpha.gnu.org/gnu/emacs/windows/emacs-20120319-r107630-bin-i386.zip
>> and `diff-buffer-with-file' is not working like it did in Emacs 23.4.1
>> 1. Start emacs -Q
>> 2. Set `diff-command' to "winmerge" and `diff-switches' to nil
>
> It seems that's your problem: winmerge is not a replacement for `diff'
> because it does not accept the "-L <label>" argument of diff.
>
> Any particular reason to use winmerge rather than diff?  Does it let you
> view the diff in winmerge, or does it return a diff-style output in *diff*?
>
>
>        Stefan
>





  reply	other threads:[~2012-03-24  2:28 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-22 14:54 bug#11067: 24.0.94.1; diff-buffer-with-file Arni Magnusson
2012-03-23 21:34 ` Glenn Morris
2012-03-23 21:39   ` Glenn Morris
2012-03-24  1:49   ` Stefan Monnier
2012-03-24  6:15     ` Eli Zaretskii
2012-03-24 18:27     ` Glenn Morris
2012-03-24 21:12       ` Paul Eggert
2012-03-25  3:23         ` Stefan Monnier
2013-02-11  8:29           ` Glenn Morris
2012-03-24  1:53 ` Stefan Monnier
2012-03-24  2:28   ` Arni Magnusson [this message]
2012-03-24  6:13   ` Eli Zaretskii
2012-03-24 18:19 ` Stefan Monnier

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=alpine.LFD.2.02.1203240155460.61501@hafstokkur.hafro.is \
    --to=arnima@hafro.is \
    --cc=11067@debbugs.gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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.