GNU bug report logs -
#47944
Unable to customize button face in `describe-package'
Previous Next
Reported by: Stefan Kangas <stefan <at> marxist.se>
Date: Wed, 21 Apr 2021 21:43:02 UTC
Severity: minor
Tags: fixed
Fixed in version 28.1
Done: Stefan Kangas <stefan <at> marxist.se>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Severity: minor
There is currently no way to customize the button face in
`describe-package'; the face is hard-coded. This leads to issues with
`hl-line-mode', for example:
https://gitlab.com/protesilaos/modus-themes/-/issues/180
I'm thinking that we could just use the `custom-button' face here as it
looks similar enough, and should already exist in most popular themes.
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index 64d7d56019..f2e83d3fda 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -2696,9 +2696,9 @@ package-make-button
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)))
Thoughts?
This bug report was last modified 4 years and 14 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.