bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#18850: smerge-mode: use diff-check-labels


From: Stefan Monnier
Subject: bug#18850: smerge-mode: use diff-check-labels
Date: Mon, 27 Oct 2014 09:32:26 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

> @@ -1163,9 +1164,12 @@ repeating the command will highlight other two parts."
>           (let ((status
>                  (apply 'call-process diff-command nil t nil
>                         (append smerge-diff-switches
> -                               (list "-L" (concat name1 "/" file)
> -                                     "-L" (concat name2 "/" file)
> -                                     file1 file2)))))
> +                               (and (diff-check-labels)
> +                                    (list "--label"
> +                                          (concat name1 "/" file)
> +                                          "--label"
> +                                          (concat name2 "/" file)))
> +                               (list file1 file2)))))
>             (if (eq status 0) (insert "No differences found.\n"))))
>         (goto-char (point-min))
>         (diff-mode)

That looks OK, yes.  Tho you don't need to change -L to --label.


        Stefan





reply via email to

[Prev in Thread] Current Thread [Next in Thread]