Function: hypb:configuration
hypb:configuration is an autoloaded and byte-compiled function defined
in hypb.el.
Signature
(hypb:configuration &optional OUT-BUF)
Documentation
Insert Emacs configuration information at the end of a buffer.
Use optional OUT-BUF if present, else the current buffer.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hypb.el
;;;###autoload
(defun hypb:configuration (&optional out-buf)
"Insert Emacs configuration information at the end of a buffer.
Use optional OUT-BUF if present, else the current buffer."
(save-excursion
(and out-buf (set-buffer out-buf))
(goto-char (point-min))
(if (re-search-forward mail-header-separator nil t)
(forward-line 1)
(goto-char (point-max)))
(delete-blank-lines) (delete-blank-lines)
(let ((start (point)))
(insert (format "I use:\tEditor: GNU Emacs %s %s\n\tHyperbole: %s\n"
emacs-version
(if (and (fboundp #'native-comp-available-p)
(native-comp-available-p))
"with native comp"
"")
hyperb:version))
(when (and (boundp 'br-version) (stringp br-version))
(insert (format "\tOO-Browser: %s\n" br-version)))
(when (and (boundp 'system-configuration) (stringp system-configuration))
(insert (format "\tSys Type: %s\n" system-configuration)))
(insert (format "\tOS Type: %s\n\tWindow Sys: %s\n"
system-type (or window-system (hyperb:window-system)
"None")))
(when (and (boundp 'hmail:reader) hmail:reader)
(insert (format "\tMail Reader: %s\n"
(cond ((eq hmail:reader 'rmail-mode) "RMAIL")
((and (eq hmail:reader 'mh-show-mode)
(string-match "v ?\\([0-9]+.[0-9]+\\)"
mh-e-RCS-id))
(concat "MH-e "
(substring mh-e-RCS-id
(match-beginning 1)
(match-end 1))))
((eq hmail:reader 'pm-fdr-mode)
(concat "PIEmail " pm-version))))))
(when (and (boundp 'hnews:reader) (boundp 'gnus-version) hnews:reader)
(insert (format "\tNews Reader: %s\n" gnus-version)))
(let ((install-type (hypb:installation-type)))
(when install-type
(insert (format "\tInstall: %s, %s" (car install-type) (cadr install-type)))))
(insert "\n")
;; Insert recent Hyperbole debugging messages if any.
(when (messages-buffer)
(let ((opoint (point)))
(insert-buffer-substring (buffer-name (messages-buffer)))
(keep-lines "^(HyDebug)" opoint (point))))
(untabify start (point)))))