From: Glenn Morris Date: Thu, 26 Apr 2007 03:19:13 +0000 (+0000) Subject: (button): Use underline if supported, else fall back to color. X-Git-Tag: emacs-pretest-23.0.90~12798 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5eabdf0fe8c13c5a25f139e2254638e94c2f5bf9;p=emacs.git (button): Use underline if supported, else fall back to color. --- 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)