]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/progmodes/ruby-mode.el (auto-mode-alist): `purecopy' the
authorDmitry Gutov <dgutov@yandex.ru>
Wed, 26 Dec 2012 19:52:56 +0000 (23:52 +0400)
committerDmitry Gutov <dgutov@yandex.ru>
Wed, 26 Dec 2012 19:52:56 +0000 (23:52 +0400)
Rakefile regexp.
(auto-mode-alist): Associate .gemspec files with ruby-mode
(https://bugs.ruby-lang.org/issues/5453).

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

index 5ff36e04614ae869ce3f46fe4828125aa846d79d..4b43050ddf5effba55dbd162ef1438dab1cb81ea 100644 (file)
@@ -1,3 +1,10 @@
+2012-12-26  Dmitry Gutov  <dgutov@yandex.ru>
+
+       * progmodes/ruby-mode.el (auto-mode-alist): `purecopy' the
+       Rakefile regexp.
+       (auto-mode-alist): Associate .gemspec files with ruby-mode
+       (https://bugs.ruby-lang.org/issues/5453).
+
 2012-12-26  Jürgen Hötzel  <juergen@archlinux.org>
 
        * net/tramp-adb.el (tramp-adb-get-ls-command): New defun.  Suppress
index bc53c1f955634336664a3e8faa418b476f8162ab..b223aece416d10c35b4ebb454d0aff59dd779dc1 100644 (file)
@@ -1682,7 +1682,9 @@ The variable `ruby-indent-level' controls the amount of indentation.
 ;;;###autoload
 (add-to-list 'auto-mode-alist (cons (purecopy "\\.rb\\'") 'ruby-mode))
 ;;;###autoload
-(add-to-list 'auto-mode-alist '("Rakefile\\'" . ruby-mode))
+(add-to-list 'auto-mode-alist (cons (purecopy "Rakefile\\'") 'ruby-mode))
+;;;###autoload
+(add-to-list 'auto-mode-alist (cons (purecopy "\\.gemspec\\'") 'ruby-mode))
 
 ;;;###autoload
 (dolist (name (list "ruby" "rbx" "jruby" "ruby1.9" "ruby1.8"))