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.bugs Subject: bug#58755: 29.0.50; Font locking not enabling for ts-mode Date: Mon, 24 Oct 2022 00:15:58 -0700 Message-ID: References: <87czah3eni.fsf@thornhill.no> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31281"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58755@debbugs.gnu.org To: Theodor Thornhill Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 24 09:17:41 2022 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 1omriP-00080B-7c for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 24 Oct 2022 09:17:41 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1omri7-0006T7-Ol; Mon, 24 Oct 2022 03:17:26 -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 1omrhm-0004PR-O6 for bug-gnu-emacs@gnu.org; Mon, 24 Oct 2022 03:17:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1omrhm-0000iT-Ei for bug-gnu-emacs@gnu.org; Mon, 24 Oct 2022 03:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1omrhm-0004vQ-9j for bug-gnu-emacs@gnu.org; Mon, 24 Oct 2022 03:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Oct 2022 07:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58755 X-GNU-PR-Package: emacs Original-Received: via spool by 58755-submit@debbugs.gnu.org id=B58755.166659576918850 (code B ref 58755); Mon, 24 Oct 2022 07:17:02 +0000 Original-Received: (at 58755) by debbugs.gnu.org; 24 Oct 2022 07:16:09 +0000 Original-Received: from localhost ([127.0.0.1]:46896 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1omrgv-0004tx-CP for submit@debbugs.gnu.org; Mon, 24 Oct 2022 03:16:09 -0400 Original-Received: from mail-pj1-f51.google.com ([209.85.216.51]:40614) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1omrgs-0004tC-Et for 58755@debbugs.gnu.org; Mon, 24 Oct 2022 03:16:06 -0400 Original-Received: by mail-pj1-f51.google.com with SMTP id r61-20020a17090a43c300b00212f4e9cccdso3138192pjg.5 for <58755@debbugs.gnu.org>; Mon, 24 Oct 2022 00:16:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=rqCK2k2s50ViXMgSuirkx2wK/UrR4jPZmzX7kiykAjM=; b=EFuhcvkQEd2s54fL3gY8NV0tbpyOQpa2NyhFU/2JlSRjuq6Y1az20dQ4DFTAo8d2H+ PeSpKfza0tpdeQRwpph35kH8PEYBuFLcSZcdTLSKqHTxgieumHuv11VGs4910BYmqqkH iTuikkUzgNEEOhvYyWn2bMRdlyPbgqFVCtIuxhG45fLHLxyw1CUMESWwLA+cLTrVaGtJ 5ZRKSqQqZnPhQB0oHtXsgI2DHJ12e/BwnlvsO/ufUs99Vb1xC4x1DuoL57F9tjLdQSaT 7sIuNVf/ubNJuKRMnIxOE0l2Bmo34PTVKRA6C8SRSNylQyfXUcP9cEVul6nOgdBW++E9 P8Gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rqCK2k2s50ViXMgSuirkx2wK/UrR4jPZmzX7kiykAjM=; b=kSpPJ7J5dPoW6icQJ7aHsWDcY2JqmSW0tronHfvbX2Fp/gXb1reChJn1Io+ovqrrhB ETBie2ROX+xxccLGCdNhXmSbtn4bjf+LVisclIsGnnuTMTF36nu4HpbWLw1xUIPExtz7 T+PSCgPdceS8ko1sLkNOTs2oMYXu2knGBWFz8J16gxmY+/lc8/cQCUADOya1cVSpzhd4 eDYesX8M1gZddNb8bwGbgdAXxlvfPZellxVTGz6sCrUOaShz5kKu1j4IA5268QMMx3iL bARdjwuBtLFtAWPcF+wanUr+D4tpyBVzrAjuo+6f2ycFPxtXMZ3nUEiYK2LWYXtw6YW1 eX1A== X-Gm-Message-State: ACrzQf2yrc9JVIV7q6MLsLvIusOItfX+IsjvHaX4X0JfSZknEmt7pLrm 7FTgKQXvaPhp2Akbyrgi3RI= X-Google-Smtp-Source: AMsMyM47Xmf9d9hXqQQdgF5zmNCwpvEQqCqjymM1YHGczQih5X7XJ9TUqIXxXxLQdBNF4yYCkz5gfA== X-Received: by 2002:a17:90b:1bcb:b0:20d:75b8:ee64 with SMTP id oa11-20020a17090b1bcb00b0020d75b8ee64mr36873778pjb.162.1666595760626; Mon, 24 Oct 2022 00:16:00 -0700 (PDT) Original-Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id 136-20020a62158e000000b0056bcb102e7bsm1383370pfv.68.2022.10.24.00.15.59 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Oct 2022 00:15:59 -0700 (PDT) In-Reply-To: <87czah3eni.fsf@thornhill.no> X-Mailer: Apple Mail (2.3696.120.41.1.1) 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: , Original-Sender: "bug-gnu-emacs" Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:246098 Archived-At: > On Oct 23, 2022, at 11:43 PM, Theodor Thornhill via Bug reports for = GNU Emacs, the Swiss army knife of text editors = wrote: >=20 > Hi Yuan! >=20 > It seems we cannot really enable font-lock without setting the > font-lock-defaults to some non-nil value. >=20 > I'm not really sure why the 'treesit-font-lock-enable' isn't = sufficient, > but here's a patch that at least makes ts-mode usable again :) >=20 > Thanks, > Theo Hey Theo, sorry for the trouble=E2=80=A6 Yeah font-lock-mode looks at = font-lock-default=E2=80=99s value when turning on and won=E2=80=99t do = anything if it=E2=80=99s value is nil. I thought we are going to install = a new scheme soon so I didn=E2=80=99t change the code. I=E2=80=99ll fix = ts-mode and push. Yuan=