[Top][All Lists]

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

Re: Multiple next-error sources

From: Stefan Monnier
Subject: Re: Multiple next-error sources
Date: Fri, 07 Nov 2014 10:55:50 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

> I strongly dislike this approach.  It conflates customization points with
> implementation details.  Hook variables clearly separate the two ideas.

foo-function *is* a customization point and not an implementation detail.

That's the difference between using add-function on a foo-function (a
customization point) and using advice-add on some function (some
implementation detail).

> There's also no buffer-local add-function equivalent.

Of course there is:

   (add-function :before-until (local 'next-error-function) #'my-function)

-- Stefan

reply via email to

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