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: Sun, 24 Jul 2022 14:40:28 +0800 Message-ID: <87zggzqahv.fsf@localhost> References: <874jzdhh5m.fsf@localhost> <837d49ntwg.fsf@gnu.org> <874jzc4e1x.fsf@localhost> <837d48m332.fsf@gnu.org> <87zgh21xbg.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="6717"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , 56637@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 24 08:41:12 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 1oFVId-0001aC-U8 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 24 Jul 2022 08:41:11 +0200 Original-Received: from localhost ([::1]:53936 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oFVIb-0002Np-Um for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 24 Jul 2022 02:41:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49136) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFVHW-0002Ne-EL for bug-gnu-emacs@gnu.org; Sun, 24 Jul 2022 02:40:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56972) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oFVHW-0002aM-15 for bug-gnu-emacs@gnu.org; Sun, 24 Jul 2022 02:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oFVHV-0003N2-QT for bug-gnu-emacs@gnu.org; Sun, 24 Jul 2022 02:40: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: Sun, 24 Jul 2022 06:40: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.165864477612904 (code B ref 56637); Sun, 24 Jul 2022 06:40:01 +0000 Original-Received: (at 56637) by debbugs.gnu.org; 24 Jul 2022 06:39:36 +0000 Original-Received: from localhost ([127.0.0.1]:46721 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFVH6-0003M4-0Y for submit@debbugs.gnu.org; Sun, 24 Jul 2022 02:39:36 -0400 Original-Received: from mail-pl1-f174.google.com ([209.85.214.174]:33479) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFVH1-0003Lo-Sw for 56637@debbugs.gnu.org; Sun, 24 Jul 2022 02:39:34 -0400 Original-Received: by mail-pl1-f174.google.com with SMTP id i3so3347404pld.0 for <56637@debbugs.gnu.org>; Sat, 23 Jul 2022 23:39:31 -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=iAAYnOhJQcUDomCi8DIPRcbfZUZICrecIqYJl5b7nHM=; b=ktC1QT81+6F/Ngscqtbzhz8BP0dYeg7EVFg0sGdIm6c9v6HlTwiozYUF/2pMoco1fd 7MBL5+66Ab3ZBSr9emfsQyPlYSeEnP7NLo2Qo9IiKceOM/mw3idr+vdZzfmJUkhp5gFA Rwq1nBGlaYV8WIqR/fKOsjA0umKFnjxcicoJJuLoR7DV8zA64+dXMw3iBvww/h58iaXo N5YIqgq813x6CpdlPmvhXCHD/gFQyK0LAJ6kex3QcfzJxat3JTopLzv5u0elnst4UOrb Y61+9paNyRBBUcuQSJvQSA24w+e3kpkzmOGou/s3gvQOTcMditayY40NJDkEIbgu2igw hrPA== 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=iAAYnOhJQcUDomCi8DIPRcbfZUZICrecIqYJl5b7nHM=; b=C+vXypnsQ6JT/QHyJuDlZs3cHtxBvWGnEeysTEA1bfV+CVBIGssTtyvYSg9ibsSwQw DGTIbVuEPF8NStyXYcIH3i7Se6fUtT8wBhve/rL2NWs0cxY2yOdrbm768iZaKvXi6BTs nA1Ftlos1lU/25Ev1ZqVTRAK8y02Q5rLnFF20FRCZHwhus2en+JSHrYq1rKett7EZR0a 6KRhVUA2TGhafcNWnsOBvmkGJcHvBrPKdsRqYLSWnsEHbd6RtxTPKUjwPuDjsCyGGDys cUfX7GEMSsqTS8DAtF43Ae5VN74Clp6JhuPdBTFxr5X+TmZ2A0PlxKln3fiD5q7cr37k JzNQ== X-Gm-Message-State: AJIora/0fm2AJaS5gM9WgAkFC72MSJHSRB+LbiVD577ddFjE/QE57s6S ogTyCQL6jOA/IwO6bAJ9x4xK8uKNl8H2/9Gp6Nc= X-Google-Smtp-Source: AGRyM1vnDgkXElSA0E+WgPuHtA84FMHMMzMx/4Es9PXbeSBtC5AIHJlwYuxn0yZEzYPGw/bkVKEEnQ== X-Received: by 2002:a17:903:1207:b0:16a:7e87:dad3 with SMTP id l7-20020a170903120700b0016a7e87dad3mr7339259plh.99.1658644765711; Sat, 23 Jul 2022 23:39:25 -0700 (PDT) Original-Received: from localhost ([1.83.155.1]) by smtp.gmail.com with ESMTPSA id x8-20020a170902a38800b0016bebb0cb96sm6605268pla.266.2022.07.23.23.39.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Jul 2022 23:39:24 -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:237807 Archived-At: Stefan Monnier writes: >> Observed output: #("(message \"Foo\")" 9 14 (face font-lock-string-face)) >> Expected: #("(message \"Foo\")" 0 9 (fontified t) 9 14 (face >> font-lock-string-face fontified t) 14 15 (fontified t)) > > `fontified` is not a text-property that belongs to font-lock but to > jit-lock, so its presence or absence depends on how font-lock is being > used (it can also be absent if you set `font-lock-support-mode to nil, > for example, and it can also be present even if you don't use font-lock > at all), so I would count this as "an incorrect expectation" rather > than as a bug. > > Why do you care about those `fontified` properties? Oops. You are indeed right. I was trying to convert the report from https://orgmode.org/list/wxaUFiqi8BmIPv8pcYRVHAFa0hTzM35roQxpVVRkgddjRkesPGX1kVBL3G0fr42FonlRq5FNjapV8RiovXV-RGEDehXn-cmIebf4HWBhzIQ=@protonmail.com to something simpler. However, Emacs indeed does the fontification correctly here. The origin of the problem in the linked message has something to do with htmlize package, not directly with Emacs. Please ignore this reproducer. Best, Ihor