GNU bug report logs - #5119
ruby-mode binds TAB

Previous Next

Package: emacs;

Reported by: Lennart Borgman <lennart.borgman <at> gmail.com>

Date: Fri, 4 Dec 2009 03:45:03 UTC

Severity: normal

Tags: patch

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 5119 in the body.
You can then email your comments to 5119 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#5119; Package emacs. (Fri, 04 Dec 2009 03:45:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Lennart Borgman <lennart.borgman <at> gmail.com>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Fri, 04 Dec 2009 03:45:04 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Lennart Borgman <lennart.borgman <at> gmail.com>
To: Emacs Bugs <bug-gnu-emacs <at> gnu.org>
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)




Merged 2820 5119. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> emacsbugs.donarmstrong.com. (Fri, 04 Dec 2009 04:10:05 GMT) Full text and rfc822 format available.

Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#5119; Package emacs. (Mon, 07 Dec 2009 18:40:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stefan Monnier <monnier <at> IRO.UMontreal.CA>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Mon, 07 Dec 2009 18:40:05 GMT) Full text and rfc822 format available.

Message #12 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: Lennart Borgman <lennart.borgman <at> gmail.com>
Cc: 5119 <at> debbugs.gnu.org, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
Subject: Re: bug#5119: ruby-mode binds TAB
Date: Mon, 07 Dec 2009 13:32:58 -0500
> 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)

Yes, please,


        Stefan




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#5119; Package emacs. (Mon, 07 Dec 2009 18:40:07 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stefan Monnier <monnier <at> IRO.UMontreal.CA>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Mon, 07 Dec 2009 18:40:07 GMT) Full text and rfc822 format available.

Added tag(s) patch. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 20 Jan 2010 01:41:02 GMT) Full text and rfc822 format available.

Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5119; Package emacs. (Sun, 27 Jun 2010 12:40:03 GMT) Full text and rfc822 format available.

Message #22 received at 5119 <at> debbugs.gnu.org (full text, mbox):

From: Deniz Dogan <deniz.a.m.dogan <at> gmail.com>
To: 5119 <at> debbugs.gnu.org
Date: Sun, 27 Jun 2010 14:38:25 +0200
This bug was merged with another bug which was originally submitted in
March 30 2009 and no one seems to have any objections.

Could anyone apply the patch?

-- 
Deniz Dogan




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5119; Package emacs. (Sun, 27 Jun 2010 13:57:01 GMT) Full text and rfc822 format available.

Message #25 received at 5119 <at> debbugs.gnu.org (full text, mbox):

From: "Drew Adams" <drew.adams <at> oracle.com>
To: "'Deniz Dogan'" <deniz.a.m.dogan <at> gmail.com>, <5119 <at> debbugs.gnu.org>
Subject: RE: bug#5119: 
Date: Sun, 27 Jun 2010 06:56:32 -0700
> This bug was merged with another bug which was originally submitted in
> March 30 2009 and no one seems to have any objections.
> 
> Could anyone apply the patch?

Please mention the bug it was merged with in your mail, so someone who might be
interested need not go to the bug tracker to look up this info. Thx.





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5119; Package emacs. (Sun, 27 Jun 2010 14:08:01 GMT) Full text and rfc822 format available.

Message #28 received at 5119 <at> debbugs.gnu.org (full text, mbox):

From: Deniz Dogan <deniz.a.m.dogan <at> gmail.com>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 5119 <at> debbugs.gnu.org
Subject: Re: bug#5119:
Date: Sun, 27 Jun 2010 16:06:53 +0200
2010/6/27 Drew Adams <drew.adams <at> oracle.com>:
>> This bug was merged with another bug which was originally submitted in
>> March 30 2009 and no one seems to have any objections.
>>
>> Could anyone apply the patch?
>
> Please mention the bug it was merged with in your mail, so someone who might be
> interested need not go to the bug tracker to look up this info. Thx.
>
>

It was merged with #2820 named "23.0.91; ruby-mode binds keys it
probably shouldn't".

-- 
Deniz Dogan




Reply sent to Chong Yidong <cyd <at> stupidchicken.com>:
You have taken responsibility. (Sun, 27 Jun 2010 18:20:03 GMT) Full text and rfc822 format available.

Notification sent to Lennart Borgman <lennart.borgman <at> gmail.com>:
bug acknowledged by developer. (Sun, 27 Jun 2010 18:20:03 GMT) Full text and rfc822 format available.

Message #33 received at 5119-done <at> debbugs.gnu.org (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Lennart Borgman <lennart.borgman <at> gmail.com>
Cc: 5119-done <at> debbugs.gnu.org
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.




Reply sent to Chong Yidong <cyd <at> stupidchicken.com>:
You have taken responsibility. (Sun, 27 Jun 2010 18:20:03 GMT) Full text and rfc822 format available.

Notification sent to Miles Bader <miles <at> gnu.org>:
bug acknowledged by developer. (Sun, 27 Jun 2010 18:20:03 GMT) Full text and rfc822 format available.

Disconnected #2820 from all other report(s). Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 01 Jul 2010 22:52:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 30 Jul 2010 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 15 years and 5 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.