GNU bug report logs - #13815
Wrong mode for files with awkward shebang lines

Previous Next

Package: emacs;

Reported by: Andrew Pennebaker <andrew.pennebaker <at> gmail.com>

Date: Tue, 26 Feb 2013 01:26:01 UTC

Severity: wishlist

Tags: wontfix

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Glenn Morris <rgm <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 13815 <at> debbugs.gnu.org
Subject: bug#13815: Wrong mode for files with awkward shebang lines
Date: Mon, 30 Aug 2021 11:11:11 -0400
Lars Ingebrigtsen wrote:

> I thought it was because Debian changed the names of all their conf
> files (many of which are shell scripts) to .conf?

I'll repeat my earlier comments in the hope that this time someone will
read them.

I have 468 .conf files in /etc on my Debian system.
A single one (it used to be zero years ago) has a #! line.
It is nftables.conf, which contains "#!/usr/sbin/nft -f".
Emacs has no mode for "nft".

Therefore this provides zero motivation for interpreter-mode-alist to
take precedence over auto-mode-alist.




This bug report was last modified 3 years and 268 days ago.

Previous Next


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