From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Manuel Giraud Newsgroups: gmane.emacs.devel Subject: Re: How to walk a Lisp_String? Date: Fri, 02 Sep 2022 16:58:22 +0200 Message-ID: <87fsh96cxd.fsf@elite.giraud> References: <87a67jw1kw.fsf@elite.giraud> <83o7vzqey8.fsf@gnu.org> <83mtbjqemd.fsf@gnu.org> <87ler2963r.fsf@elite.giraud> <838rn2qnsf.fsf@gnu.org> <87wnam6y70.fsf@elite.giraud> <831qsuqllo.fsf@gnu.org> <87bkry6tnr.fsf@elite.giraud> <83tu5qoxol.fsf@gnu.org> <87mtbi57i2.fsf@elite.giraud> <83edwtq5z7.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38321"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (berkeley-unix) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Sep 02 17:00:59 2022 Return-path: Envelope-to: ged-emacs-devel@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 1oU8AE-0009lv-VN for ged-emacs-devel@m.gmane-mx.org; Fri, 02 Sep 2022 17:00:59 +0200 Original-Received: from localhost ([::1]:49908 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oU8AE-0005xx-01 for ged-emacs-devel@m.gmane-mx.org; Fri, 02 Sep 2022 11:00:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38700) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oU87r-0005Ds-6r for emacs-devel@gnu.org; Fri, 02 Sep 2022 10:58:35 -0400 Original-Received: from ledu-giraud.fr ([51.159.28.247]:45252) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oU87p-00053P-Ba; Fri, 02 Sep 2022 10:58:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=j+Z/7C35cSTOF7iZ j9Jv7FqWYpZxJJSDVV0sK2wL5+0=; h=date:references:in-reply-to:subject: cc:to:from; d=ledu-giraud.fr; b=U7p0qhBJpDGVfFRnIEtE8wKkvY9GWjRksD9gJc N3NX9dSUJ4gmWAVazJLTNLE2KpsprBrUpfDTfIs80l57g7yZyDD2e53LDUlZTyXQh7p3hz LIaVKWjXWPs0kLh9uJGcJBnZ1I8eSNJwfBdOIjmrrh+YNlKDkpWJeUUvq3+HiiiTXjacMR c5ScmIMxdn8LELtipPXfQpK8dsyIv5OyXl/268hvDYSxGyy4DpI3JdF03mWy/dBlZVmPtJ VPCVYvcn2z9yVOAQgzEucf6Fn6jELChc3rdAhpu+3bxKREH3Gfkpai0cZaqCeIFBhMFCkr xpjA9Dkt1uPChF9tPDnGGw+Q== Original-Received: from elite.giraud ( [10.1.1.1]) by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id 36db5c6a (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Fri, 2 Sep 2022 16:58:24 +0200 (CEST) In-Reply-To: <83edwtq5z7.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 02 Sep 2022 16:08:12 +0300") Received-SPF: pass client-ip=51.159.28.247; envelope-from=manuel@ledu-giraud.fr; helo=ledu-giraud.fr X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:294558 Archived-At: Eli Zaretskii writes: [...] > However, you still didn't answer my original question: where does the > face information (colors and fonts) come from? The APIs I mention > above will allow you to put the information on a Lisp string, but > where will you get the information you need to put on those strings? Hum, I don't know. So far, I've initialized like this: --8<---------------cut here---------------start------------->8--- struct frame *f = XFRAME (frame); struct face *face = FACE_FROM_ID (f, MENU_FACE_ID); --8<---------------cut here---------------end--------------->8--- And it seems to work as intended (at least for fonts). What am I missing? -- Manuel Giraud