emacs-bug-tracker
[Top][All Lists]
Advanced

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

[Emacs-bug-tracker] bug#5119: closed (ruby-mode binds TAB)


From: GNU bug Tracking System
Subject: [Emacs-bug-tracker] bug#5119: closed (ruby-mode binds TAB)
Date: Sun, 27 Jun 2010 18:20:03 +0000

Your message dated Sun, 27 Jun 2010 14:19:24 -0400
with message-id <address@hidden>
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
address@hidden)


-- 
5119: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=5119
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: ruby-mode binds TAB Date: Fri, 4 Dec 2009 04:36:13 +0100
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)



--- End Message ---
--- Begin Message --- Subject: Re: ruby-mode binds TAB Date: Sun, 27 Jun 2010 14:19:24 -0400
> 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.


--- End Message ---

reply via email to

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