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: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Dmitry Gutov <dgutov <at> yandex.ru>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#21257: closed (auto-mode-alist too eager for Ruby?)
Date: Sun, 15 Nov 2015 23:37:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Mon, 16 Nov 2015 01:36:35 +0200
with message-id <56491703.3020602 <at> yandex.ru>
and subject line Re: bug#21257: auto-mode-alist too eager for Ruby?
has caused the debbugs.gnu.org bug report #21257,
regarding auto-mode-alist too eager for Ruby?
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
21257: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=21257
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: David Kastrup <dak <at> gnu.org>
To: bug-emacs <at> gnu.org
Subject: 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


[Message part 3 (message/rfc822, inline)]
From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Andreas Schwab <schwab <at> linux-m68k.org>, David Kastrup <dak <at> gnu.org>
Cc: 21257-done <at> debbugs.gnu.org
Subject: Re: bug#21257: auto-mode-alist too eager for Ruby?
Date: Mon, 16 Nov 2015 01:36:35 +0200
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.


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.