Subject: Re: bug#76975: 31.0.50; Customize doesn't know about type graphic for defface

From: Mauro Aranda <[email-masked]>
Date: Wed, 12 Mar 2025 06:37:59 -0300

tags 76975 patch
quit

Mauro Aranda <[email-masked]> writes:

 > After emacs -Q:
 > M-x customize-face RET separator-line
 > With the State button, select "For All Kinds of Display"
 > Customize shows the Lisp expression, instead of the widget for
 > customizing this face.
 >

Patch attached.

From 98bc2487e9bb7c74dfa77d9d8d60bb40376ac021 Mon Sep 17 00:00:00 2001
From: Mauro Aranda <[email-masked]>
Date: Wed, 12 Mar 2025 06:35:46 -0300
Subject: [PATCH] Recognize graphic as a type when customizing a face

* lisp/cus-edit.el (custom-display): Add checkbox for graphic.
(Bug#76975)
---
 lisp/cus-edit.el | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el
index 5cfd2b774b7..ecfce03e490 100644
--- a/lisp/cus-edit.el
+++ b/lisp/cus-edit.el
@@ -3619,6 +3619,10 @@ 'custom-display
 				type)
 			 (checklist :inline t
 				    :offset 0
+                                    (const :format "Graphic "
+                                           :sibling-args (:help-echo "\
+Any graphics-capable display")
+                                           graphic)
 				    (const :format "X "
 					   :sibling-args (:help-echo "\
 The X11 Window System.")
-- 
2.34.1