GNU bug report logs - #8547
23.3.50; conf-mode-maybe rule grabs config.h.in

Previous Next

Package: emacs;

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


Message #8 received at 8547 <at> debbugs.gnu.org (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Reuben Thomas <rrt <at> sc3d.org>
Cc: 8547 <at> debbugs.gnu.org
Subject: Re: bug#8547: 23.3.50; conf-mode-maybe rule grabs config.h.in
Date: Sat, 28 May 2011 15:27:52 -0400
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 50 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.