Function: eldoc--echo-area-render

eldoc--echo-area-render is a byte-compiled function defined in eldoc.el.gz.

Signature

(eldoc--echo-area-render DOCS)

Documentation

Similar to eldoc--format-doc-buffer, but for echo area.

Helper for eldoc-display-in-echo-area.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/eldoc.el.gz
(defun eldoc--echo-area-render (docs)
  "Similar to `eldoc--format-doc-buffer', but for echo area.
Helper for `eldoc-display-in-echo-area'."
  (cl-loop for (item . rest) on docs
           for (this-doc . plist) = item
           for echo = (plist-get plist :echo)
           for thing = (plist-get plist :thing)
           unless (eq echo 'skip) do
           (setq this-doc
                 (cond ((integerp echo) (substring this-doc 0 echo))
                       ((stringp echo) echo)
                       (t this-doc)))
           (when thing (setq this-doc
                             (concat
                              (propertize (format "%s" thing)
                                          'face (plist-get plist :face))
                              ": "
                              this-doc)))
           (insert this-doc)
           (when rest (insert "\n"))))