bug#2820: 23.0.91; ruby-mode binds keys it probably shouldn't

Miles Bader <[email protected]>
Newsgroups gmane.emacs.bugs,gmane.emacs.pretest.bugs
Message-ID <[email protected]>
ruby-mode-map contains a bunch of rebindings of standard key sequences,
many of which would better be done using other mechanisms.

E.g.:

(define-key map (kbd "M-C-a") 'ruby-beginning-of-defun)
should use `beginning-of-defun-function' instead.

(define-key map (kbd "TAB")   'ruby-indent-line)
should use `indent-line-function' instead.

etc, etc.

-Miles


In GNU Emacs 23.0.91.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.16.0)
 of 2009-03-30 on dhlpc061
Windowing system distributor `The X.Org Foundation', version 11.0.10599902
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: ja_JP.UTF-8
  value of $XMODIFIERS: @im=SCIM
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: Emacs-Lisp

Minor modes in effect:
  shell-dirtrack-mode: t
  show-paren-mode: t
  recentf-mode: t
  rcirc-track-minor-mode: t
  minibuffer-electric-default-mode: t
  display-time-mode: t
  desktop-save-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  temp-buffer-resize-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
! <backspace> <backspace> r e b i n d i n g SPC i s 
SPC g e n e r a l l y SPC a SPC b a d SPC i d e a SPC 
u n l e s s SPC y o u SPC h a v <escape> h <escape> 
h <escape> h i f SPC t h e r e ' s SPC a SPC b e t 
t e r SPC i d e a <return> <tab> <tab> i t ' s SPC 
c r u f t y <return> <return> <tab> <tab> t y p i c 
a l SPC o f SPC m o d e s SPC <escape> h SPC M-h M-h 
g r a n C-a C-k <tab> b e c a u s e SPC o n SPC X , 
SPC t a b SPC g e n d s SPC t o <escape> h <escape> 
h t e n d s SPC t o SPC g e t SPC t r r a <backspace> 
<backspace> a n s l a t e d C-a M-f M-f M-b i SPC g 
u e s s SPC C-e SPC t h o <backspace> r o u g SPC N 
SPC l a y e r s SPC o f SPC r e m p a p i g n s <escape> 
h r e p <backspace> a <backspace> m a p p i n s <return> 
w h e r e a s C-a C-k C-x b <return> C-f C-f C-f C-f 
C-f C-f C-f C-f C-M-b C-s C-w C-w C-w C-s C-s C-s C-s 
C-a C-x C-g C-x s C-x k <return> <escape> x r e <backspace> 
<backspace> r e p o r t - e m SPC <return>

Recent messages:
Auto-saving...
x*DING* 
Quit
(New file)
TAB (translated from <tab>) runs the command ruby-indent-line
Type C-x 1 to delete the help window, C-M-v to scroll help.
mouse-2, RET: find function's definition
x*DING* 
Mark saved where search started
x*DING* 

-- 
Non-combatant, n. A dead Quaker.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.