From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: Re: how is emacs lisp syntax colored in emacs-lisp-mode? Date: Tue, 10 Mar 2009 13:59:38 -0700 (PDT) Organization: http://groups.google.com Message-ID: <2eeaef93-78b5-4dcb-b7fe-9abb03b04424@f1g2000prb.googlegroups.com> References: <873adl333w.fsf@thinkpad.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1236753346 14426 80.91.229.12 (11 Mar 2009 06:35:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 Mar 2009 06:35:46 +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 Mar 11 07:37:02 2009 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.50) id 1LhI3o-00087u-P8 for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Mar 2009 07:37:01 +0100 Original-Received: from localhost ([127.0.0.1]:50237 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LhI2S-0000AA-TS for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Mar 2009 02:35:36 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!postnews.google.com!f1g2000prb.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.emacs,comp.lang.lisp Original-Lines: 37 Original-NNTP-Posting-Host: 24.6.175.142 Original-X-Trace: posting.google.com 1236718779 21525 127.0.0.1 (10 Mar 2009 20:59:39 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 10 Mar 2009 20:59:39 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: f1g2000prb.googlegroups.com; posting-host=24.6.175.142; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; en) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:167510 comp.emacs:97991 comp.lang.lisp:262603 X-Mailman-Approved-At: Wed, 11 Mar 2009 02:33:26 -0400 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:62826 Archived-At: Xah Lee wrote: > on thinking about this, i thought it would not be necessary if emacs- > lisp-mode would just color all built in functions and variables. > However, the way it is syntax colored seems strange, unlike in most > major modes for langs where each class of keywords gets one color. > for example, these keywords would be colored purple by default: > defun, lambda, while, if, progn, save-restriction, ... > while the following built-in keywords are uncolored (black): > narrow-to-region, mapc, goto-char, point-min, search-forward, car, > nil, replace-match ... etc. On Mar 10, 6:43 am, Tassilo Horn wrote: > Function names like the ones you listed aren't colored in function calls > unless they're one of the special forms you mentioned before. I see. Thanks. > > is there a principle of how the keywords are colored? > > Yes, see the elisp manual: > > ,----[ (info "(elisp)Levels of Font Lock") ] > | Many major modes offer three different levels of fontification... > ... does emacs-lisp-mode support more than level 1? i have my emacs set to level 2. I tried customize-group on emacs-lisp- mode but that doesn't seem available. I tried to set font-lock-maximum- decoration to 3 but that doesn't seems to have effect. Xah =E2=88=91 http://xahlee.org/ =E2=98=84