From 881f4819e760d6263f5fc6998711b20b219e78f0 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Thu, 6 Mar 2025 15:49:27 +0200 Subject: [PATCH] Avoid warnings about 'image-scaling-factor' in builds --without-x * lisp/cus-start.el (standard): Exclude 'image-*' options if Emacs was built without GUI support. (Bug#76716) (cherry picked from commit bd9c76ab175cde67fc98849d9d216c2ee4373042) --- lisp/cus-start.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/cus-start.el b/lisp/cus-start.el index 16e4f7e65b3..e29939b459b 100644 --- a/lisp/cus-start.el +++ b/lisp/cus-start.el @@ -908,6 +908,8 @@ since it could result in memory overflow and make Emacs crash." (fboundp 'x-create-frame)) ((string-match "tab-bar-" (symbol-name symbol)) (fboundp 'x-create-frame)) + ((string-match "image-" (symbol-name symbol)) + (fboundp 'x-create-frame)) ((equal "vertical-centering-font-regexp" (symbol-name symbol)) ;; Any function from fontset.c will do. -- 2.39.5