Function: helpful--make-shortdoc-sentence

helpful--make-shortdoc-sentence is a byte-compiled function defined in helpful.el.

Signature

(helpful--make-shortdoc-sentence SYM)

Documentation

Make a line for shortdoc groups of SYM.

Source Code

;; Defined in ~/.emacs.d/elpa/helpful-20250408.334/helpful.el
(defun helpful--make-shortdoc-sentence (sym)
  "Make a line for shortdoc groups of SYM."
  (when (featurep 'shortdoc)
    (-when-let (groups (--map (helpful--button
                               (symbol-name it)
                               'helpful-shortdoc-button
                               'shortdoc-group it)
                              (shortdoc-function-groups sym)))
      (if (= 1 (length groups))
          (format "Other relevant functions are documented in the %s group."
                  (car groups))
        (format "Other relevant functions are documented in the %s groups."
                (concat (s-join ", " (butlast groups))
                        " and " (car (last groups))))))))