changeset 77556:674c5ccdb880

(button): Use underline if supported, else fall back to color.
author Glenn Morris <rgm@gnu.org>
date Thu, 26 Apr 2007 03:19:53 +0000
parents 761c9f895b08
children bde08a1350e7
files lisp/button.el
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/button.el	Wed Apr 25 19:53:12 2007 +0000
+++ b/lisp/button.el	Thu Apr 26 03:19:53 2007 +0000
@@ -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)