Questions tagged [emacs-ediff]

Ediff is a feature of Emacs which allows comparing two or more files or buffers, as well as merging two files or buffers into one.

Ediff user manual: http://www.delorie.com/gnu/docs/emacs/ediff_1.html

Ediff page on Emacs wiki: http://emacswiki.org/emacs/EdiffMode

19 questions
41
votes
4 answers

Conflict resolution with Emacs Ediff: How can I take the changes of both versions

(Question adapted from How do I combine the two variants of a conflict in emacs' emerge?) I have a file with merge conflict markers. It looks similar to this: <<<<<<< HEAD 522ADC9C14B2FD9D00F56BAD /* close_test_button.png in Resources…
koppor
  • 19,079
  • 15
  • 119
  • 161
32
votes
1 answer

emacs ediff-revision for Hg complains about Wrong number of arguments

Trying to get ediff-revision working on hg (mercurial-1.8.4) repo using Emacs v23.2 (9.0) on OS X Lion. I found this answer for the 1st part of my problem but now I'm getting this from Emacs ediff-revision: M-x ediff-revision Compare revisions for…
user1161189
  • 321
  • 2
  • 3
21
votes
2 answers

Can ediff merge simultaneously show the ancestor, A, B, and merge buffers?

I'm a die-hard emacs user, but so far have always used kdiff3 for 3-way merges with ancestor, e.g. when performing git merge or rebase. I really like the way that kdiff3 can not only simultaneously display all four versions of the text being…
Adam Spiers
  • 17,397
  • 5
  • 46
  • 65
19
votes
6 answers

How can I use ediff under Windows + NTEmacs?

I have Emacs version 23 on Windows and it seem the ediff executable is missing? From where can I download ediff for Emacs on Windows?
sam
  • 291
  • 1
  • 2
  • 5
18
votes
3 answers

ediff-split-window-function horizontal==vertical?

Emacs 23.1.1 Ediff 2.81.2 on CentOs 6 Prior to any customization, Ediff would, by default, split the windows horizontally (one on top of the other). I wanted them side by side so I tried adding the following lines to my .emacs (setq…
roadrider
  • 339
  • 3
  • 7
7
votes
1 answer

Ediff as git difftool

I'm trying to use emacs ediff as a git difftool. I have followed some of the configurations proposed here: Using ediff as git mergetool When it comes to comparing between different git revisions of a certain file, I have not problem at all: ediff…
Bob V
  • 73
  • 1
  • 4
7
votes
3 answers

How can I get ediff mode to stop highlighting lines that differ only by whitespace?

I have two similar functions in C++ that I want to carefully compare. I'm using the emacs function ediff-regions-linewise to compare them line-by-line. Many of the lines have small differences in their whitespace, for example: //Line from first…
Dan
  • 12,157
  • 12
  • 50
  • 84
6
votes
3 answers

emacs ediff refresh buffers

I am using emacs ediff to compare two files that I frequently update. How can I refresh or update the buffer to reflect the new file without killing and reloading ediff? When I try to update each file using C-x C-v, the Ediff Control Panel says "You…
Smed
  • 245
  • 1
  • 2
  • 5
5
votes
3 answers

Emacs ediff marked files in different dired buffers

I have the following function which runs ediff on the files I have marked in a dired buffer: (defun mkm/ediff-marked-pair () "Run ediff-files on a pair of files marked in dired buffer" (interactive) (let ((marked-files (dired-get-marked-files…
mkm
  • 673
  • 5
  • 21
3
votes
0 answers

Does the ediff mode of Emacs support synchronization points?

I have been using the ediff mode of Emacs for many years now, and I just realized that whenever I need synchronization points (*) to make sense of a diff, I fall back to Meld or KDiff3. Isn't there some support for synchronization points in ediff?…
Markus
  • 3,155
  • 2
  • 23
  • 33
2
votes
2 answers

Using ediff with C-x s (save-some-buffers) in Emacs?

C-x s uses diff to show changes. How can I use ediff instead?
Yoo
  • 17,526
  • 6
  • 41
  • 47
2
votes
0 answers

Can I use ediff against a svn branch?

I frequently have conflicting changes in another subversion branch I need to merge into my branch; ediff would go a long ways to making that easier. However, it seems psvn.el and ediff only support diffing against a revision in the same branch,…
Eddie
  • 135
  • 5
  • 10
2
votes
1 answer

How can I kill-ring-save one region's buffer with ediff?

I am doing an ediff in emacs and I want to copy the region in one of the buffers in order to paste it into a third buffer. Obviously I can do this manually, but I'd like to be able to do it with a few keystrokes similar to how a and b can be used…
Samuel Edwin Ward
  • 6,526
  • 3
  • 34
  • 62
1
vote
0 answers

How to handle this merge conflict case when using EDIFF where we will need some portion of conflicts from both Varients A and B

In some cases we would need some portion of code from both varients line in Image below. How can we handle this case using EDIFF so that the final result will be import { apple, banana, coconut } from 'fruits'
1
vote
1 answer

Is there a way to use hg record with ediff?

I've used hg record to great effect lately, but it's pretty cumbersome. Emacs ediff is a great merge tool, but I haven't seen any way to get it to work with hg record. Is there something I can stick in my .hgrc that will let me use ediff with hg…
nmichaels
  • 49,466
  • 12
  • 107
  • 135
1
2