Subject: bug#21257: closed (Re: bug#21257: auto-mode-alist too eager for Ruby?)

From: [email-masked] (GNU bug Tracking System)
Date: Sun, 15 Nov 2015 23:37:02 +0000

Your bug report

#21257: auto-mode-alist too eager for Ruby?

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
21257: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=21257
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#21257: auto-mode-alist too eager for Ruby?
From: Dmitry Gutov <[email-masked]>
To: Andreas Schwab <[email-masked]>, David Kastrup <[email-masked]>
Cc: [email-masked]
Date: Mon, 16 Nov 2015 01:36:35 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

On 08/14/2015 07:28 PM, Andreas Schwab wrote:

> It probably just lacks a pair of parens to factor out the \. match.

Fixed in emacs-25, 2edfc40.

Thanks for the report.

Subject: auto-mode-alist too eager for Ruby?
From: David Kastrup <[email-masked]>
To: [email-masked]
Date: Fri, 14 Aug 2015 15:42:06 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

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