Function: hui:htype-help
hui:htype-help is a byte-compiled function defined in hui.el.
Signature
(hui:htype-help HTYPE-SYM &optional NO-SORT)
Documentation
Display documentation for types from HTYPE-SYM which match to a regexp.
Optional NO-SORT means display in decreasing priority order (natural order).
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hui.el
(defun hui:htype-help (htype-sym &optional no-sort)
"Display documentation for types from HTYPE-SYM which match to a regexp.
Optional NO-SORT means display in decreasing priority order (natural order)."
(and htype-sym (symbolp htype-sym)
(let* ((tstr (symbol-name htype-sym))
(tprefix (concat tstr "::"))
(buf-name (hypb:help-buf-name (capitalize tstr)))
(temp-buffer-show-hook
(lambda (buf)
(set-buffer buf) (goto-char (point-min))
(while (re-search-forward "^" nil t)
(replace-match " " t nil))
(goto-char (point-min))
(while (search-forward (concat " " tprefix) nil t)
(replace-match "" t nil))
(goto-char (point-min))
(set-buffer-modified-p nil)
(display-buffer buf nil)))
(temp-buffer-show-function temp-buffer-show-hook)
(names (htype:names htype-sym))
(term (hargs:read-match
(concat (capitalize tstr)
(format " to describe (RET or '*' for all%s): "
(if (eq htype-sym 'ibtypes)
" in priority order"
"")))
(mapcar 'list (append '("" "*") names))
nil t "" htype-sym))
nm-list
doc-list)
(setq nm-list
(if (member term '("" "*"))
(let ((type-names
(mapcar (lambda (nm) (concat tprefix nm))
names)))
(if no-sort type-names
(sort type-names #'string<)))
(cons (concat tprefix term) nil))
doc-list (delq nil (mapcar
(lambda (name)
(let ((doc (documentation
(intern-soft name))))
(if doc (cons name doc))))
nm-list)))
(with-output-to-temp-buffer buf-name
(mapcar (lambda (nm-doc-cons)
(princ (car nm-doc-cons)) (terpri)
(princ (cdr nm-doc-cons)) (terpri)
(terpri))
doc-list)))))