Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the [email protected] mailing list.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

M-x ediff-directories doesn't work very well, when a directory that
starts with ~/ is used.

= h doesn't hide equal files!

I tracked the problem down to ediff-same-file-contents

The ediff-cmp-program is executed and tells that are not identical,
because no ~ expansion takes place here.


I have fixed the problem by calling expand-file-name before passing
them to ediff-cmp-program.

Here is the updated ediff-same-file-contents function:

(defun ediff-same-file-contents (f1 f2)
  "Return t if files F1 and F2 have identical contents."
  (if (and (not (file-directory-p f1))
           (not (file-directory-p f2)))
      (condition-case nil
          (let ((res
                 (apply 'call-process ediff-cmp-program nil nil nil
                        (append ediff-cmp-options (list (expand-file-name f1) 
(expand-file-name f2))))))
            (and (numberp res) (eq res 0)))
        (error (format "Cannot execute program %S." ediff-cmp-program)))
    ))


Stefan.


_______________________________________________
emacs-pretest-bug mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug

Reply via email to