(let ((txt (delete-and-extract-region (1+ user-point) (point))))
(insert (propertize "\n" 'display txt)))
- (emacs-bug--system-description)
+ (emacs-build-description)
(insert "Configured features:\n" system-configuration-features "\n\n")
(fill-region (line-beginning-position -1) (point))
(when (and (featurep 'native-compile)
(buffer-substring-no-properties (point-min) (point)))
(goto-char user-point)))
-(defun emacs-bug--system-description ()
+;;;###autoload
+(defun emacs-build-description ()
+ "Insert a description of the current Emacs build in the current buffer."
+ (interactive)
(let ((start (point)))
(insert "\nIn " (emacs-version))
(if emacs-build-system
(compose-mail-other-window report-emacs-bug-address subject)
(message-goto-body)
(insert "\n\n\n")
- (emacs-bug--system-description)
+ (emacs-build-description)
(mml-attach-file file "text/patch" nil "attachment")
(message-goto-body)
(message "Write a description of the patch and use %s to send it"