GNU bug report logs -
#5119
ruby-mode binds TAB
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your message dated Sun, 27 Jun 2010 14:19:24 -0400
with message-id <8739w8tk2b.fsf <at> stupidchicken.com>
and subject line Re: ruby-mode binds TAB
has caused the GNU bug report #5119,
regarding ruby-mode binds TAB
to be marked as done.
(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)
--
5119: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=5119
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
It binds TAB to ruby-indent-line. That is against the rules. ;-)
It should instead leave this unbound and do
(set (make-local-variable 'indent-line-function)
'ruby-indent-line)
Index: ruby-mode.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/progmodes/ruby-mode.el,v
retrieving revision 1.11
diff -c -r1.11 ruby-mode.el
*** ruby-mode.el 26 Oct 2009 06:43:41 -0000 1.11
--- ruby-mode.el 4 Dec 2009 03:35:16 -0000
***************
*** 166,172 ****
(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)
--- 166,171 ----
***************
*** 1390,1395 ****
--- 1389,1396 ----
(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)
[Message part 3 (message/rfc822, inline)]
> It binds TAB to ruby-indent-line. That is against the rules. ;-)
>
> It should instead leave this unbound and do
>
> (set (make-local-variable 'indent-line-function)
> 'ruby-indent-line)
Checked in, thanks.
This bug report was last modified 15 years and 13 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.