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#37137: Setting font-lock-case-fold-search to t causes hangs on certain types in c-mode Date: Mon, 02 Sep 2019 08:50:12 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="257440"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: acm@muc.de, 37137@debbugs.gnu.org To: Zachary Napier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 02 14:51:25 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 1i4lnp-0014nS-8S for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Sep 2019 14:51:25 +0200 Original-Received: from localhost ([::1]:36252 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i4lnm-0003Aa-Kh for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Sep 2019 08:51:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46815) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i4lnV-000364-Ij for bug-gnu-emacs@gnu.org; Mon, 02 Sep 2019 08:51:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i4lnT-0001VH-Ke for bug-gnu-emacs@gnu.org; Mon, 02 Sep 2019 08:51:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48731) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i4lnS-0001PT-Lz; Mon, 02 Sep 2019 08:51:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i4lnS-00025N-Jh; Mon, 02 Sep 2019 08:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Mon, 02 Sep 2019 12:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37137 X-GNU-PR-Package: emacs,cc-mode Original-Received: via spool by 37137-submit@debbugs.gnu.org id=B37137.15674286247953 (code B ref 37137); Mon, 02 Sep 2019 12:51:02 +0000 Original-Received: (at 37137) by debbugs.gnu.org; 2 Sep 2019 12:50:24 +0000 Original-Received: from localhost ([127.0.0.1]:57548 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i4lmq-00024D-F2 for submit@debbugs.gnu.org; Mon, 02 Sep 2019 08:50:24 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:40742) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i4lmn-000240-U2 for 37137@debbugs.gnu.org; Mon, 02 Sep 2019 08:50:23 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 0F0B7100C6D; Mon, 2 Sep 2019 08:50:16 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 080521008A7; Mon, 2 Sep 2019 08:50:14 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1567428614; bh=7Jx/uZDk3GTPjZxhAWjJFZeA5zGqncCoDfySY2WcMqE=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=lAtX84mOmxlgOgBd28MHbWOPu4tX3NEmvJZ2AMfEJ/xbct2z86CBzWs4TRA8IQpxn mjRHtz54v11o/s5uf6IDCYzJqs/GYGYPu3KJ3KPfPmc6cgUu9Vb5tpS6JclA7YTwu+ iXVZbscFVIZmXiEOMeOKOQmYIlGeJWENaHk/HzWLoBeqPVmLN3iI5RTeBVdMNt1aox ojb3ApvdTiUXMkJ/O1IvmCVF/S3bwpFqBg1K/HuVdnIhlRS//RZq3SKJ4OKOlYBJdg Oalzo+M/0LkfdhtoTenAGVDe2yRiHLV/BX/ncxlWckn0N7bnzBJzVfuXFpT3ghiJZp JqLS4lYzVqwZg== Original-Received: from pastel (104-195-211-90.cpe.teksavvy.com [104.195.211.90]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id C4B46120604; Mon, 2 Sep 2019 08:50:13 -0400 (EDT) In-Reply-To: (Zachary Napier's message of "Sun, 1 Sep 2019 14:28:31 -0700") 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:166160 Archived-At: > I inherited this .emacs file from someone else who had this > set. I'm guessing it used to be customizable? AFAICT it's never been custom-izable, and it really would be weird for it to be. I think it's more likely that this custom-set-variables was hand-edited. > I can just change the regexps I am using in > font-lock-add-keywords. That's a much safer approach. You can also do (add-hook '-mode-hook (lambda () (setq-local font-lock-case-fold-search t))) for the specific mode where you need it: it may break the font-locking of that mode, but if it does, at least the breakage will be limited to that mode. Stefan