At 09:35 AM 10/10/00 +0200, Gian Uberto Lauri wrote:
>>>>>> "PK" == Paul Kinnucan <[EMAIL PROTECTED]> writes:
>
>PK> (if  html-helper-mode-uses-JDE
>PK>   (add-hook 'jde-mode-hook 'html-script-release-setup))
>
>I noticed that  there are situations where add-hook  fails because the
>hook variable is void. That's why I use the over-defensive test.

I had not thought of that. So I would suggest

(if (and html-helper-mode-uses-JDE (fboundp 'jde-mode))
  (add-hook 'jde-mode-hook 'html-script-release-setup))

- Paul

Reply via email to