Juri Linkov <juri@HIDDEN>
to control <at> debbugs.gnu.org.
Full text available.Received: (at 79764) by debbugs.gnu.org; 5 Nov 2025 17:56:16 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 05 12:56:16 2025 Received: from localhost ([127.0.0.1]:58296 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1vGhk0-0006Lp-CO for submit <at> debbugs.gnu.org; Wed, 05 Nov 2025 12:56:16 -0500 Received: from mout-p-102.mailbox.org ([80.241.56.152]:42682) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1vGhjx-0006LT-Fi; Wed, 05 Nov 2025 12:56:14 -0500 Received: from smtp102.mailbox.org (smtp102.mailbox.org [10.196.197.102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4d1tKd2JRHz9vGf; Wed, 5 Nov 2025 18:56:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001; t=1762365365; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=2vg8z9ZMs68kRH/GNWle5eUuGxopKxR3pFt29TbEacg=; b=rAgfIovo0GiyeKQd0hL+tYWTzfEdnboNLEQ+mpmRu5qKfHH0xtu7prt57amk7TuTkdcS9L 4o5Ij/yDQSo8F59B1PHflZaIXToCE4GUsIn8H3kYpwzDmO5sRHVnMNuYf8TYaZblrrbW8/ PpM1jZbxQ0cz9Pv+4Y74YfuxBItA7i2NZNq8aOR1r3ML7T1J97GPmhGgLtCXAEgczjLrar yAic2A6/4YhFUkmqELhdJUhiLmfuv62cR0NNbEvPMOW9XqdUzyVCyCAJVn4s8Mesc8kJVm r7V2FLTILn32Tk0oI72t/9BcdZQGMmw+FgwU+hhnFdFr2vMwgrWMBoh148PG8A== From: Juri Linkov <juri@HIDDEN> To: 79764 <at> debbugs.gnu.org Subject: Re: bug#79764: Typo in image-supported-file-p In-Reply-To: <874ir93dkh.fsf@HIDDEN> Organization: LINKOV.NET References: <874ir93dkh.fsf@HIDDEN> Date: Wed, 05 Nov 2025 19:55:02 +0200 Message-ID: <87v7jotle1.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 79764 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) close 79764 31.0.50 thanks > An extra space at the beginning of ###autoload for > 'image-supported-file-p' excluded it from loaddefs.el > that required addition of 'fboundp'. > > After fixing this typo it's not required anymore > to use 'fboundp' for 'image-supported-file-p': Now pushed and closed.
bug-gnu-emacs@HIDDEN:bug#79764; Package emacs.
Full text available.
Received: (at submit) by debbugs.gnu.org; 4 Nov 2025 17:39:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 04 12:39:06 2025
Received: from localhost ([127.0.0.1]:48816 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1vGKzq-0005UX-AR
for submit <at> debbugs.gnu.org; Tue, 04 Nov 2025 12:39:06 -0500
Received: from lists.gnu.org ([2001:470:142::17]:55024)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1vGKzm-0005Tw-UJ
for submit <at> debbugs.gnu.org; Tue, 04 Nov 2025 12:39:04 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <juri@HIDDEN>) id 1vGKzJ-0001sa-7b
for bug-gnu-emacs@HIDDEN; Tue, 04 Nov 2025 12:38:40 -0500
Received: from mout-p-103.mailbox.org ([80.241.56.161])
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256)
(Exim 4.90_1) (envelope-from <juri@HIDDEN>) id 1vGKzF-00019y-1J
for bug-gnu-emacs@HIDDEN; Tue, 04 Nov 2025 12:38:32 -0500
Received: from smtp1.mailbox.org (smtp1.mailbox.org
[IPv6:2001:67c:2050:b231:465::1])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
(No client certificate requested)
by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4d1FzW0G61z9tkd
for <bug-gnu-emacs@HIDDEN>; Tue, 4 Nov 2025 18:38:15 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001;
t=1762277895;
h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
to:to:cc:mime-version:mime-version:content-type:content-type;
bh=fWkC3GZ7E/yLYCM7dUcTARaPsPNc9iiEoeL53LBfvHU=;
b=hjVgD8xUuhXqgaPXkf9kOJiep+ZvIbJUUDNz6cowmHDk7ruchLf/1KPlZ5nkAlG94QjNKn
jLuMRTye+DWzfaOhIjMwH1yIC3oFaC4W+cu+JK9lSN9q0O5aE8beIDLWTnvnhrU9Ue90aY
Ks5xUEka2oO8fIeDIAZtC8ZRG1she/MrgkzDJB2b0J5lTu82mqt5n5HQ3TFMy4nym3V85z
bjB7Ehq3Jq8p9d/QGU9IZRHoPssoibf0qMVoVWw+GqXjWKPJZmGh24pNV+ZjRefBjqWFUn
98JJrRBs9CvRUTYvpBJLLD/3UudpKuA/1DoR5ztpNiSM+BnAXmmX/P9a7p1bEA==
Authentication-Results: outgoing_mbo_mout; dkim=none;
spf=pass (outgoing_mbo_mout: domain of juri@HIDDEN designates
2001:67c:2050:b231:465::1 as permitted sender) smtp.mailfrom=juri@HIDDEN
From: Juri Linkov <juri@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: Typo in image-supported-file-p
Organization: LINKOV.NET
Date: Tue, 04 Nov 2025 19:36:14 +0200
Message-ID: <874ir93dkh.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Rspamd-Queue-Id: 4d1FzW0G61z9tkd
Received-SPF: pass client-ip=80.241.56.161; envelope-from=juri@HIDDEN;
helo=mout-p-103.mailbox.org
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001,
RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001,
SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)
--=-=-=
Content-Type: text/plain
An extra space at the beginning of ###autoload for
'image-supported-file-p' excluded it from loaddefs.el
that required addition of 'fboundp'.
After fixing this typo it's not required anymore
to use 'fboundp' for 'image-supported-file-p':
--=-=-=
Content-Type: text/x-diff
Content-Disposition: inline; filename=image-supported-file-p-autoload.patch
diff --git a/lisp/image.el b/lisp/image.el
index 51a7a687961..06cd1543c08 100644
--- a/lisp/image.el
+++ b/lisp/image.el
@@ -417,7 +417,7 @@ image-type-from-file-name
;; If nothing seems to be supported, return first type that matched.
(or first (setq first type))))))))
- ;;;###autoload
+;;;###autoload
(defun image-supported-file-p (file)
"Return non-nil if Emacs can display the specified image FILE.
The returned value is a symbol specifying the image type of FILE,
diff --git a/lisp/emacs-lisp/icons.el b/lisp/emacs-lisp/icons.el
index 83bbfc10cb4..b01cc76275e 100644
--- a/lisp/emacs-lisp/icons.el
+++ b/lisp/emacs-lisp/icons.el
@@ -194,7 +194,6 @@ icons--create
(file-exists (and (stringp file) (file-readable-p file))))
(and file-exists
(display-images-p)
- (fboundp 'image-supported-file-p)
(image-supported-file-p file)
(propertize
" " 'display
diff --git a/lisp/mail/rmailmm.el b/lisp/mail/rmailmm.el
index 173f95fd325..a1fb715ab5e 100644
--- a/lisp/mail/rmailmm.el
+++ b/lisp/mail/rmailmm.el
@@ -842,9 +842,8 @@ rmail-mime-set-bulk-data
((string-match "text/" content-type)
(setq type 'text))
((string-match "image/\\(.*\\)" content-type)
- (setq type (and (fboundp 'image-supported-file-p)
- (image-supported-file-p
- (concat "." (match-string 1 content-type)))))
+ (setq type (image-supported-file-p
+ (concat "." (match-string 1 content-type))))
(when (and type
rmail-mime-show-images
(not (eq rmail-mime-show-images 'button))
--=-=-=--
Juri Linkov <juri@HIDDEN>:bug-gnu-emacs@HIDDEN.
Full text available.bug-gnu-emacs@HIDDEN:bug#79764; Package emacs.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.