]> git.eshelyaron.com Git - emacs.git/commitdiff
Under no-X builds, allow any value for 'fringe-bitmap' options
authorJim Porter <jporterbugs@gmail.com>
Thu, 1 Sep 2022 05:52:34 +0000 (22:52 -0700)
committerJim Porter <jporterbugs@gmail.com>
Fri, 2 Sep 2022 01:34:45 +0000 (18:34 -0700)
* lisp/cus-edit (fringe-bitmap): Always match under no-X.

lisp/cus-edit.el

index d3768766be017cbec75c13e02bf40a223e36bbfe..ee32c9c945eca6b29976e12ce6d45c1070af5663 100644 (file)
@@ -4298,7 +4298,12 @@ restoring it to the state of a face that has never been customized."
   "A Lisp fringe bitmap name."
   :format "%v"
   :tag "Fringe bitmap"
-  :match (lambda (_widget value) (fringe-bitmap-p value))
+  :match (lambda (_widget value)
+           ;; In no-X builds (where `fringe-bitmaps' is undefined),
+           ;; allow anything.  This ensures that customizations set on
+           ;; a with-X build aren't considered invalid under no-X.
+           (or (not (boundp 'fringe-bitmaps))
+               (fringe-bitmap-p value)))
   :completions (apply-partially #'completion-table-with-predicate
                                 obarray #'fringe-bitmap-p 'strict)
   :prompt-match 'fringe-bitmap-p