all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#5119: ruby-mode binds TAB
@ 2009-12-04  3:36 Lennart Borgman
  2009-12-07 18:32 ` Stefan Monnier
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Lennart Borgman @ 2009-12-04  3:36 UTC (permalink / raw
  To: Emacs Bugs

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)






^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#5119: ruby-mode binds TAB
  2009-12-04  3:36 bug#5119: ruby-mode binds TAB Lennart Borgman
@ 2009-12-07 18:32 ` Stefan Monnier
  2010-06-27 12:38 ` bug#5119: Deniz Dogan
  2010-06-27 18:19 ` bug#5119: ruby-mode binds TAB Chong Yidong
  2 siblings, 0 replies; 6+ messages in thread
From: Stefan Monnier @ 2009-12-07 18:32 UTC (permalink / raw
  To: Lennart Borgman; +Cc: Emacs Bugs, 5119

> 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





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#5119:
  2009-12-04  3:36 bug#5119: ruby-mode binds TAB Lennart Borgman
  2009-12-07 18:32 ` Stefan Monnier
@ 2010-06-27 12:38 ` Deniz Dogan
  2010-06-27 13:56   ` bug#5119: Drew Adams
  2010-06-27 18:19 ` bug#5119: ruby-mode binds TAB Chong Yidong
  2 siblings, 1 reply; 6+ messages in thread
From: Deniz Dogan @ 2010-06-27 12:38 UTC (permalink / raw
  To: 5119

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





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#5119:
  2010-06-27 12:38 ` bug#5119: Deniz Dogan
@ 2010-06-27 13:56   ` Drew Adams
  2010-06-27 14:06     ` bug#5119: Deniz Dogan
  0 siblings, 1 reply; 6+ messages in thread
From: Drew Adams @ 2010-06-27 13:56 UTC (permalink / raw
  To: 'Deniz Dogan', 5119

> 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.






^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#5119:
  2010-06-27 13:56   ` bug#5119: Drew Adams
@ 2010-06-27 14:06     ` Deniz Dogan
  0 siblings, 0 replies; 6+ messages in thread
From: Deniz Dogan @ 2010-06-27 14:06 UTC (permalink / raw
  To: Drew Adams; +Cc: 5119

2010/6/27 Drew Adams <drew.adams@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





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#5119: ruby-mode binds TAB
  2009-12-04  3:36 bug#5119: ruby-mode binds TAB Lennart Borgman
  2009-12-07 18:32 ` Stefan Monnier
  2010-06-27 12:38 ` bug#5119: Deniz Dogan
@ 2010-06-27 18:19 ` Chong Yidong
  2 siblings, 0 replies; 6+ messages in thread
From: Chong Yidong @ 2010-06-27 18:19 UTC (permalink / raw
  To: Lennart Borgman; +Cc: 5119-done

> 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.





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-06-27 18:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-04  3:36 bug#5119: ruby-mode binds TAB Lennart Borgman
2009-12-07 18:32 ` Stefan Monnier
2010-06-27 12:38 ` bug#5119: Deniz Dogan
2010-06-27 13:56   ` bug#5119: Drew Adams
2010-06-27 14:06     ` bug#5119: Deniz Dogan
2010-06-27 18:19 ` bug#5119: ruby-mode binds TAB Chong Yidong

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.