help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Querying available mode hooks in a given mode


From: Stefan Monnier
Subject: Re: Querying available mode hooks in a given mode
Date: Sun, 13 Apr 2014 21:52:27 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

>> My goal is to, after a mode has been entered, to check whether
>> a particular hook exists.  If it does or does not exist, then I will
>> run some handler code.

Can you give a concrete example?

> Unless the mode author is straying pretty far from accepted practice,
> you can usually see all the hooks by doing C-h v, then typing
> modeprefix--hook, and hitting TAB. That should give you a *Completion*
> buffer with all the matching variables.

Actually, some hooks may exist without appearing there.


        Stefan




reply via email to

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