--- 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 ---