From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#70989: 29.3; Calling isearch-forward when using Unifont throws error "Invalid font name" Date: Sun, 19 May 2024 09:05:21 +0300 Message-ID: <86wmnqbala.fsf@gnu.org> References: <3df5d89f24d568fa565913cec6902fb0@rodrigomorales.site> <86pltlh7ua.fsf@gnu.org> <87eda1ldsl.fsf@rodrigomorales.site> <86cyplge4o.fsf@gnu.org> <87wmnsya2h.fsf@yahoo.com> <87r0e0pj2c.fsf@rodrigomorales.site> <87ttiv71el.fsf@yahoo.com> <86seyfcewy.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4366"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 70989@debbugs.gnu.org, me@rodrigomorales.site To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 19 08:06:36 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1s8Zgq-0000vw-Ni for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 May 2024 08:06:36 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s8ZgU-0004aT-Ft; Sun, 19 May 2024 02:06:16 -0400 Original-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 ) id 1s8ZgE-0004XX-Ok for bug-gnu-emacs@gnu.org; Sun, 19 May 2024 02:05:59 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s8ZgE-0002u8-G1 for bug-gnu-emacs@gnu.org; Sun, 19 May 2024 02:05:58 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s8ZgI-0000jQ-9M for bug-gnu-emacs@gnu.org; Sun, 19 May 2024 02:06:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 May 2024 06:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70989 X-GNU-PR-Package: emacs Original-Received: via spool by 70989-submit@debbugs.gnu.org id=B70989.17160987362806 (code B ref 70989); Sun, 19 May 2024 06:06:02 +0000 Original-Received: (at 70989) by debbugs.gnu.org; 19 May 2024 06:05:36 +0000 Original-Received: from localhost ([127.0.0.1]:35789 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s8Zfs-0000jC-1g for submit@debbugs.gnu.org; Sun, 19 May 2024 02:05:36 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:38584) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s8Zfq-0000j6-8S for 70989@debbugs.gnu.org; Sun, 19 May 2024 02:05:34 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s8Zff-0002lA-74; Sun, 19 May 2024 02:05:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=WsJxJ0zX6ZBE14rfua36FR5JbBR57LA0zAudo+UDUjg=; b=OgcmN4waY1+a REkuEPX4s/CGvQyM8LAKkdCWiKL27bD0SLuhsqFETB6TSGSrxmtgfdjK5r3rc6WlUVD6UWp1s/omQ +XONRy6ZKzP/yVLh/9C/7Bzor7ZGg5OsJTtiP3w1LGTCf6cYfhy6kbq6Gwmh26X2N2Ie1y18ww48r edecdvQLr7DThccKkzuQJDGNXsCv44CDGKnCKS32bK7Dp4B+ODp4UIib8Nbrk+DDRruyQknVNsopf +uKvgOwp+APOtrWPhhjrAkskeOMmdR0sGSjOcUQaB21NHO4hGGaiuniWApZAey+FKVK3da1NOKDUv KmvUI6SlZ+Euj5UNUlk0HQ==; In-Reply-To: (message from Po Lu on Sun, 19 May 2024 08:15:14 +0800) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:285404 Archived-At: > From: Po Lu > Cc: me@rodrigomorales.site, 70989@debbugs.gnu.org > Date: Sun, 19 May 2024 08:15:14 +0800 > > Eli Zaretskii writes: > > > Sorry, can you elaborate a bit, please? Specifically: > > > > . which code in get_adstyle_property does this, and how? > > Not "which code", but "the code", in that the function doesn't actively > generate adstyles inappropriate for XLFDs, but duly returns such > adstyles when Fontconfig reports the same. Sorry, I still don't understand what you are saying. Could you please talk me through the code in that function, and tell where does "Sans-Serif" come from and how is it "injected" into the font's attributes? What I see there is the call to fond_intern_prop, and if the result is accepted by font_style_to_value as a valid value of FONT_WIDTH_INDEX, it is returned. But "Sans-Serif" is not supposed to be a valid width of a font, so I'm confused. > > . what is your idea for a fix, which led you to ask about "the > > chances that a font will define two adstyles that collide"? > > Replacing instances of "-" with "_" in adstyles. In what string or symbol name that is being processed in get_adstyle_property?