[Top][All Lists]

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

Re: Multiple next-error sources

From: Alan Mackenzie
Subject: Re: Multiple next-error sources
Date: Fri, 7 Nov 2014 19:51:55 +0000
User-agent: Mutt/1.5.21 (2010-09-15)

Hello, Stefan.

On Fri, Nov 07, 2014 at 01:48:25PM -0500, Stefan Monnier wrote:
> > Because "(add-hook 'next-error-functions #'my-function)" is shorter than
> > the `add-function' variant,

> The text I wrote and you quoted already said that it was shorter but not
> enough to warrant an additional variable.  So you think saving 16
> characters is worth an additional hook?

It saves one parameter, that `:before-until', which is difficult to

> None of those reasons seem to apply the question of whether it's worth
> adding a next-error-functions hook (remember: next-error-function exists
> already, since long before add-function was born).

> > Let me repeat my question: in what respect is the `add-function' way of
> > doing things superior to the conventional hook mechanism?  If the answer
> > is "in no respect", then I would suggest that the project continue to
> > use hooks in preference to `add-function' functions.

> At this point I feel like you're confusing me with an idiot.

Sorry, I don't mean to give that impression.

Anyhow, you've answered my question in a post to Daniel.  It's all about
increased flexibility.  So, thanks!

>         Stefan

Alan Mackenzie (Nuremberg, Germany).

reply via email to

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