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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 21257 in the body.
You can then email your comments to 21257 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#21257; Package emacs. (Fri, 14 Aug 2015 14:55:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to David Kastrup <dak <at> gnu.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 14 Aug 2015 14:55:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

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




Added indication that bug 21257 blocks19759 Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 14 Aug 2015 15:35:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21257; Package emacs. (Fri, 14 Aug 2015 16:29:01 GMT) Full text and rfc822 format available.

Message #10 received at 21257 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: David Kastrup <dak <at> gnu.org>
Cc: 21257 <at> debbugs.gnu.org
Subject: Re: bug#21257: auto-mode-alist too eager for Ruby?
Date: Fri, 14 Aug 2015 18:28:36 +0200
David Kastrup <dak <at> gnu.org> writes:

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

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

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




Reply sent to Dmitry Gutov <dgutov <at> yandex.ru>:
You have taken responsibility. (Sun, 15 Nov 2015 23:37:01 GMT) Full text and rfc822 format available.

Notification sent to David Kastrup <dak <at> gnu.org>:
bug acknowledged by developer. (Sun, 15 Nov 2015 23:37:02 GMT) Full text and rfc822 format available.

Message #15 received at 21257-done <at> debbugs.gnu.org (full text, mbox):

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.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 14 Dec 2015 12:24:03 GMT) Full text and rfc822 format available.

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.