* mail/emacsbug.el (report-emacs-bug): Catch error that x-server-vendor
authorJan Djärv <jan.h.d@swipnet.se>
Tue, 23 Nov 2004 19:22:43 +0000 (19:22 +0000)
committerJan Djärv <jan.h.d@swipnet.se>
Tue, 23 Nov 2004 19:22:43 +0000 (19:22 +0000)
  and x-server-version may throw.

lisp/ChangeLog
lisp/mail/emacsbug.el

index e4708be..532c066 100644 (file)
@@ -1,3 +1,8 @@
+2004-11-23  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
+
+       * mail/emacsbug.el (report-emacs-bug): Catch error that x-server-vendor
+       and x-server-version may throw.
+
 2004-11-23  Kim F. Storm  <storm@cua.dk>
 
        * subr.el (substitute-key-definition-key): Optimize.  Don't
index c5579b3..5daa9a2 100644 (file)
@@ -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 "