Function: abbrev--suggest-above-threshold

abbrev--suggest-above-threshold is a byte-compiled function defined in abbrev.el.gz.

Signature

(abbrev--suggest-above-threshold EXPANSION)

Documentation

Return non-nil if the abbrev in EXPANSION provides significant savings.

A significant saving, here, means the difference in length between the abbrev and its expansion is not below the threshold specified by the value of abbrev-suggest-hint-threshold. EXPANSION is a cons cell where the car is the expansion and the cdr is the abbrev.

Source Code

;; Defined in /usr/src/emacs/lisp/abbrev.el.gz
(defun abbrev--suggest-above-threshold (expansion)
  "Return non-nil if the abbrev in EXPANSION provides significant savings.
A significant saving, here, means the difference in length between
the abbrev and its expansion is not below the threshold specified
by the value of `abbrev-suggest-hint-threshold'.
EXPANSION is a cons cell where the car is the expansion and the cdr is
the abbrev."
    (>= (- (length (car expansion))
	   (length (cdr expansion)))
	abbrev-suggest-hint-threshold))