Author: Kevin Ryde <user42@zip.com.au>
Description: narrow down auto-alist to match only at the end of a filename
Debian-bug: #671558

Index: tuareg-mode/append-tuareg.el
===================================================================
--- tuareg-mode.orig/append-tuareg.el	2012-05-06 14:55:03.000000000 +0200
+++ tuareg-mode/append-tuareg.el	2012-05-06 14:56:37.000000000 +0200
@@ -1,7 +1,7 @@
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ;; append-tuareg.el - Tuareg quick installation: Append this file to .emacs.
 
-(add-to-list 'auto-mode-alist '("\\.ml[iylp]?" . tuareg-mode))
+(add-to-list 'auto-mode-alist '("\\.ml[iylp]?\\'" . tuareg-mode))
 (autoload 'tuareg-mode "tuareg" "Major mode for editing Caml code" t)
 (autoload 'camldebug "camldebug-tuareg" "Run the Caml debugger" t)
 (dolist (ext '(".cmo" ".cmx" ".cma" ".cmxa" ".cmi"))
