From: Dmitry Gutov Date: Sun, 15 Nov 2015 23:14:54 +0000 (+0200) Subject: Fix ruby-mode auto-mode-alist entry X-Git-Tag: emacs-25.0.90~777 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2edfc40a72439d0e1b8ccd5ad8d1523e0de601c0;p=emacs.git Fix ruby-mode auto-mode-alist entry * lisp/progmodes/ruby-mode.el (auto-mode-alist): Add grouping around the extensions (bug#21257). --- 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"