From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.help Subject: Re: Competing RegExp in auto-mode-alist (was: winmgr and howm) Date: Wed, 14 Jan 2009 21:20:25 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1231964465 16065 80.91.229.12 (14 Jan 2009 20:21:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 Jan 2009 20:21:05 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Sven Utcke Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 14 21:22:16 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 1LNCFh-0005x5-Bk for geh-help-gnu-emacs@m.gmane.org; Wed, 14 Jan 2009 21:22:14 +0100 Original-Received: from localhost ([127.0.0.1]:39016 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LNCEQ-0004KO-Dy for geh-help-gnu-emacs@m.gmane.org; Wed, 14 Jan 2009 15:20:54 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LNCE0-0004HD-3d for help-gnu-emacs@gnu.org; Wed, 14 Jan 2009 15:20:28 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LNCDz-0004FR-CQ for help-gnu-emacs@gnu.org; Wed, 14 Jan 2009 15:20:27 -0500 Original-Received: from [199.232.76.173] (port=56304 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LNCDy-0004Eh-NU for help-gnu-emacs@gnu.org; Wed, 14 Jan 2009 15:20:26 -0500 Original-Received: from fg-out-1718.google.com ([72.14.220.157]:45285) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LNCDy-0004JN-6D for help-gnu-emacs@gnu.org; Wed, 14 Jan 2009 15:20:26 -0500 Original-Received: by fg-out-1718.google.com with SMTP id l26so389039fgb.30 for ; Wed, 14 Jan 2009 12:20:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=rNjn3kCWTz5Om6yhvNZjtUEFqQkIoMnBwDv51y741Dg=; b=HXG7rBtjote8kTwSLqvvN3Sk/rlRpxbUcZ5GHKEBkuz1peWYVSGfe5sbRFz9tCwIxJ h1/QenQz3fq0vOxDVZ/GI1+erMg2Y2942seyrL1D28c3m6jd3OeJxD74xQ7bzXPMfDRO pEtwNIUD9TqvmR0Fc2zv/+Yb9Ab05NwsBblPw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=t015ez7GUbYCtQU1DrNsXCm4uBtwcq5SsnU1lMhCtTpjlSAAT/FPqXIwd3WwO2nzSK 0rB/iC15KL4Gyjy13i4yF67lWqs4noY10GV8JIdupONPeQFfhh/+buL6r21dZ0nVgeDP J6+LdTteUvmaRMQ482goQfpUF1+eoHmUCW5Vs= Original-Received: by 10.86.4.2 with SMTP id 2mr920094fgd.43.1231964425113; Wed, 14 Jan 2009 12:20:25 -0800 (PST) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:61334 Archived-At: On Wed, Jan 14, 2009 at 10:28 AM, Sven Utcke wrote: > 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? In nXhtml there is a general package majmodpri.el for this kind of problems. It allows you to have auto-mode-alist and relatives sorted to your taste.