Article View: gnu.emacs.help
Article #189859Re: autoload
From: Bard Bloom
Date: Fri, 26 Oct 1990 13:19
Date: Fri, 26 Oct 1990 13:19
20 lines
1218 bytes
1218 bytes
>
> (setq auto-mode-alist
> (append '(("\\.c$" . c-mode)
> ("\\.h$" . c-mode)
> ("\\.C$" . c++-mode)
> ("\\.H$" . c++-mode)
> ("\\.c++$" . c++-mode)
> ("\\.h++$" . c++-mode))
> auto-mode-alist))
>
>
`+', like `.' and `$', is an active character in regexps. The "c++" suffix
is interpreted as "match one or more units of one or more c's".
You need to quote them the same way you quoted the `.': with a `\\' in front of
each `+'.
Bard
Technical Details
Message-ID:
<47623@cornell.UUCP>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!zephyr.ens.tek.com!uw-beaver!mit-eddie!bbn.com!rochester!cornell!bardReferences:
<1990Oct25.201758.21004@odin.corp.sgi.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103b8b,3f13c7b0e7246103 X-Google-Attributes: gid103b8b,public X-Google-ArrivalTime: 1990-10-26 06:19:23 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!zephyr.ens.tek.com!uw-beaver!mit-eddie!bbn.com!rochester!cornell!bard From: bard@brigid.cs.cornell.edu (Bard Bloom) Newsgroups: gnu.emacs.help Subject: Re: autoload Message-ID: <47623@cornell.UUCP> Date: 26 Oct 90 13:19:23 GMT References: <1990Oct25.201758.21004@odin.corp.sgi.com> Sender: nobody@cornell.UUCP Reply-To: bard@cs.cornell.edu (Bard Bloom) Organization: Cornell Univ. CS Dept, Ithaca NY Lines: 20 Posted: Fri Oct 26 14:19:23 1990