From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: Multiple next-error sources Date: Fri, 7 Nov 2014 18:21:11 +0000 Message-ID: <20141107182111.GC2865@acm.acm> References: <86fvdwgxqs.fsf@yandex.ru> <20141106180815.207bf7ad@forcix> <20141107104914.17f04967@forcix> <20141107165551.GA2865@acm.acm> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1415384540 25797 80.91.229.3 (7 Nov 2014 18:22:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Nov 2014 18:22:20 +0000 (UTC) Cc: emacs-devel@gnu.org, Helmut Eller , Jorgen Schaefer To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 07 19:22:13 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XmoAn-0002Sg-2z for ged-emacs-devel@m.gmane.org; Fri, 07 Nov 2014 19:22:13 +0100 Original-Received: from localhost ([::1]:33336 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XmoAm-0005yJ-JG for ged-emacs-devel@m.gmane.org; Fri, 07 Nov 2014 13:22:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52388) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XmoAd-0005y7-09 for emacs-devel@gnu.org; Fri, 07 Nov 2014 13:22:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XmoAV-0003FU-Bo for emacs-devel@gnu.org; Fri, 07 Nov 2014 13:22:02 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:53540 helo=mail.muc.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XmoAU-0003FJ-Sv for emacs-devel@gnu.org; Fri, 07 Nov 2014 13:21:55 -0500 Original-Received: (qmail 6890 invoked by uid 3782); 7 Nov 2014 18:21:50 -0000 Original-Received: from acm.muc.de (pD951BADF.dip0.t-ipconnect.de [217.81.186.223]) by colin.muc.de (tmda-ofmipd) with ESMTP; Fri, 07 Nov 2014 19:21:49 +0100 Original-Received: (qmail 3352 invoked by uid 1000); 7 Nov 2014 18:21:11 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 8.x X-Received-From: 193.149.48.1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:176547 Archived-At: Hello, Stefan. On Fri, Nov 07, 2014 at 01:08:57PM -0500, Stefan Monnier wrote: > >> 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. > > Why not? > I'd return the question: given the above, why add next-error-functions? Because "(add-hook 'next-error-functions #'my-function)" is shorter than the `add-function' variant, along with all the other good reasons which have been posted in this thread. 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. > Stefan -- Alan Mackenzie (Nuremberg, Germany).