From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: How to make font lock work with comments? Date: Sun, 02 Jan 2011 23:29:34 -0500 Organization: A noiseless patient Spider Message-ID: References: <8649bced-1240-483b-ba41-9bc581938275@t8g2000prh.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1294029667 19875 80.91.229.12 (3 Jan 2011 04:41:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 3 Jan 2011 04:41:07 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 03 05:41:03 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PZcEA-0007qR-Vj for geh-help-gnu-emacs@m.gmane.org; Mon, 03 Jan 2011 05:41:03 +0100 Original-Received: from localhost ([127.0.0.1]:54156 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PZcEA-0005Ji-AF for geh-help-gnu-emacs@m.gmane.org; Sun, 02 Jan 2011 23:41:02 -0500 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!news2.euro.net!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 20 Injection-Info: mx02.eternal-september.org; posting-host="7TKp2luQmWSGnmAmeWd+Kg"; logging-data="31792"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+2husbwd2Og0CQLsX2aUog" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:dE2Wu/UpY2221HPGFqN7uQBIgCI= sha1:lh2/ONur1bnk1LbvEMDcw3pJ4kg= Original-Xref: usenet.stanford.edu gnu.emacs.help:183880 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:78085 Archived-At: > Im hacking on an apl mode > (let ((st (make-syntax-table)) > (comment-char ?\x235d)) > : > : > (modify-syntax-entry comment-char "<" st) > In other words emacs sees this as a comment-type char (similar to what > it says for semicolon in elisp buffers > And yet in an elisp buffer the ; to EOL is red > but here it is not. > Any clues? How do you setup font-lock-defaults? I.e. is the KEYWORDS-ONLY entry set to t by any chance? Stefan