]> git.eshelyaron.com Git - emacs.git/commitdiff
* gnus-cus.el (()): Make sure that calling `gnus-visual-p' during
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Sat, 6 Jul 1996 02:05:22 +0000 (02:05 +0000)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Sat, 6 Jul 1996 02:05:22 +0000 (02:05 +0000)
byte-compilation doesn't bug out.

lisp/gnus-cus.el

index 12472e28c027ad2ec7d6af45cc9129106b55d16a..78ef0d71e3bf57c26a41a36d5e20605e4842210e 100644 (file)
@@ -108,11 +108,13 @@ Face used for group or summary buffer mouse highlighting.
 The line beneath the mouse pointer will be highlighted with this
 face.")
        (name . gnus-mouse-face)
-       (calculate . (if (gnus-visual-p 'mouse-face 'highlight)
-                        (if (boundp 'gnus-mouse-face)
-                            gnus-mouse-face
-                          'highlight)
-                      'default))
+       (calculate . (condition-case ()
+                        (if (gnus-visual-p 'mouse-face 'highlight)
+                            (if (boundp 'gnus-mouse-face)
+                                gnus-mouse-face
+                              'highlight)
+                          'default))
+                  (error 'default))
        (type . face))
        ((tag . "Article Display")
        (doc . "Controls how the article buffer will look.