[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 09:59:12 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
> The advantage of hooks is that it makes it easier for users to
> customize the behavior by adding and removing various entries.
While it's true that
(add-hook 'next-error-functions #'my-function)
is shorter than
(add-function :before-until next-error-function #'my-function)
I don't think it warrants the addition of a next-error-functions.
If the :before-until is the problematic part, then I guess we should
look for ways to improve that (e.g. a better name, or some way for
a variable to say that :before-until is the default when adding
functions to it?).
> Is add-function intended to replace hooks like this in general?
Somewhat, yes. I have no intention to go around and replace existing
hooks in the forseeable future (except for those rare hooks that used
with-wrapper-hook), but I'll favor new foo-function over new
foo-functions.
Stefan
- Re: Generalizing find-definition, (continued)
- Re: Generalizing find-definition, Yuri Khan, 2014/11/03
- Re: Generalizing find-definition, Jorgen Schaefer, 2014/11/04
- Re: Generalizing find-definition, Dmitry Gutov, 2014/11/06
- Re: Generalizing find-definition, Stefan Monnier, 2014/11/06
- Re: Generalizing find-definition, Helmut Eller, 2014/11/06
- Multiple next-error sources, Jorgen Schaefer, 2014/11/06
- Re: Multiple next-error sources, Stefan Monnier, 2014/11/06
- Re: Multiple next-error sources, Jorgen Schaefer, 2014/11/07
- Re: Multiple next-error sources,
Stefan Monnier <=
- Re: Multiple next-error sources, Daniel Colascione, 2014/11/07
- Re: Multiple next-error sources, Stefan Monnier, 2014/11/07
- Re: Multiple next-error sources, Daniel Colascione, 2014/11/07
- Re: Multiple next-error sources, Stefan Monnier, 2014/11/07
- Re: Multiple next-error sources, Daniel Colascione, 2014/11/07
- Re: Multiple next-error sources, Stefan Monnier, 2014/11/07
- Re: Multiple next-error sources, Jorgen Schaefer, 2014/11/07
- Re: Multiple next-error sources, Stefan Monnier, 2014/11/07
- Re: Multiple next-error sources, Alan Mackenzie, 2014/11/07
- Re: Multiple next-error sources, Daniel Colascione, 2014/11/07