diff lisp/ediff/ediff-merg.el @ 197:acd284d43ca1 r20-3b25

Import from CVS: tag r20-3b25
author cvs
date Mon, 13 Aug 2007 10:00:02 +0200
parents bfd6434d15b3
children
line wrap: on
line diff
--- a/lisp/ediff/ediff-merg.el	Mon Aug 13 09:59:07 2007 +0200
+++ b/lisp/ediff/ediff-merg.el	Mon Aug 13 10:00:02 2007 +0200
@@ -81,6 +81,12 @@
 This means that regions that have status prefer-A or prefer-B will be
 skiped over. Nil means show all regions.")
 
+;; If ediff-show-clashes-only, check if there is no clash between the ancestor
+;; and one of the variants.
+(defsubst ediff-merge-region-is-non-clash (n)
+  (and ediff-show-clashes-only
+       (string-match "prefer" (or (ediff-get-state-of-merge n) ""))))
+
 	
 (defsubst ediff-get-combined-region (n)
   (concat (nth 0 ediff-combination-pattern) "\n"