emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#21257: closed (auto-mode-alist too eager for Ruby?


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#21257: closed (auto-mode-alist too eager for Ruby?)
Date: Sun, 15 Nov 2015 23:37:01 +0000

Your message dated Mon, 16 Nov 2015 01:36:35 +0200
with message-id <address@hidden>
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
address@hidden)


-- 
21257: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=21257
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- 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



--- End Message ---
--- Begin Message --- Subject: Re: bug#21257: auto-mode-alist too eager for Ruby? Date: Mon, 16 Nov 2015 01:36:35 +0200 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:42.0) Gecko/20100101 Thunderbird/42.0
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.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]