From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.bugs Subject: bug#1297: font-lock-keywords-case-fold-search doc and usage Date: Mon, 3 Nov 2008 23:22:54 -0800 (PST) Message-ID: <200811040722.mA47Ms3q020156@mothra.ics.uci.edu> References: <87od0xh600.fsf@cyd.mit.edu> <200811030444.mA34i1oB000823@mothra.ics.uci.edu> <8763n4ltv2.fsf@cyd.mit.edu> Reply-To: Dan Nicolaescu , 1297@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1225783833 19670 80.91.229.12 (4 Nov 2008 07:30:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Nov 2008 07:30:33 +0000 (UTC) Cc: 1297@emacsbugs.donarmstrong.com To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 04 08:31:32 2008 connect(): Connection refused Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from mail-forward1.uio.no ([129.240.10.70]) by lo.gmane.org with esmtp (Exim 4.50) id 1KxGNu-0001ha-Vr for geb-bug-gnu-emacs@m.gmane.org; Tue, 04 Nov 2008 08:31:31 +0100 Original-Received: from exim by mail-out1.uio.no with local-bsmtp (Exim 4.69) (envelope-from ) id 1KxGMo-0005b7-Fk for geb-bug-gnu-emacs@m.gmane.org; Tue, 04 Nov 2008 08:30:22 +0100 Original-Received: from mail-mx5.uio.no ([129.240.10.46]) by mail-out1.uio.no with esmtp (Exim 4.69) (envelope-from ) id 1KxGMo-0005b4-EK for geb-bug-gnu-emacs@m.gmane.org; Tue, 04 Nov 2008 08:30:22 +0100 Original-Received: from lists.gnu.org ([199.232.76.165]) by mail-mx5.uio.no with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1KxGMl-0002qS-UO for geb-bug-gnu-emacs@m.gmane.org; Tue, 04 Nov 2008 08:30:22 +0100 Original-Received: from localhost ([127.0.0.1]:50987 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KxGMk-0000pF-Mo for geb-bug-gnu-emacs@m.gmane.org; Tue, 04 Nov 2008 02:30:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KxGMf-0000oM-MM for bug-gnu-emacs@gnu.org; Tue, 04 Nov 2008 02:30:13 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KxGMe-0000o1-Ni for bug-gnu-emacs@gnu.org; Tue, 04 Nov 2008 02:30:12 -0500 Original-Received: from [199.232.76.173] (port=52443 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KxGMe-0000ny-Fw for bug-gnu-emacs@gnu.org; Tue, 04 Nov 2008 02:30:12 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:59384) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KxGMe-0000iK-1b for bug-gnu-emacs@gnu.org; Tue, 04 Nov 2008 02:30:12 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mA47U54M027480; Mon, 3 Nov 2008 23:30:05 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mA47U31I027353; Mon, 3 Nov 2008 23:30:03 -0800 X-Loop: don@donarmstrong.com Resent-From: Dan Nicolaescu Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 04 Nov 2008 07:30:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1297 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 1297-submit@emacsbugs.donarmstrong.com id=B1297.122578339626108 (code B ref 1297); Tue, 04 Nov 2008 07:30:03 +0000 Original-Received: (at 1297) by emacsbugs.donarmstrong.com; 4 Nov 2008 07:23:16 +0000 Original-Received: from sallyv2.ics.uci.edu (sallyv2.ics.uci.edu [128.195.1.120]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mA47NDT6026102 for <1297@emacsbugs.donarmstrong.com>; Mon, 3 Nov 2008 23:23:14 -0800 Original-Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by sallyv2.ics.uci.edu (8.13.7+Sun/8.13.7) with ESMTP id mA47MsfW005536; Mon, 3 Nov 2008 23:22:55 -0800 (PST) Original-Received: (from dann@localhost) by mothra.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id mA47Ms3q020156; Mon, 3 Nov 2008 23:22:54 -0800 (PST) In-Reply-To: <8763n4ltv2.fsf@cyd.mit.edu> (Chong Yidong's message of "Mon, 03 Nov 2008 10:19:45 -0500") Original-Lines: 57 X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: mA47MsfW005536 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Tue, 04 Nov 2008 02:30:12 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org X-UiO-SPF-Received: Received-SPF: pass (mail-mx5.uio.no: domain of gnu.org designates 199.232.76.165 as permitted sender) client-ip=199.232.76.165; envelope-from=bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org; helo=lists.gnu.org; X-UiO-Spam-info: not spam, SpamAssassin (score=-4.0, required=5.0, autolearn=disabled, MISSING_SUBJECT=0.001,NO_RECEIVED=-0.001,RCVD_IN_DNSWL_MED=-4, uiobl=NO, uiouri=NO) X-UiO-Scanned: E75B2D148D52027503FEC49E76CFEBEE89ADEEFE X-UiO-SPAM-Test: remote_host: 199.232.76.165 spam_score: -39 maxlevel 200 minaction 2 bait 0 mail/h: 18 total 75668 max/h 424 blacklist 0 greylist 0 ratelimit 0 Xref: news.gmane.org gmane.emacs.bugs:22146 Archived-At: Chong Yidong writes: > Dan Nicolaescu writes: > > > > Great catch. No one has complained about this, so clearly it's OK for > > > font-lock-keywords-case-fold-search to be nil. I removed the bogus > > > 8-year-old setting of font-lock-keywords-case-fold-search. > > > > But that's not quite right, not sure about the standard, but there are > > lisps that are case insensitive: > > > > (DEFUN foo (arg) > > blah) > > > > ought to be fontified the same was as: > > > > (defun foo (arg) > > blah) > > We can put this in the wishlist. I don't see any reason to rock this > particular boat right now. It's easier to fix than to write a wishlist item --- lisp-mode.el.~1.230.~ 2008-11-02 21:49:24.000000000 -0800 +++ lisp-mode.el 2008-11-03 23:13:38.000000000 -0800 @@ -195,7 +195,8 @@ ;; The LISP-SYNTAX argument is used by code in inf-lisp.el and is ;; (uselessly) passed from pp.el, chistory.el, gnus-kill.el and score-mode.el -(defun lisp-mode-variables (&optional lisp-syntax) +;; KEYWORDS-CASE-SENSITIVE means that for font-lock keywords will not be case sensitive. +(defun lisp-mode-variables (&optional lisp-syntax keywords-case-insensitive) (when lisp-syntax (set-syntax-table lisp-mode-syntax-table)) (setq local-abbrev-table lisp-mode-abbrev-table) @@ -241,9 +242,9 @@ (setq multibyte-syntax-as-symbol t) (set (make-local-variable 'syntax-begin-function) 'beginning-of-defun) (setq font-lock-defaults - '((lisp-font-lock-keywords + `((lisp-font-lock-keywords lisp-font-lock-keywords-1 lisp-font-lock-keywords-2) - nil nil (("+-*/.<>=!?$%_&~^:@" . "w")) nil + nil ,keywords-case-insensitive (("+-*/.<>=!?$%_&~^:@" . "w")) nil (font-lock-mark-block-function . mark-defun) (font-lock-syntactic-face-function . lisp-font-lock-syntactic-face-function)))) @@ -464,7 +465,7 @@ if that value is non-nil." (use-local-map lisp-mode-map) (setq major-mode 'lisp-mode) (setq mode-name "Lisp") - (lisp-mode-variables) + (lisp-mode-variables nil t) (make-local-variable 'comment-start-skip) (setq comment-start-skip "\\(\\(^\\|[^\\\\\n]\\)\\(\\\\\\\\\\)*\\)\\(;+\\|#|\\) *")