]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/progmodes/ruby-mode.el (auto-mode-alist): Do not use
authorDmitry Gutov <dgutov@yandex.ru>
Sat, 22 Jun 2013 00:11:24 +0000 (04:11 +0400)
committerDmitry Gutov <dgutov@yandex.ru>
Sat, 22 Jun 2013 00:11:24 +0000 (04:11 +0400)
`regexp-opt', it breaks the build during dumping.

lisp/ChangeLog
lisp/progmodes/ruby-mode.el

index 966b70ea0bd98c4b08227e6dce8cfff3d9ed6fb9..62e15d5c9482fd538e480cdab76616c775556fac 100644 (file)
@@ -1,3 +1,8 @@
+2013-06-22  Dmitry Gutov  <dgutov@yandex.ru>
+
+       * progmodes/ruby-mode.el (auto-mode-alist): Do not use
+       `regexp-opt', it breaks the build during dumping.
+
 2013-06-21  Dmitry Gutov  <dgutov@yandex.ru>
 
        * progmodes/ruby-mode.el (ruby-font-lock-keywords): Highlight
index f84f698d7464fba9686dbab15337e34e925005ba..0755afc285f818ed630b832179434559ae4f40e0 100644 (file)
@@ -1869,12 +1869,11 @@ The variable `ruby-indent-level' controls the amount of indentation.
 ;;;###autoload
 (add-to-list 'auto-mode-alist
              (cons (purecopy (concat "\\(?:\\."
-                                     (regexp-opt '("rb" "ru" "rake" "thor"
-                                                   "jbuilder" "gemspec"))
+                                     "rb\\|ru\\|rake\\|thor"
+                                     "\\|jbuilder\\|gemspec"
                                      "\\|/"
-                                     (regexp-opt '("Gemfile" "Rakefile"
-                                                   "Capfile" "Thorfile"
-                                                   "Vagrantfile" "Guardfile"))
+                                     "\\(?:Gem\\|Rake\\|Cap\\|Thor"
+                                     "Vagrant\\|Guard\\)file"
                                      "\\)\\'")) 'ruby-mode))
 
 ;;;###autoload