From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#56637: 28.1.90; [FR] Allow a way around font-lock-mode being unconditionally disabled in " *hidden*" buffers Date: Thu, 21 Jul 2022 20:11:49 +0800 Message-ID: <87wnc61x8a.fsf@localhost> References: <874jzdhh5m.fsf@localhost> <871qug4dyk.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39106"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56637@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 21 14:12:02 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 1oEV29-0009tc-Kq for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 21 Jul 2022 14:12:01 +0200 Original-Received: from localhost ([::1]:35558 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oEV28-0000ae-In for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 21 Jul 2022 08:12:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60212) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEV1C-0007Pq-Cg for bug-gnu-emacs@gnu.org; Thu, 21 Jul 2022 08:11:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47072) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oEV1C-0001c5-1k for bug-gnu-emacs@gnu.org; Thu, 21 Jul 2022 08:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oEV1B-0000PA-Sr for bug-gnu-emacs@gnu.org; Thu, 21 Jul 2022 08:11:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 Jul 2022 12:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56637 X-GNU-PR-Package: emacs Original-Received: via spool by 56637-submit@debbugs.gnu.org id=B56637.16584054521535 (code B ref 56637); Thu, 21 Jul 2022 12:11:01 +0000 Original-Received: (at 56637) by debbugs.gnu.org; 21 Jul 2022 12:10:52 +0000 Original-Received: from localhost ([127.0.0.1]:36821 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oEV11-0000Oh-PO for submit@debbugs.gnu.org; Thu, 21 Jul 2022 08:10:51 -0400 Original-Received: from mail-pj1-f53.google.com ([209.85.216.53]:38845) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oEV10-0000OV-CS for 56637@debbugs.gnu.org; Thu, 21 Jul 2022 08:10:50 -0400 Original-Received: by mail-pj1-f53.google.com with SMTP id b7-20020a17090a12c700b001f20eb82a08so5047500pjg.3 for <56637@debbugs.gnu.org>; Thu, 21 Jul 2022 05:10:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=q5PUXEY+hGzN5mDnhX6HRYCpSJBrAfQJciyCM6Gssjs=; b=fMiOAOVDv3nuU/U5q7QB2aCzu9Cw5BbOr4uNz1+JSpmgGqPVHlGxc+959k4AsdZEu9 hgeld4ddLsE7M+tNNQaF2r3Pd0MBe6j15OBVtEloj+SXtFzdI35Ex4LuX02erH3yzhvO X8CCuQ6b66FUfJTzX4J36uk0vHo3CswIA9yY/24kWKfai8ACnglETSoYC8GLVOXEZGmD WWqlvqbB3YDRd7Nv8G5X7/FBqNHsCSYeLtdg/YwdgmfiyErXO51RLZhIxCQsO2ONdACL Zakr7MGbiD0F4JKjm5NJy+9kXg7TYG9AoCJPmB6hdc3/Boc6IL7+5VO62KmM9eXdGSJz 9Jbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=q5PUXEY+hGzN5mDnhX6HRYCpSJBrAfQJciyCM6Gssjs=; b=qnvwJ85HB8/9cL+LMNibGxK7EI9mghsmNFuwAcH5I47tuGsqEUq3nIYI5B8TYuWf/L cyfHjUucXk6RNR9FDyzpNAuLZk2Kw+znAoDygl2KH9sbmQ7iSekeiYkvnTQsR31f8FKv hJd9A8zThfFCYeRTKZR1Xz5QeyYpL2+u6KafhRKyoFP9Z2aNs2BEjSuzYneLM6CJenan 9il/3vTfU0bd0xuVEdMPuDj5oDnUthCl/VM1AgtPTdCEIdUsabe6PXLlDz2JrlmKATe0 gfGsp04Oqmvn0l/Vos8Wn2MYNCStXOE2Xj2xnysPm5mig4kwMJUeJFCNFO6epZBfJJkI 9f2w== X-Gm-Message-State: AJIora8LuQfe4C+Nl2OlqmRpEdOHP9n6Z6oyWHOe0nLcYJEF0i1qcKJx 8WljjKhzQFacfUWpLwfSYKaCzTfPL5xzmQ== X-Google-Smtp-Source: AGRyM1slrYHuBKqnyx/hKyPSWlvTb/weL24dUaHCbZ9G4uiw+A2oqqdGgqVAkuZM3PFQDeqH4c2VpA== X-Received: by 2002:a17:903:44b:b0:16b:ec58:3727 with SMTP id iw11-20020a170903044b00b0016bec583727mr41597836plb.171.1658405444622; Thu, 21 Jul 2022 05:10:44 -0700 (PDT) Original-Received: from localhost ([2409:8a70:2b7:3fb0:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id s21-20020a17090ae69500b001f06cabc60asm1341035pjy.30.2022.07.21.05.10.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Jul 2022 05:10:43 -0700 (PDT) In-Reply-To: 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" Xref: news.gmane.io gmane.emacs.bugs:237544 Archived-At: Stefan Monnier writes: >> We do use `font-lock-ensure', but it does not always produce the same >> results with/without font-lock-mode enabled. > > I'm not completely surprised, because I remember when writing > `font-lock-ensure` that there are many corner cases some of which seem > very difficult to fix without actually enabling `font-lock-mode`, but we > should still strive to be "as close as possible", so ... do you have > a bug report with some concrete cases we could try to fix? Apart from the reddit thread I mentioned, where the problem comes from web-mode directly setting font-lock-face, I also provided an example with noninteractive Emacs in my reply to Eli. Best, Ihor