* bug#21257: auto-mode-alist too eager for Ruby?
@ 2015-08-14 13:42 David Kastrup
2015-08-14 16:28 ` Andreas Schwab
0 siblings, 1 reply; 3+ messages in thread
From: David Kastrup @ 2015-08-14 13:42 UTC (permalink / raw)
To: 21257
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#21257: auto-mode-alist too eager for Ruby?
2015-08-14 13:42 bug#21257: auto-mode-alist too eager for Ruby? David Kastrup
@ 2015-08-14 16:28 ` Andreas Schwab
2015-11-15 23:36 ` Dmitry Gutov
0 siblings, 1 reply; 3+ messages in thread
From: Andreas Schwab @ 2015-08-14 16:28 UTC (permalink / raw)
To: David Kastrup; +Cc: 21257
David Kastrup <dak@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@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#21257: auto-mode-alist too eager for Ruby?
2015-08-14 16:28 ` Andreas Schwab
@ 2015-11-15 23:36 ` Dmitry Gutov
0 siblings, 0 replies; 3+ messages in thread
From: Dmitry Gutov @ 2015-11-15 23:36 UTC (permalink / raw)
To: Andreas Schwab, David Kastrup; +Cc: 21257-done
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-11-15 23:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-14 13:42 bug#21257: auto-mode-alist too eager for Ruby? David Kastrup
2015-08-14 16:28 ` Andreas Schwab
2015-11-15 23:36 ` Dmitry Gutov
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.