emacs-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] RFC: eldoc-documentation-functions hook


From: Dmitry Gutov
Subject: Re: [PATCH] RFC: eldoc-documentation-functions hook
Date: Sun, 12 Jun 2016 22:50:37 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2

On 06/12/2016 10:44 PM, Mark Oteiza wrote:

add-function is more powerful than hooks, see the different ways you can
combine the functions.

That does not mean we should be using advice where hooks are a natural
solution.

Maybe, maybe not. After introducing nadvice, it was Stefan's position that most hooks should be replaced with using advice, and eldoc-documentation-function in particular.

I don't know how I feel about "most hooks", but there doesn't seem to be a strong reason to reverse his choice on this one variable.

Nothing prevents you from using add-function on a hook

I don't think that's possible.

or a function
that is part of a hook.

You'd have to know the names of the individual functions in advance.



reply via email to

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