From 6f8a2742299b9c3518f87ad2baebfa19867997cc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Dj=C3=A4rv?= Date: Tue, 23 Nov 2004 19:22:43 +0000 Subject: [PATCH] * mail/emacsbug.el (report-emacs-bug): Catch error that x-server-vendor and x-server-version may throw. --- lisp/ChangeLog | 5 +++++ lisp/mail/emacsbug.el | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e4708bedc53..532c066e289 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2004-11-23 Jan Dj,Ad(Brv + + * mail/emacsbug.el (report-emacs-bug): Catch error that x-server-vendor + and x-server-version may throw. + 2004-11-23 Kim F. Storm * subr.el (substitute-key-definition-key): Optimize. Don't diff --git a/lisp/mail/emacsbug.el b/lisp/mail/emacsbug.el index c5579b3c0db..5daa9a2d4aa 100644 --- a/lisp/mail/emacsbug.el +++ b/lisp/mail/emacsbug.el @@ -129,8 +129,10 @@ usually do not have translators to read other languages for them.\n\n") (insert "In " (emacs-version) "\n") (if (fboundp 'x-server-vendor) - (insert "Distributor `" (x-server-vendor) "', version " - (mapconcat 'number-to-string (x-server-version) ".") "\n")) + (condition-case nil + (insert "Distributor `" (x-server-vendor) "', version " + (mapconcat 'number-to-string (x-server-version) ".") "\n") + (error t))) (if (and system-configuration-options (not (equal system-configuration-options ""))) (insert "configured using `configure " -- 2.39.5