Package: emacs23-common
Version: 23.1+1-5
Severity: normal
Tags: patch
When using flymake with .tex filenames that include a number just before the
.tex extension, flymake fails to find the master file giving the message
"Flymake:!" in the status bar and rendering flymake useless.
For example:
myfile1.tex will fail where
myfile1a.tex will succeeed.
I have not tested this with other modes or file extensions, but looking at
http://cvs.savannah.gnu.org/viewvc/emacs/emacs/lisp/progmodes/flymake.el?view=markup
there is a regex in (defcustom flymake-allowed-file-name-masks...) that appears
to apply:
("[0-9]+\\.tex\\'" flymake-master-tex-init flymake-master-cleanup)
when I remove this line from flymake.el, the problem appears solved. I don't
know what other ramifications this may have, but it seems to work for me...
trivial patch attached, but note this is against rev 1.63 from savannah. not
sure if/how it applies to debian source.
A
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages emacs23-common depends on:
ii dpkg 1.15.7.2 Debian package management system
ii emacsen-common 1.4.19 Common facilities for all emacsen
emacs23-common recommends no packages.
Versions of packages emacs23-common suggests:
pn emacs23-common-non-dfsg <none> (no description available)
pn emacs23-el <none> (no description available)
-- no debconf information
--- flymake.el 2010-10-03 10:50:42.000000000 -0700
+++ flymake_org.el 2010-10-03 10:52:45.000000000 -0700
@@ -278,7 +278,7 @@
("\\.php[345]?\\'" flymake-php-init)
("\\.h\\'" flymake-master-make-header-init flymake-master-cleanup)
("\\.java\\'" flymake-simple-make-java-init flymake-simple-java-cleanup)
-;; ("[0-9]+\\.tex\\'" flymake-master-tex-init flymake-master-cleanup)
+ ("[0-9]+\\.tex\\'" flymake-master-tex-init flymake-master-cleanup)
("\\.tex\\'" flymake-simple-tex-init)
("\\.idl\\'" flymake-simple-make-init)
;; ("\\.cpp\\'" 1)