From 2edfc40a72439d0e1b8ccd5ad8d1523e0de601c0 Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Mon, 16 Nov 2015 01:14:54 +0200 Subject: [PATCH] Fix ruby-mode auto-mode-alist entry * lisp/progmodes/ruby-mode.el (auto-mode-alist): Add grouping around the extensions (bug#21257). --- lisp/progmodes/ruby-mode.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el index 754785168f2..ab83b977320 100644 --- a/lisp/progmodes/ruby-mode.el +++ b/lisp/progmodes/ruby-mode.el @@ -2258,9 +2258,10 @@ See `font-lock-syntax-table'.") ;;;###autoload (add-to-list 'auto-mode-alist - (cons (purecopy (concat "\\(?:\\." + (cons (purecopy (concat "\\(?:\\.\\(?:" "rb\\|ru\\|rake\\|thor" "\\|jbuilder\\|rabl\\|gemspec\\|podspec" + "\\)" "\\|/" "\\(?:Gem\\|Rake\\|Cap\\|Thor" "\\|Puppet\\|Berks" -- 2.39.5