emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r111342: * lisp/progmodes/ruby-mode.e


From: Dmitry Gutov
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r111342: * lisp/progmodes/ruby-mode.el (auto-mode-alist): `purecopy' the
Date: Wed, 26 Dec 2012 23:52:56 +0400
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 111342
committer: Dmitry Gutov <address@hidden>
branch nick: trunk
timestamp: Wed 2012-12-26 23:52:56 +0400
message:
  * 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).
modified:
  lisp/ChangeLog
  lisp/progmodes/ruby-mode.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2012-12-26 16:22:18 +0000
+++ b/lisp/ChangeLog    2012-12-26 19:52:56 +0000
@@ -1,3 +1,10 @@
+2012-12-26  Dmitry Gutov  <address@hidden>
+
+       * 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  <address@hidden>
 
        * net/tramp-adb.el (tramp-adb-get-ls-command): New defun.  Suppress

=== modified file 'lisp/progmodes/ruby-mode.el'
--- a/lisp/progmodes/ruby-mode.el       2012-12-14 20:05:03 +0000
+++ b/lisp/progmodes/ruby-mode.el       2012-12-26 19:52:56 +0000
@@ -1682,7 +1682,9 @@
 ;;;###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"))


reply via email to

[Prev in Thread] Current Thread [Next in Thread]