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: Mon, 14 Apr 2014 15:27:28 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

> When I use Emacs Speaks Statistics [http://ess.r-project.org/], I like
> all of my file buffers to be saved before evaluating any code in them,
> so I wrote advice for 9 functions that provides this behavior. After
> sharing that with the ESS list, one of the maintainers communicated to
> me that in the development version of ESS there is a new hook that
> will run when any of those 9 functions is called.

You can probably use (boundp 'ess-foo-bar-hook) to test if the hook
is available.  But that will only give the right answer after loading
the file which does (defvar ess-foo-bar-hook ...) or equivalent.


        Stefan




reply via email to

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