Path: utzoo!attcan!uunet!mcvax!ukc!warwick!maujd From: maujd@warwick.UUCP (Geoff Rimmer) Newsgroups: comp.emacs Subject: Re: auto-mode-alist bug?/question Message-ID: <724@ubu.warwick.UUCP> Date: 27 Jun 88 13:15:21 GMT References: <25679@bbn.COM> Sender: news@warwick.UUCP Reply-To: maujd@warwick.UUCP (Geoff Rimmer) Organization: Computer Science, Warwick University, UK Lines: 37 In article <25679@bbn.COM> mesard@BBN.COM writes: >I thought that the following in my auto-mode-alist, would match all >filenames that begin with a dot: > > ("^\\." . fundamental-mode) > >It doesn't seem to match anything. Bug? Suggestions? This is >GnuEmacs 18.51.5. I don't know anything about the auto-mode-alist thing, but surely the regular expression to match something beginning with a dot would be "^\." ^--------only 1 backslash >Also, would anyone care to provide a regexp that will only match filenames >which DO NOT contain a dot. Try "^[^\.]" ^ ^ ^------------- \. means match a dot ^ ^--------------- this means negate the match ^----------------- this means start of line Geoff. >unsigned *Wayne_Mesard(); MESARD@BBN.COM BBN Labs, Cambridge, MA ------------------------------------------------------------ Geoff Rimmer, Computer Science, Warwick University, UK. maujd@uk.ac.warwick.opal "Innocence is lost too easily nowadays" "You can talk - your agent runs a brothel!" - Filthy Rich and Catflap (BBC TV) ------------------------------------------------------------