changeset 101295:b7a4fb563960

Autoload other interpreter names.
author Chong Yidong <cyd@stupidchicken.com>
date Mon, 19 Jan 2009 16:58:34 +0000
parents f336a450a6e4
children 0df0888d425b
files lisp/progmodes/ruby-mode.el
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/ruby-mode.el	Mon Jan 19 16:58:13 2009 +0000
+++ b/lisp/progmodes/ruby-mode.el	Mon Jan 19 16:58:34 2009 +0000
@@ -1422,11 +1422,8 @@
 (add-to-list 'auto-mode-alist '("\\.rb\\'" . ruby-mode))
 
 ;;;###autoload
-(add-to-list 'interpreter-mode-alist '("ruby" . ruby-mode))
-(add-to-list 'interpreter-mode-alist '("rbx" . ruby-mode))
-(add-to-list 'interpreter-mode-alist '("jruby" . ruby-mode))
-(add-to-list 'interpreter-mode-alist '("ruby1.9" . ruby-mode))
-(add-to-list 'interpreter-mode-alist '("ruby1.8" . ruby-mode))
+(dolist (name (list "ruby" "rbx" "jruby" "ruby1.9" "ruby1.8"))
+  (add-to-list 'interpreter-mode-alist (cons name 'ruby-mode)))
 
 (provide 'ruby-mode)