branch: elpa/tuareg commit 57177d4b6cf67da50af0cbe2064daeb671dfa939 Author: Christophe Troestler <christophe.troest...@umons.ac.be> Commit: Christophe Troestler <christophe.troest...@umons.ac.be>
Account for pre-processed files when switching .ml ↔ .mli --- tuareg.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tuareg.el b/tuareg.el index ad73cfa..ecc4af0 100644 --- a/tuareg.el +++ b/tuareg.el @@ -241,8 +241,8 @@ much less efficient." :group 'tuareg :type 'boolean) (defcustom tuareg-other-file-alist - '(("\\.mli\\'" (".ml" ".mll" ".mly")) - ("\\.ml\\'" (".mli")) + '(("\\.\\(?:pp\\.\\)?mli\\'" (".ml" ".mll" ".mly" ".pp.ml")) + ("\\.\\(?:pp\\.\\)ml\\'" (".mli")) ("\\.mll\\'" (".mli")) ("\\.mly\\'" (".mli")) ("\\.eliomi\\'" (".eliom"))