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: adding extensions to cc-mode Date: Mon, 22 Aug 2005 21:16:41 +0200 Message-ID: <32790585c80c797e732480e66c91f8b4@Web.DE> References: <1124705146.532047.65780@g14g2000cwa.googlegroups.com> <430a144e_3@news1.prserv.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v622) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1124740713 11002 80.91.229.2 (22 Aug 2005 19:58:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 22 Aug 2005 19:58:33 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 22 21:58:31 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E7IOK-00018p-C6 for geh-help-gnu-emacs@m.gmane.org; Mon, 22 Aug 2005 21:55:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E7IS4-0008AF-Cc for geh-help-gnu-emacs@m.gmane.org; Mon, 22 Aug 2005 15:59:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E7IJ6-0003Qp-KY for help-gnu-emacs@gnu.org; Mon, 22 Aug 2005 15:50:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E7IJ2-0003PY-RE for help-gnu-emacs@gnu.org; Mon, 22 Aug 2005 15:50:06 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E7IC0-00011V-Oi for help-gnu-emacs@gnu.org; Mon, 22 Aug 2005 15:42:48 -0400 Original-Received: from [217.72.192.224] (helo=smtp06.web.de) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1E7HnR-0000EO-CD for help-gnu-emacs@gnu.org; Mon, 22 Aug 2005 15:17:25 -0400 Original-Received: from [84.245.189.43] (helo=[192.168.1.2]) by smtp06.web.de with asmtp (TLSv1:RC4-SHA:128) (WEB.DE 4.105 #314) id 1E7Hml-0005GO-00; Mon, 22 Aug 2005 21:16:43 +0200 In-Reply-To: <430a144e_3@news1.prserv.net> X-Image-Url: http://homepage.mac.com/sparifankal/.cv/thumbs/me.thumbnail Original-To: kgold@watson.ibm.com (kgold) X-Mailer: Apple Mail (2.622) X-Sender: Peter_Dyballa@web.de 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:28919 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:28919 Am 22.08.2005 um 18:07 schrieb kgold: > The extra quotes might work, but mine looks like: > > (setq auto-mode-alist > (append '( > ("\\.[Ss]$" . asm-mode) > ("\\.68k$" . asm-mode) > ("\\.inc$" . asm-mode) > ("\\.[bB][aA][tT]$" . bat-mode) > ("\\.x$" . c-mode) > ) auto-mode-alist)) > And mine looks more like: (setq auto-mode-alist (append '(("\\.\\(xsl\\|id\\[de\\]\\)\\'" . sgml-mode) ("\\.\\(plist\\|xml\\|xsl\\|fo\\)\\'" . xml-mode) auto-mode-alist))) Please notice the different use of parentheses! \\' is exactly matching a string's end. $ isn't that exact (I don't remember the exact reason). -- Greetings Pete From error to error, one discovers the entire truth. -Sigmund Freud