# HG changeset patch # User Chong Yidong # Date 1277662729 14400 # Node ID c1e50e6f89af35da3d7f0a8a1481c8d0549764b4 # Parent 5c9de51f68b5a3da4ad045b73b474c562258de32 * progmodes/ruby-mode.el (ruby-mode-map): Don't bind TAB. (ruby-mode): Bind indent-line-function (Bug#5119). diff -r 5c9de51f68b5 -r c1e50e6f89af lisp/ChangeLog --- a/lisp/ChangeLog Sun Jun 27 14:11:16 2010 -0400 +++ b/lisp/ChangeLog Sun Jun 27 14:18:49 2010 -0400 @@ -1,3 +1,8 @@ +2010-01-16 Lennart Borgman + + * progmodes/ruby-mode.el (ruby-mode-map): Don't bind TAB. + (ruby-mode): Bind indent-line-function (Bug#5119). + 2010-06-27 Chong Yidong * startup.el (command-line): Recognize "0" X resource value. diff -r 5c9de51f68b5 -r c1e50e6f89af lisp/progmodes/ruby-mode.el --- a/lisp/progmodes/ruby-mode.el Sun Jun 27 14:11:16 2010 -0400 +++ b/lisp/progmodes/ruby-mode.el Sun Jun 27 14:18:49 2010 -0400 @@ -166,7 +166,6 @@ (define-key map (kbd "M-C-n") 'ruby-end-of-block) (define-key map (kbd "M-C-h") 'ruby-mark-defun) (define-key map (kbd "M-C-q") 'ruby-indent-exp) - (define-key map (kbd "TAB") 'ruby-indent-line) (define-key map (kbd "C-M-h") 'backward-kill-word) (define-key map (kbd "C-j") 'reindent-then-newline-and-indent) (define-key map (kbd "C-m") 'newline) @@ -1390,6 +1389,8 @@ (setq major-mode 'ruby-mode) (ruby-mode-variables) + (set (make-local-variable 'indent-line-function) + 'ruby-indent-line) (set (make-local-variable 'imenu-create-index-function) 'ruby-imenu-create-index) (set (make-local-variable 'add-log-current-defun-function)