]> git.eshelyaron.com Git - emacs.git/commitdiff
* mail/emacsbug.el (report-emacs-bug): Trap load-path-shadows errors.
authorGlenn Morris <rgm@gnu.org>
Mon, 10 Sep 2012 02:19:23 +0000 (19:19 -0700)
committerGlenn Morris <rgm@gnu.org>
Mon, 10 Sep 2012 02:19:23 +0000 (19:19 -0700)
lisp/ChangeLog
lisp/mail/emacsbug.el

index 34e391a8c5707cb52096e168312cfcbac50da95f..5d0d00be9dc852d5b80473188b7f6123d768f1e5 100644 (file)
@@ -1,3 +1,7 @@
+2012-09-10  Glenn Morris  <rgm@gnu.org>
+
+       * mail/emacsbug.el (report-emacs-bug): Trap load-path-shadows errors.
+
 2012-09-08  Alan Mackenzie  <acm@muc.de>
 
        AWK Mode: make auto-newline work when there's "==" in the pattern.
index 1a02ae7c5193c90563524a0eaa1b6ce926f736e9..742c05bc8d5d85e7c267017bcad7fb5bb9ae5ef2 100644 (file)
@@ -304,9 +304,14 @@ usually do not have translators for other languages.\n\n")))
       (insert "\n"))
     (insert "\n")
     (insert "Load-path shadows:\n")
-    (message "Checking for load-path shadows...")
-    (let ((shadows (list-load-path-shadows t)))
-      (message "Checking for load-path shadows...done")
+    (let* ((msg "Checking for load-path shadows...")
+          (result "done")
+          (shadows (progn (message "%s" msg)
+                          (condition-case nil (list-load-path-shadows t)
+                            (error
+                             (setq result "error")
+                             "Error during checking")))))
+      (message "%s%s" msg result)
       (insert (if (zerop (length shadows))
                   "None found.\n"
                 shadows)))