[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fundamental-mode-hook

From: Lennart Borgman (gmail)
Subject: Re: fundamental-mode-hook
Date: Thu, 08 Feb 2007 23:29:54 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20061207 Thunderbird/ Mnenhy/

Richard Stallman wrote:
I am not sure what to answer at the moment. I just found this inconsistency when I tried to check if a function was a major mode function. I tested to see if the hook variable existed (probably not the best way, but that is what I did).

That approach won't work in general.  A major mode hook variable does
not have to "exist" in any sense unless the user chooses to put on
a hook.  Some major modes defvar the hook variable, but some don't.

Yes, thanks, that is what I thought. What is the right way to find out if a function is a major mode?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]