From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#33937: 26.1; mhtml-mode fails to capture font-lock-keywords-case-fold-search Date: Wed, 30 Oct 2019 17:19:00 -0400 Message-ID: References: <87mudiowzv.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="65502"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 33937@debbugs.gnu.org, Leo Liu To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 30 23:37:45 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iPwb3-000Gu7-4e for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Oct 2019 23:37:45 +0100 Original-Received: from localhost ([::1]:45020 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iPwb1-0008EX-Cp for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Oct 2019 18:37:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60535) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iPvNw-00023C-9k for bug-gnu-emacs@gnu.org; Wed, 30 Oct 2019 17:20:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iPvNr-0008NF-E2 for bug-gnu-emacs@gnu.org; Wed, 30 Oct 2019 17:20:08 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42907) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iPvNq-0008Mp-Co for bug-gnu-emacs@gnu.org; Wed, 30 Oct 2019 17:20:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iPvNq-0003ie-6A for bug-gnu-emacs@gnu.org; Wed, 30 Oct 2019 17:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Oct 2019 21:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33937 X-GNU-PR-Package: emacs Original-Received: via spool by 33937-submit@debbugs.gnu.org id=B33937.157247035214222 (code B ref 33937); Wed, 30 Oct 2019 21:20:02 +0000 Original-Received: (at 33937) by debbugs.gnu.org; 30 Oct 2019 21:19:12 +0000 Original-Received: from localhost ([127.0.0.1]:51728 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iPvN2-0003hK-GM for submit@debbugs.gnu.org; Wed, 30 Oct 2019 17:19:12 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:54068) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iPvN0-0003h5-EC for 33937@debbugs.gnu.org; Wed, 30 Oct 2019 17:19:11 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id AE69B449665; Wed, 30 Oct 2019 17:19:04 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 3E559449661; Wed, 30 Oct 2019 17:19:03 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1572470343; bh=8r3Gjzx7dVaYNws7KXZg9tqUuyTY/i5gKdzhWnp7PSo=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=hPKk3vDIHE13YTSBMc+tmJKFmyxUniBEzhGrykXNoUxEGsSZOy2INrZtx01w2bxb7 tjkYwB4/nnKPr+Um/dC+AwAd+i1lQvXN4IS6ntluzy8Xt6eNsK3cJrihJWQOPujy3U er1Tz7vpEuOJTqDmKVb1DIKU8KmwjPN2RlnjXBkuQY6fioGsPqyom7t/0Jt0B8Y/Ly E4G4xp02p7sSSq+OjA3ZbIX1CINbZDu+Yy4hY4pL1IxTHPDFYMdhV42N5A2W8b3T6V TJkP/OEMyelTbAT10coiVvKhGMijdCJS1G0OgcAjt1x8uSG4adaN1lu4e4vvgKz7JH Euj2qhS7yZPjw== Original-Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 20F1B12089B; Wed, 30 Oct 2019 17:19:03 -0400 (EDT) In-Reply-To: <87mudiowzv.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 30 Oct 2019 20:26:44 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:170475 Archived-At: > ;; Case fold during regexp fontification? > - (when (nth 2 defaults) > - (set (make-local-variable 'font-lock-keywords-case-fold-search) t)) > + (if (nth 2 defaults) > + (set (make-local-variable 'font-lock-keywords-case-fold-search) t) > + (kill-local-variable 'font-lock-keywords-case-fold-search)) > > It's slightly puzzling -- font-lock-keywords-case-fold-search is > permanently buffer-local, but I guess that puzzlement was there before > this patch, but the kill-local-variable thing is what makes mhtlm not > work. > > Stefan, do you remember the reason for this change? I can't remember the specific case, but I remember that it was basically the inverse situation where font-lock-keywords-case-fold-search was left at `t` instead of resetting it to the default nil. I guess we should just (setq-local font-lock-keywords-case-fold-search (nth 2 defaults)) instead, Stefan