From 78269b95cfe64d3ab5fabf1c2a63fa6abc7e0978 Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Wed, 26 Dec 2012 23:52:56 +0400 Subject: [PATCH] * lisp/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). --- lisp/ChangeLog | 7 +++++++ lisp/progmodes/ruby-mode.el | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 5ff36e04614..4b43050ddf5 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,10 @@ +2012-12-26 Dmitry Gutov + + * 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 * net/tramp-adb.el (tramp-adb-get-ls-command): New defun. Suppress diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el index bc53c1f9556..b223aece416 100644 --- a/lisp/progmodes/ruby-mode.el +++ b/lisp/progmodes/ruby-mode.el @@ -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")) -- 2.39.5