Adrian Aichner wrote:
Hi Michael, hi All, Happy new year to you!
Happy New Year to all!
Another thing:
I wish I could use
= e runs the command dired-ediff
on two directories to run `ediff-directories' automatically.
I realize this particular thing is a dired/ediff integration issue.
Pushing my point farther, wouldn't it be useful for ediff to simplify
its interface to invoke `ediff-files' or `ediff-directories' depending
on the arguments provided?
Is this perhaps even possible already and I just missed this?
I think this is something dired-ediff should do: check the file at point
and if it is a directory then run ediff-directories; otherwise ediff-files.
How about:
ediff-??? DIR1 FILE2
runs (ediff-files DIR1/FILE2 FILE2)
ediff-??? DIR1 DIR2
runs (ediff-directories DIR1 DIR2)
ediff-??? FILE1 DIR2
runs (ediff-files FILE1 DIR2/FILE1)
I think the basic commands, such as ediff-files, ediff-directories,
etc., should not second-guess the user.
What you want should be done by a higher-level command, such as dired-ediff.
One can also write something like
ediff-outsmart-the-user
which will always do second-guessing. But I think the user always knows
what he wants and it is faster and easier to type M-x ediff or M-x edirs.
dired-ediff is a different matter. Here we have certain context (the
location of the point in the dired buffer), and it makes sense to apply
your heuristic.
--michael