GNU bug report logs - #21257
auto-mode-alist too eager for Ruby?

Previous Next

Package: emacs;

Reported by: David Kastrup <dak <at> gnu.org>

Date: Fri, 14 Aug 2015 14:55:02 UTC

Severity: normal

Done: Dmitry Gutov <dgutov <at> yandex.ru>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: David Kastrup <dak <at> gnu.org>
To: 21257 <at> debbugs.gnu.org
Subject: bug#21257: auto-mode-alist too eager for Ruby?
Date: Fri, 14 Aug 2015 15:42:06 +0200
I just got a temporary file created for a Git commit message with the
name "/tmp/tmp3djbru" and Emacs decided to throw the buffer in Ruby
mode.  Seriously?

The respective entry in auto-mode-alist appears to be

 ("\\(?:\\.rb\\|ru\\|rake\\|thor\\|jbuilder\\|rabl\\|gemspec\\|podspec\\|/\\(?:Gem\\|Rake\\|Cap\\|Thor\\|Puppet\\|Berks\\|Vagrant\\|Guard\\|Pod\\)file\\)\\'" . ruby-mode)

which appears to admit a whole lot of files just based on the ending
letters without any distinguishing symbols before them.

-- 
David Kastrup




This bug report was last modified 9 years and 191 days ago.

Previous Next


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