Function: hui-select-region-bigger-p
hui-select-region-bigger-p is a byte-compiled function defined in
hui-select.el.
Signature
(hui-select-region-bigger-p OLD-REGION NEW-REGION)
Documentation
Non-nil means the new region is bigger than the old region.
Return t if OLD-REGION is smaller than NEW-REGION and NEW-REGION partially overlaps OLD-REGION, or if OLD-REGION is uninitialized.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hui-select.el
(defun hui-select-region-bigger-p (old-region new-region)
"Non-nil means the new region is bigger than the old region.
Return t if OLD-REGION is smaller than NEW-REGION and NEW-REGION
partially overlaps OLD-REGION, or if OLD-REGION is uninitialized."
(if (null (car old-region))
t
(and (> (abs (- (cdr new-region) (car new-region)))
(abs (- (cdr old-region) (car old-region))))
;; Ensure the two regions intersect.
(or (and (<= (min (cdr new-region) (car new-region))
(min (cdr old-region) (car old-region)))
(> (max (cdr new-region) (car new-region))
(min (cdr old-region) (car old-region))))
(and (> (min (cdr new-region) (car new-region))
(min (cdr old-region) (car old-region)))
(<= (min (cdr new-region) (car new-region))
(max (cdr old-region) (car old-region))))))))