From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: File mode specification error: (invalid-regexp "Invalid regular expression") Date: Sat, 26 Jul 2008 20:36:41 +0200 Message-ID: <272447EE-C878-4BA9-80E5-AB5D0F222570@Web.DE> References: <200807261642.32406.roberto.bernetti@poste.it> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1217097442 22525 80.91.229.12 (26 Jul 2008 18:37:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 26 Jul 2008 18:37:22 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: roberto.bernetti@poste.it Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jul 26 20:38:11 2008 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 1KMoec-0002Wu-FM for geh-help-gnu-emacs@m.gmane.org; Sat, 26 Jul 2008 20:38:06 +0200 Original-Received: from localhost ([127.0.0.1]:57090 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KModi-0005qB-Ee for geh-help-gnu-emacs@m.gmane.org; Sat, 26 Jul 2008 14:37:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KModQ-0005q5-4m for help-gnu-emacs@gnu.org; Sat, 26 Jul 2008 14:36:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KModO-0005pW-Ir for help-gnu-emacs@gnu.org; Sat, 26 Jul 2008 14:36:50 -0400 Original-Received: from [199.232.76.173] (port=42183 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KModO-0005pT-C8 for help-gnu-emacs@gnu.org; Sat, 26 Jul 2008 14:36:50 -0400 Original-Received: from fmmailgate02.web.de ([217.72.192.227]:54074) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KModO-0002vK-17 for help-gnu-emacs@gnu.org; Sat, 26 Jul 2008 14:36:50 -0400 Original-Received: from smtp08.web.de (fmsmtp08.dlan.cinetic.de [172.20.5.216]) by fmmailgate02.web.de (Postfix) with ESMTP id E05A7E73E66C; Sat, 26 Jul 2008 20:36:48 +0200 (CEST) Original-Received: from [91.35.241.236] (helo=[192.168.1.2]) by smtp08.web.de with asmtp (TLSv1:AES128-SHA:128) (WEB.DE 4.109 #226) id 1KModM-00061N-00; Sat, 26 Jul 2008 20:36:48 +0200 In-Reply-To: <200807261642.32406.roberto.bernetti@poste.it> X-Mailer: Apple Mail (2.753.1) X-Sender: Peter_Dyballa@web.de X-Provags-ID: V01U2FsdGVkX18Dv8z1p0VeArJae0+rtNMMCb+3DP7yETBW3t+a PmFYKV1Bl8Cq1genbgbi7m9+v9luCSHmlUj7WTvdydYy67fHHx 6X8JGiAINjffLOw7t5lw== X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:55968 Archived-At: Am 26.07.2008 um 16:42 schrieb Roberto Bernetti: > (setq auto-mode-alist > (cons '("\\.mc$" . maxima-mode) auto-mode-alist)) > (setq auto-mode-alist > (cons '("\\.mx$" . maxima-mode) auto-mode-alist)) ``$=B4=B4 stands for end of line, ``'=B4=B4 means end of word or string. = This =20 can make a difference with: emacs You could simplify (really?) these lines to: (setq auto-mode-alist (cons '("\\.m\\(c\\|x\\)\\'" . maxima-mode) = auto-mode-alist)) -- Greetings Pete ~ o ~_\\_/\ ~ O O