Function: eldoc--echo-area-prefer-doc-buffer-p

eldoc--echo-area-prefer-doc-buffer-p is a byte-compiled function defined in eldoc.el.gz.

Signature

(eldoc--echo-area-prefer-doc-buffer-p TRUNCATEDP)

Documentation

Tell if display in the echo area should be skipped.

Helper for eldoc-display-in-echo-area. If TRUNCATEDP the documentation to potentially appear in the echo area is known to be truncated.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/eldoc.el.gz
(defun eldoc--echo-area-prefer-doc-buffer-p (truncatedp)
  "Tell if display in the echo area should be skipped.
Helper for `eldoc-display-in-echo-area'.  If TRUNCATEDP the
documentation to potentially appear in the echo area is
known to be truncated."
  (and (or (eq eldoc-echo-area-prefer-doc-buffer t)
           (and truncatedp
                (eq eldoc-echo-area-prefer-doc-buffer
                    'maybe)))
       (get-buffer-window eldoc--doc-buffer t)))