From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: rusi Newsgroups: gmane.emacs.help Subject: How to make font lock work with comments? Date: Wed, 29 Dec 2010 01:50:47 -0800 (PST) Organization: http://groups.google.com Message-ID: <8649bced-1240-483b-ba41-9bc581938275@t8g2000prh.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1293619280 11725 80.91.229.12 (29 Dec 2010 10:41:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 29 Dec 2010 10:41:20 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 29 11:41:17 2010 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 1PXtT0-0000X2-A6 for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Dec 2010 11:41:14 +0100 Original-Received: from localhost ([127.0.0.1]:38571 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PXtSz-0002we-Qy for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Dec 2010 05:41:13 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!t8g2000prh.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 37 Original-NNTP-Posting-Host: 116.73.35.230 Original-X-Trace: posting.google.com 1293616247 864 127.0.0.1 (29 Dec 2010 09:50:47 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 29 Dec 2010 09:50:47 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: t8g2000prh.googlegroups.com; posting-host=116.73.35.230; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13,gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:183728 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:77950 Archived-At: Im hacking on an apl mode (let ((st (make-syntax-table)) (comment-char ?\x235d)) : : (modify-syntax-entry comment-char "<" st) This char shows as follows (Dont know if it shows elsewhere..) =E2=8D=9D A comment When I put point on the char and call describe-char I get --------------------------------- character: =E2=8D=9D (9053, #o21535, #x235d) preferred charset: unicode (Unicode (ISO10646)) code point: 0x235D syntax: < which means: comment category: .:Base to input: type "{upshoe-jot}" or "{lamp}" or "{comment}" or "{@}" with apl-ascii buffer code: #xE2 #x8D #x9D file code: not encodable by coding system iso-latin-1-unix display: by this font (glyph code) xft:-unknown-unifont-normal-normal-normal-*-12-*-*-*-d-0- iso10646-1 (#x2359) ------------------------------ 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?