Skip to content

Commit

Permalink
transient-higher-level: Use face-attribute on default
Browse files Browse the repository at this point in the history
Previously we queried the selected frame, which doesn't make sense and
leads to an error when `transient' is loaded before the first frame is
created.

Closes #359.
  • Loading branch information
tarsius committed Feb 16, 2025
1 parent 04dab99 commit 823f24a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lisp/transient.el
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ See info node `(transient)Enabling and Disabling Suffixes'."

(defface transient-higher-level
`((t :box ( :line-width ,(if (>= emacs-major-version 28) (cons -1 -1) -1)
:color ,(let ((color (face-attribute 'shadow :foreground nil t)))
:color ,(let ((color (face-attribute 'shadow :foreground t t)))
(or (and (not (eq color 'unspecified)) color)
"grey60")))))
"Face optionally used to highlight suffixes on higher levels.
Expand Down

0 comments on commit 823f24a

Please sign in to comment.