aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPo Lu2023-08-09 12:21:03 +0800
committerPo Lu2023-08-09 12:22:12 +0800
commit82a67d227e52c70f438ced4b5ee260bb7d8be02d (patch)
tree88a88b19efe6ecf8dd6c2be1f2edf2feb68aa5d9
parentdbca2e797abeaedb54a85c22ca004cc041ffec4d (diff)
downloademacs-82a67d227e52c70f438ced4b5ee260bb7d8be02d.tar.gz
emacs-82a67d227e52c70f438ced4b5ee260bb7d8be02d.zip
Improve Emacsbug output
* lisp/mail/emacsbug.el (report-emacs-bug--os-description): Handle `android'. (emacs-build-description): Don't print the Android build fingerprint here.
-rw-r--r--lisp/mail/emacsbug.el10
1 files changed, 4 insertions, 6 deletions
diff --git a/lisp/mail/emacsbug.el b/lisp/mail/emacsbug.el
index 3893e93238f..bebaad720db 100644
--- a/lisp/mail/emacsbug.el
+++ b/lisp/mail/emacsbug.el
@@ -144,6 +144,10 @@ This requires either the macOS \"open\" command, or the freedesktop
144 (goto-char (point-min)) 144 (goto-char (point-min))
145 (buffer-substring (line-beginning-position) 145 (buffer-substring (line-beginning-position)
146 (line-end-position)))))) 146 (line-end-position))))))
147 ((eq system-type 'android)
148 ;; This is a short string containing the Android version,
149 ;; build number, and window system distributor.
150 (symbol-value 'android-build-fingerprint))
147 ;; TODO Cygwin, Solaris (usg-unix-v). 151 ;; TODO Cygwin, Solaris (usg-unix-v).
148 (t 152 (t
149 (or (let ((file "/etc/os-release")) 153 (or (let ((file "/etc/os-release"))
@@ -408,12 +412,6 @@ copy text to your preferred mail program.\n"
408 "', version " 412 "', version "
409 (mapconcat #'number-to-string (x-server-version) ".") "\n") 413 (mapconcat #'number-to-string (x-server-version) ".") "\n")
410 (error t))) 414 (error t)))
411 (when (and (boundp 'android-build-fingerprint)
412 (symbol-value 'android-build-fingerprint))
413 ;; This is used on Android.
414 (insert "Android version and manufacturer: "
415 (symbol-value 'android-build-fingerprint)
416 "\n"))
417 (let ((os (ignore-errors (report-emacs-bug--os-description)))) 415 (let ((os (ignore-errors (report-emacs-bug--os-description))))
418 (if (stringp os) 416 (if (stringp os)
419 (insert "System Description: " os "\n\n"))) 417 (insert "System Description: " os "\n\n")))