From: Nobuyoshi Nakada Date: 2008-03-17T17:17:27+09:00 Subject: Re: Patch for ruby-mode.el: Use run-mode-hooks instead of run-hooks 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