[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: buff-menu.el no longer runs buffer-menu-mode-hook
From: |
Francis Litterio |
Subject: |
Re: buff-menu.el no longer runs buffer-menu-mode-hook |
Date: |
Tue, 02 Sep 2008 22:55:29 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (windows-nt) |
Lennart Borgman (gmail) wrote:
> Francis Litterio wrote:
>> In CVS Emacs, function list-buffers no longer runs the hook
>> buffer-menu-mode-hook after creating the Buffer-menu-mode buffer. This
>> used to happen.
>>
>> In fact, there is no longer any reference to variable
>> buffer-menu-mode-hook in lisp/buff-menu.el. I don't know if
>> define-derived-mode is supposed to define it and arrange for it to be
>> run, but it is not being run.
>
> It is supposed to be run and defined by define-derived-mode but it looks
> like there is a mismatch in the name (buffer-menu-mode-hook instead of
> Buffer-menu-mode-hook).
Thanks for catching that obvious solution. It works if I pass the
symbol 'Buffer-menu-mode-hook (with a capital 'B') to add-hook.
Still, this is an incompatible change that breaks existing Elisp code.
--
Fran