From 5eabdf0fe8c13c5a25f139e2254638e94c2f5bf9 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Thu, 26 Apr 2007 03:19:13 +0000 Subject: [PATCH] (button): Use underline if supported, else fall back to color. --- lisp/button.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lisp/button.el b/lisp/button.el index 8c3681854e7..ebc078f8193 100644 --- a/lisp/button.el +++ b/lisp/button.el @@ -52,11 +52,12 @@ ;; Globals ;; Use color for the MS-DOS port because it doesn't support underline. -;; Also for the linux console. +;; FIXME if MS-DOS correctly answers the (supports) question, it need +;; no longer be a special case. (defface button '((((type pc) (class color)) (:foreground "lightblue")) - (((type tty)) (:inherit link)) - (t :underline t)) + (((supports :underline t)) :underline t) + (t (:foreground "lightblue"))) "Default face used for buttons." :group 'basic-faces) -- 2.39.2