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.devel Subject: Re: How to walk a Lisp_String? Date: Fri, 02 Sep 2022 16:08:12 +0300 Message-ID: <83edwtq5z7.fsf@gnu.org> 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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32098"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Manuel Giraud Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Sep 02 15:08:48 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 1oU6Pe-00086C-KH for ged-emacs-devel@m.gmane-mx.org; Fri, 02 Sep 2022 15:08:46 +0200 Original-Received: from localhost ([::1]:44090 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oU6Pd-0000fZ-6y for ged-emacs-devel@m.gmane-mx.org; Fri, 02 Sep 2022 09:08:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34742) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oU6Od-0008LV-Oj for emacs-devel@gnu.org; Fri, 02 Sep 2022 09:07:43 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:46234) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oU6Oc-0000NE-KI; Fri, 02 Sep 2022 09:07:42 -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=WEzyyMHJ2TNXoGI2Wuf2suVif6ed3RRhfi/vpj1SKQM=; b=KTMSxmeCB3wN stCx1MrOj9OjgyTvISYoI3fPQDdotbph6shDklb/A4v4D6gSEAGuHFoFgAPrfdtI+liYXkRDfzwDm 52wvNMWNUaIuPbDHHtEvTyNScZ+ETD8fDbDmW9hjbmL6wmUNLATvuvROwzudNiJB2slivMdJzYPt/ 8LKSQiTXuqjXmsDzR+1WmMIXfvbEWluAJrNpSpBufh6vM0NhhPHVGt4LYy62NAt0dh0bm6mAZJ4kF 7iYpxR0PWCzHZzjNm9JYa+1KqAe+6YEOp5VtSg0PYVQZhJwLBq50a9FR3k9BnHFwbLydyy9Lt1tt7 c3/qgOsqnlyRmZXSOIYX/Q==; Original-Received: from [87.69.77.57] (port=2832 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oU6Oc-0000m7-3s; Fri, 02 Sep 2022 09:07:42 -0400 In-Reply-To: <87mtbi57i2.fsf@elite.giraud> (message from Manuel Giraud on Fri, 02 Sep 2022 13:40:53 +0200) 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:294548 Archived-At: > From: Manuel Giraud > Cc: emacs-devel@gnu.org > Date: Fri, 02 Sep 2022 13:40:53 +0200 > > > So I still don't understand how you intend to put face information on > > your Lisp strings, > > I'm still clueless about this. You said that I have to propertize them > so I think there is a C interface for this too. 'propertize' is implemented in C, so you could call it from C (as Fpropertize). But I think perhaps calling Fadd_text_properties (the C name of add-text-properties) will be easier. 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?