From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sven Utcke Newsgroups: gmane.emacs.help Subject: Competing RegExp in auto-mode-alist (was: winmgr and howm) Date: Wed, 14 Jan 2009 10:28:41 +0100 Organization: Deutsches Elektronen-Synchrotron (DESY) Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1231926049 793 80.91.229.12 (14 Jan 2009 09:40:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 Jan 2009 09:40:49 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 14 10:42:00 2009 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 1LN2G6-00040k-21 for geh-help-gnu-emacs@m.gmane.org; Wed, 14 Jan 2009 10:41:58 +0100 Original-Received: from localhost ([127.0.0.1]:50197 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LN2Ep-000619-L6 for geh-help-gnu-emacs@m.gmane.org; Wed, 14 Jan 2009 04:40:39 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!newshub.sdsu.edu!feeder.erje.net!news-1.dfn.de!news-ham1.dfn.de!claire.desy.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-NNTP-Posting-Host: hasgksssven.desy.de User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:ZlLD+XPX7qirbM8cro6MXt69mro= Original-Xref: news.stanford.edu gnu.emacs.help:165990 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:61317 Archived-At: Hi, I realised that my original subject was somewhat misleading, so I rephrased it. The question, however, remains: I use howm-mode to note down random snippets of information. By default, those files are named ---.howm. So far, so well. But unfortunately this is matched by winmgr's default RegExp "\\.[A-Za-z]*wm$". And, even worse, winmgr-mode can only be switched on, but not off. Any clever idea how to handle that situation, short of using something like "\\.[A-Za-gi-z]*[A-Za-np-z]*wm$"? So what's the best way to set up auto-mode-alist? Complicated RegExps? Simply change the order of the RegExps? Any other ideas? Thanks Sven -- ___ _ _____ ___ Dr.-Ing. Sven Utcke ___ ___ _____ __ / __| |/ / __| __| phone: +49 40 899-8-5317 | \| __/ __\ \ / / | (_ | ' <\__ \__ \ fax : +49 40 899-4-5317 | |) | _|\__ \\ V / \___|_|\_\___|___/ http://www.desy.de/~utcke (to come)|___/|___|___/ |_|