Subject: bug#10279: 23.3.1: ruby-mode-hook not defined or autoloaded

From: Glenn Morris <[email-masked]>
Date: Fri, 16 Dec 2011 15:38:37 -0500

close 10279
tags 10279 notabug
stop

Jari Aalto wrote:

> M-x ruby-mode seems to run ruby-mode-hook, but this is defined anywhere or
> not autoaded.

This is of no consequence. In Emacs 24.1, you will see:

C-h v ruby-mode-hook:

ruby-mode-hook is void as a variable.

  This variable is potentially risky when used as a file local variable.

Documentation:
Hook run when entering Ruby mode.
No problems result if this variable is not bound.
`add-hook' automatically binds it.  (This is true for all hook variables.)