emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: compile.el does not find errors in numeric filenames


From: Stefan Monnier
Subject: Re: compile.el does not find errors in numeric filenames
Date: Sun, 06 Feb 2005 10:55:31 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux)

> diff -Naur old/compile.el new/compile.el
> --- old/compile.el      2005-02-04 11:18:41.148180000 +0530
> +++ new/compile.el      2005-02-04 11:18:13.099444056 +0530
> @@ -214,7 +214,7 @@

>     (gnu
>      "^\\(?:[[:alpha:]][-[:alnum:].]+: ?\\)?\
> -\\([/.]*[a-zA-Z]:?[^ \t\n:]*\\|{standard input}\\): ?\
> +\\([/.]*[[:alnum:]]:?[^ \t\n:]*\\|{standard input}\\): ?\
> \\([0-9]+\\)\\([.:]?\\)\\([0-9]+\\)?\
> \\(?:-\\(?:\\([0-9]+\\)\\3\\)?\\.?\\([0-9]+\\)?\\)?:\
> \\(?: *\\(\\(?:Future\\|Runtime\\)?[Ww]arning\\|W:\\)\\|\

Since the [a-zA-Z]:? is really mean to allow a ":" at the precise spot where
it tends to appear (after the drive letter in W32 paths), it might be better
to use \([a-zA-Z]:\)? so we don't allow drive letters to be digits or
accented chars.  But in the grand scheme of things, I think either way will
be fine.



        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]