Subject: improve flymake's handling of master files

From: Glenn Morris <[email-masked]>
Date: Sun, 12 Dec 2010 21:19:10 -0500

Package: emacs
Severity: minor

http://lists.gnu.org/archive/html/emacs-devel/2010-11/msg00962.html

The [0-9]+.tex entry in flymake-allowed-file-name-masks prevents one
from flymaking a standalone tex file that matches that pattern.
A couple of ways in which flymake might be improved:

i) If the first N chars of a file match a given pattern (eg
\begin{document} for tex), assume it is a master file.

ii) Allow a buffer-local variable, flymake-master-file, that can be
either t (this file is a master); or a string giving the name of the
master file. Cf the similar AUCTeX variable, from which it could
inherit in tex files.