unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* 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

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

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).