From: Chiyuan Zhang Date: 2008-03-18T21:50:26+09:00 Subject: Re: Patch for ruby-mode.el: Use run-mode-hooks instead of run-hooks Yeah! In fact, I encounter this problem when writing the yasnippet (http://code.google.com/p/yasnippet/) extension for Emacs. And I'm looking forward next release of Ruby with this fixed. Especially looking forward for a stable Ruby 1.9. :P 2008/3/17, Nobuyoshi Nakada : > Hi, > > At Sun, 16 Mar 2008 11:40:59 +0900, > Chiyuan Zhang wrote in [ruby-core:15915]: > > > Currently ruby-mode.el use run-hooks instead of run-mode-hooks. > > run-hooks doesn't call after-major-mode-change-hook. So my > > generic hook for all modes won't run in ruby-mode. Here's > > the patch. Just one line changed. Hope this will be fixed > > in the next version. > > > Thank you, Emacs document also says: > > Major modes should not use this function directly to run their mode > hook; they should use `run-mode-hooks' instead. > > And it seems existing since 5 years ago. > > > -- > Nobu Nakada > >