From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Multiple next-error sources Date: Fri, 07 Nov 2014 09:59:12 -0500 Message-ID: References: <20141102151524.0d9c665c@forcix> <20141102172944.0f7944e3@forcix> <20141103084433.12117c03@forcix> <86fvdwgxqs.fsf@yandex.ru> <20141106180815.207bf7ad@forcix> <20141107104914.17f04967@forcix> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1415372384 29573 80.91.229.3 (7 Nov 2014 14:59:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Nov 2014 14:59:44 +0000 (UTC) Cc: Helmut Eller , emacs-devel@gnu.org To: Jorgen Schaefer Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 07 15:59:37 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 1Xml0f-0000uT-Au for ged-emacs-devel@m.gmane.org; Fri, 07 Nov 2014 15:59:33 +0100 Original-Received: from localhost ([::1]:60576 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xml0e-0007RA-Dx for ged-emacs-devel@m.gmane.org; Fri, 07 Nov 2014 09:59:32 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52091) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xml0T-0007Pp-W2 for emacs-devel@gnu.org; Fri, 07 Nov 2014 09:59:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xml0M-0002rL-EB for emacs-devel@gnu.org; Fri, 07 Nov 2014 09:59:21 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:14257) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xml0M-0002rH-Ag for emacs-devel@gnu.org; Fri, 07 Nov 2014 09:59:14 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Au4MAOatTlRLd+sd/2dsb2JhbABcgw6DYoZ+y1MEAgKBHBcBAXyEAwEBAwFWIwULCw4mEhQYDSSISwnLcgEBAQEGAQEBAR6RCAeESwWLZKY8gW+EFh+CegEBAQ X-IPAS-Result: Au4MAOatTlRLd+sd/2dsb2JhbABcgw6DYoZ+y1MEAgKBHBcBAXyEAwEBAwFWIwULCw4mEhQYDSSISwnLcgEBAQEGAQEBAR6RCAeESwWLZKY8gW+EFh+CegEBAQ X-IronPort-AV: E=Sophos;i="5.04,797,1406606400"; d="scan'208";a="96202247" Original-Received: from 75-119-235-29.dsl.teksavvy.com (HELO pastel.home) ([75.119.235.29]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 07 Nov 2014 09:59:12 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 6C5808874; Fri, 7 Nov 2014 09:59:12 -0500 (EST) In-Reply-To: <20141107104914.17f04967@forcix> (Jorgen Schaefer's message of "Fri, 7 Nov 2014 10:49:14 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:176526 Archived-At: > 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