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: Sun, 25 Aug 2019 14:12:49 -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="11363"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 37137@debbugs.gnu.org To: Zachary Napier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 25 20:13:21 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 1i1x0y-0002ra-6i for geb-bug-gnu-emacs@m.gmane.org; Sun, 25 Aug 2019 20:13:20 +0200 Original-Received: from localhost ([::1]:44736 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i1x0x-0002Y1-6N for geb-bug-gnu-emacs@m.gmane.org; Sun, 25 Aug 2019 14:13:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49544) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i1x0m-0002Xi-Qt for bug-gnu-emacs@gnu.org; Sun, 25 Aug 2019 14:13:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i1x0k-0005cd-R0 for bug-gnu-emacs@gnu.org; Sun, 25 Aug 2019 14:13:08 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36257) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i1x0g-0005Yo-Jv; Sun, 25 Aug 2019 14:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i1x0g-0006lF-DJ; Sun, 25 Aug 2019 14:13: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: Sun, 25 Aug 2019 18:13: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.156675677825975 (code B ref 37137); Sun, 25 Aug 2019 18:13:02 +0000 Original-Received: (at 37137) by debbugs.gnu.org; 25 Aug 2019 18:12:58 +0000 Original-Received: from localhost ([127.0.0.1]:45078 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i1x0c-0006ks-Bt for submit@debbugs.gnu.org; Sun, 25 Aug 2019 14:12:58 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:54453) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i1x0a-0006kX-SN for 37137@debbugs.gnu.org; Sun, 25 Aug 2019 14:12:57 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 9B676100EC6; Sun, 25 Aug 2019 14:12:51 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 63B02100B00; Sun, 25 Aug 2019 14:12:50 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1566756770; bh=ZKcIV2KuLzDXVmYBIIhfkwy95htmZzftt17mR3iQiG8=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=kHvsWGvBAr3TP4pHCRq+V8bgQ3cJLNEnHE8Yez/WFytN8S8KrnJg0QtPzNjReFLxH cSjidcx3+hcN+FqOSj5RMG2WCOA4U6Yt0ImooxjQrN8KNdRaXbQAEjbng9/+GqRkAp /tBWgI//6+DQHbb5H68eRPIREoC3nGVnVPzzGN0VSaLaS0F8Syjt1cFcQroVTFp3rl BZTOpveiFhpJh1QR605yZ/tviivxu++FXiH+N9JkFLuZQ5kPKhZ4lkEHm/G9nb0GhO /5fapNlU9X1sMG2ep53zbzXp481W9CJeKuXeKQWso1EDMMxqETTkh4+/l+iPtLYXuW +uq/Hc7whVO9w== Original-Received: from alfajor (modemcable157.163-203-24.mc.videotron.ca [24.203.163.157]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 2E954120317; Sun, 25 Aug 2019 14:12:50 -0400 (EDT) In-Reply-To: (Zachary Napier's message of "Wed, 21 Aug 2019 15:20:20 -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:165848 Archived-At: > I have in my .emacs file only these two lines: > > (custom-set-variables > '(font-lock-keywords-case-fold-search t)) How did you end up with that? font-lock-keywords-case-fold-search is not a customize variable, so you should not set it with custom-set-variables. > Then if I visit an empty or nonexistent C file and just type "LONG" > (in all caps or with at least one letter being capital), Emacs will > hang after typing the final G but before the G appears on screen Clearly not a desirable behavior, indeed, but the above var setting is clearly a pilot error. Of course (setq-default font-lock-keywords-case-fold-search t) would give the same result, but I'd also argue that it'd be a pilot error. Stefan