Bug#671558: tuareg-mode: auto-mode-alist regexp string end
On Sat, May 05, 2012 at 09:35:02AM +1000, Kevin Ryde wrote:
> Package: tuareg-mode
> Version: 1:2.0.4-3
> Severity: normal
> File: /etc/emacs/site-start.d/51tuareg-mode.el
> 51tuareg-mode.el sets up
> (add-to-list 'auto-mode-alist '("\\.ml\\w?" . tuareg-mode))
> but I wonder if the regexp is meant to have a \\' anchor as per the
> autoload cookie of /usr/share/emacs/site-lisp/tuareg-mode/tuareg.el
> ;;;###autoload (add-to-list 'auto-mode-alist '("\\.ml\\w?\\'" . tuareg-mode))
> The string end would ensure for example foo.ml.html is opened in html
> mode. Not that a name like that would be very likely, but it's just .ml
> as a suffix which is intended is it?
No it is not, it is also .mli, .mll, .mly. Still you are right in that the
regexp should be narrowed down. A fix is upcoming.