From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jadamson@partners.org (Joel J. Adamson) Newsgroups: gmane.emacs.help Subject: Re: File mode specification error? Date: Mon, 04 Jun 2007 15:11:44 -0400 Organization: Harvard University Message-ID: <87sl97mt5b.fsf@W0053328.mgh.harvard.edu> References: <1180984033.395668.324060@p77g2000hsh.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1180993015 2778 80.91.229.12 (4 Jun 2007 21:36:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 4 Jun 2007 21:36:55 +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 Jun 04 23:36:54 2007 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 1HvKEP-0007s2-OP for geh-help-gnu-emacs@m.gmane.org; Mon, 04 Jun 2007 23:36:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvKEP-00005d-A6 for geh-help-gnu-emacs@m.gmane.org; Mon, 04 Jun 2007 17:36:53 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!elk.ncren.net!news.purdue.edu!purdue!news.harvard.edu!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 41 Original-NNTP-Posting-Host: w0053328.mgh.harvard.edu Original-X-Trace: plato.harvard.edu 1180984303 2226 132.183.29.121 (4 Jun 2007 19:11:43 GMT) Original-X-Complaints-To: news@plato.harvard.edu Original-NNTP-Posting-Date: Mon, 4 Jun 2007 19:11:43 +0000 (UTC) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:5dyVMKaWRWSUG6k31iIGflypRe8= Original-Xref: shelby.stanford.edu gnu.emacs.help:149061 X-Mailman-Approved-At: Mon, 04 Jun 2007 17:35:56 -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:44648 Archived-At: troelskn writes: > (newbie-warning) > > I just installed emacs 22 on windows. If I open up a *.el file, there > is no font-lock, and I get the following error message: > > File mode specification error: (wrong-type-argument stringp ("\\.dz\ > \'" nil jka-compr)) > > Anyone have an idea about, what that is? That's a regular expression my friend, the way emacs identifies file types (in this case). Read the friendly manual on Emacs/POSIX regular expression syntax under "M-x info" (this takes you into info mode, then you can read the Emacs manual, a chapter of which is dedicated to regular expressions). As annoying as the message is, you can enable font-lock by typing "M-x font-lock-mode RET" or putting ;; Global font-lock mode (global-font-lock-mode 1) into your .emacs file. This enables font lock by default for every buffer. I love it. Every buffer comes up all colorful... By your newbie warning, do you mean you're new to Emacs, or new to Emacs 22? -- Joel J. Adamson Biostatistician Pediatric Psychopharmacology Research Unit Massachusetts General Hospital Boston, MA 02114 (617) 643-1432 (303) 880-3109