unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Lennart Borgman <lennart.borgman@gmail.com>
To: Sven Utcke <utcke+news@informatik.uni-hamburg.de>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Competing RegExp in auto-mode-alist (was: winmgr and howm)
Date: Wed, 14 Jan 2009 21:20:25 +0100	[thread overview]
Message-ID: <e01d8a50901141220v3e9dd90fi46aded6c3ff3a9db@mail.gmail.com> (raw)
In-Reply-To: <o2f7i4ynsmu.fsf@hasgksssven.desy.de>

On Wed, Jan 14, 2009 at 10:28 AM, Sven Utcke
<utcke+news@informatik.uni-hamburg.de> wrote:
> Hi,
>
> I realised that my original subject was somewhat misleading, so I
> rephrased it.  The question, however, remains:
>
> I use howm-mode <http://howm.sourceforge.jp/> to note down random
> snippets of information.  By default, those files are named
> <year>-<month>-<day>-<number>.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.




      reply	other threads:[~2009-01-14 20:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-13 11:30 winmgr and howm Sven Utcke
2009-01-14  9:28 ` Competing RegExp in auto-mode-alist (was: winmgr and howm) Sven Utcke
2009-01-14 20:20   ` Lennart Borgman [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e01d8a50901141220v3e9dd90fi46aded6c3ff3a9db@mail.gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=utcke+news@informatik.uni-hamburg.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).