Function: completion-preview-require-minimum-symbol-length

completion-preview-require-minimum-symbol-length is a byte-compiled function defined in completion-preview.el.gz.

Signature

(completion-preview-require-minimum-symbol-length)

Documentation

Check if the length of symbol at point is at least above a certain threshold.

completion-preview-minimum-symbol-length determines that threshold.

Source Code

;; Defined in /usr/src/emacs/lisp/completion-preview.el.gz
(defun completion-preview-require-minimum-symbol-length ()
  "Check if the length of symbol at point is at least above a certain threshold.
`completion-preview-minimum-symbol-length' determines that threshold."
  (or (null completion-preview-minimum-symbol-length)
      (let ((bounds (bounds-of-thing-at-point 'symbol)))
        (and bounds (<= completion-preview-minimum-symbol-length
                        (- (cdr bounds) (car bounds)))))))