From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.devel Subject: Re: Fontification using a syntax tree Date: Sat, 18 Sep 2021 08:48:02 -0700 Message-ID: References: <87bl4pc2tq.fsf@hugot.nl> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13233"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Hugo Thunnissen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Sep 18 17:48:44 2021 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 1mRca3-0003Ee-Lf for ged-emacs-devel@m.gmane-mx.org; Sat, 18 Sep 2021 17:48:43 +0200 Original-Received: from localhost ([::1]:59546 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mRca1-0002Qv-Qh for ged-emacs-devel@m.gmane-mx.org; Sat, 18 Sep 2021 11:48:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33094) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRcZS-0001lT-Ma for emacs-devel@gnu.org; Sat, 18 Sep 2021 11:48:06 -0400 Original-Received: from mail-ot1-x335.google.com ([2607:f8b0:4864:20::335]:39670) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mRcZR-0007Ae-B7 for emacs-devel@gnu.org; Sat, 18 Sep 2021 11:48:06 -0400 Original-Received: by mail-ot1-x335.google.com with SMTP id j11-20020a9d190b000000b00546fac94456so715693ota.6 for ; Sat, 18 Sep 2021 08:48:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=Xx4PAryewb/qHTtPBqM07d708PJ6Sx+H+jFScyQJqFw=; b=YRMGisl52XkZUf3adDtZP2wSEy2eGoNdjwJB74PSRAD4MSg+SvAjQ/Usm3O0EbjRa2 s1SgHi1Tq1d5pSA8r5pOLW9rmR7XXKNnrw4JBQt0E2ln51PN5kz13pkAQUIzg7M/Yuol 2kpRB6/HHzk8z/QwcyBPDWRybLTMUYhvCtb7CgjUIO9IRtvbggFQh6l2kQRFPOVNhtcK LTiSBEioMjU+4Z4uiMEKWgNYSX+QQ8mUYGjUVai8XlPs4AT3IP0PjKEPnn11cdc++cK2 C/bGInFA/EWthnz8SXWQz42hj/SXaP7YWl9VWMsGNHCTARDVmwJIGYZLZVY+zukKw+Io zCAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=Xx4PAryewb/qHTtPBqM07d708PJ6Sx+H+jFScyQJqFw=; b=FBbu021EQ3nxXOMXRhGr4gwgj6OcSd5qTIkvtrTCXPyNq75w/JXxfPAH1MDSbaljya OTSHoCbxZLvMoMmz/GqjCd5g5BLjcMJ2p4tl8ZU2ZDxb1TXPA/sApPLb1rNxHZnxb6FK mtxr3BrlBr7hQDPgpo1mnfXVw2Ll5bhvOlMnVV8FXKY7c/fBOmGq0HV/nXe1wKSS2sm1 xfdTtT9W6ktR5QPkCWWvQcPufdEEyDI126l48TxG1Nw/5ECn016iwPwR3yX73RJyLThL ArJJ7tnpdgApv8g2Emz3UUvApE/M058/fUzPkHjGf9qW4zjbJ2RI39Sv9IOej+I7JmLK +iqw== X-Gm-Message-State: AOAM531wXEdebu9Eli7viSScprKMwHT3E3RiMdgIig9cPRjz+k+0g9ud jZqfZAn+rB0gJ3x6V3kvKX5XDr6/FS7SJA== X-Google-Smtp-Source: ABdhPJx9rRMKvIUDfW5t7XGoDfE4fcskPLIWV6IBMN31YOqD0sDGdRiT9FUFbQY5dcfAYwmcU6ZhzA== X-Received: by 2002:a9d:4f1a:: with SMTP id d26mr1507130otl.65.1631980084008; Sat, 18 Sep 2021 08:48:04 -0700 (PDT) Original-Received: from smtpclient.apple ([2600:1700:2ec7:8c9f:c82d:eb89:1e58:8f64]) by smtp.gmail.com with ESMTPSA id p64sm2253739oih.29.2021.09.18.08.48.03 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 18 Sep 2021 08:48:03 -0700 (PDT) In-Reply-To: <87bl4pc2tq.fsf@hugot.nl> X-Mailer: Apple Mail (2.3654.120.0.1.13) Received-SPF: pass client-ip=2607:f8b0:4864:20::335; envelope-from=casouri@gmail.com; helo=mail-ot1-x335.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:274998 Archived-At: >=20 > Before I look deeper into this, is there a way to make this work with > font-lock? Or would I have to implement my own fontification mode? At > that point, is it even a thing that I should want to be doing? Is it a > bad idea / bad practice to not use font-lock? Any advice or thoughts > are most welcome. You can bind font-lock-fontify-region-function and friends to your = custom functions. Yuan=