Questions tagged [diff]

58 questions
7
votes
1 answer

Lightweight (pure elisp) diffs?

I need to display word-diffs of a number of small strings. That is, I have a list of pairs similar to the following: "aaa bbb ccc" . "aaa vv ccc" "abcd ef ghkl" . "ghkl" "a (u -> h)" . "(a -> g) (u -> h)" In each case I'd like to highlight changed…
Clément
  • 3,985
  • 1
  • 23
  • 39
5
votes
3 answers

How do I check if two regions have identical content?

How do i check if two regions have identical content? Is it possible to do so while ignoring language-specific whitespace?
Ben Hyde
  • 574
  • 3
  • 9
0
votes
2 answers

Is there an Emacs function or package to visually compare two text strings?

Searching on Google, I found this website: https://www.dcode.fr/differences-2-texts. It allows "visually" comparing two text strings at the character level, returning a result like this: My question is: is there any function or package that allows…
Gabriele
  • 1,554
  • 9
  • 21
0
votes
1 answer

.. changed on disk; Really edit the buffer? :: diff

I get asked this and it gives me these options: You want to modify a buffer whose disk file has changed since you last read it in or saved it with this buffer. If you say y to go ahead and modify this buffer, you risk ruining the work of whoever…
Jason Hunter
  • 709
  • 4
  • 10
0
votes
1 answer

Why does vdiff not show differences between these two files?

Linux Mint 20, Emacs 27.2, vdiff -20210426.155 I create two files and want to find the difference between them. M-x vdiff-files Select file1.txt and file2.txt Here is the result: As you can see both files have different content (last character in…
a_subscriber
  • 4,062
  • 1
  • 18
  • 56
0
votes
1 answer

Show only different symbols. Not entire line

windows 10, dired+ when I compare two files I get this: The different in this file are two words: first second But diff tool show me that is different ENTIRE line. It's not very good. Is it possible to show only exact different symbols? smt like…
Alex
  • 801
  • 2
  • 8
  • 18