]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't hard-code face of "Install" button
authorStefan Kangas <stefan@marxist.se>
Sun, 25 Apr 2021 10:59:14 +0000 (12:59 +0200)
committerStefan Kangas <stefan@marxist.se>
Sun, 25 Apr 2021 11:00:29 +0000 (13:00 +0200)
* lisp/emacs-lisp/package.el (package-make-button): Use the
'custom-button' face for the "Install" button.  (Bug#47944)

lisp/emacs-lisp/package.el

index 64d7d56019d5c6842229949479a52e37d3fa8180..f2e83d3fda780f52165342c1d6e08941ae1e9b03 100644 (file)
@@ -2696,9 +2696,9 @@ PROPERTIES are passed to `insert-text-button', for which this
 function is a convenience wrapper used by `describe-package-1'."
   (let ((button-text (if (display-graphic-p) text (concat "[" text "]")))
         (button-face (if (display-graphic-p)
-                         '(:box (:line-width 2 :color "dark grey")
-                                :background "light grey"
-                                :foreground "black")
+                         (progn
+                           (require 'cus-edit) ; for the custom-button face
+                           'custom-button)
                        'link)))
     (apply #'insert-text-button button-text 'face button-face 'follow-link t
            properties)))