GNU bug report logs -
#8547
23.3.50; conf-mode-maybe rule grabs config.h.in
Previous Next
Reported by: Reuben Thomas <rrt <at> sc3d.org>
Date: Mon, 25 Apr 2011 11:43:02 UTC
Severity: minor
Found in version 23.3.50
Done: Chong Yidong <cyd <at> stupidchicken.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Reuben Thomas <rrt <at> sc3d.org> writes:
> The current rule in files.el for conf-mode-maybe grabs config.h.in,
> which should instead go through the .in-stripping rule and end up in
> c-mode.
>
> From the comment for that rule, it seems that the only time it should
> allow an extra (middle) suffix is when that is .local, so changing it to
> something like
>
> ("[/.]c\\(?:on\\)?f\\(?:i?g\\)?\\(?:\\(\\.local\\)?\\.[a-zA-Z0-9_-]+\\)?\\'" . conf-mode-maybe)
>
> i.e. removing period from the character class at the end and adding an
> explicit optional .local before it, should work.
The comment actually says that config.foo should also work. I've
committed a different fix based on reordering the rules. Thanks.
This bug report was last modified 14 years and 52 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.