From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.devel Subject: Re: Hook vs. list of procedures Date: Mon, 09 Jan 2017 00:03:10 +0100 Message-ID: <87k2a5b1e9.fsf@pobox.com> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1483916624 2652 195.159.176.226 (8 Jan 2017 23:03:44 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 8 Jan 2017 23:03:44 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Cc: guile-devel To: Jan =?utf-8?B?U3luw6HEjWVr?= Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Jan 09 00:03:40 2017 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cQMV1-0008WJ-Lg for guile-devel@m.gmane.org; Mon, 09 Jan 2017 00:03:39 +0100 Original-Received: from localhost ([::1]:35628 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cQMV4-0000rx-NR for guile-devel@m.gmane.org; Sun, 08 Jan 2017 18:03:44 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32816) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cQMUl-0000rb-SN for guile-devel@gnu.org; Sun, 08 Jan 2017 18:03:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cQMUi-0008CT-QO for guile-devel@gnu.org; Sun, 08 Jan 2017 18:03:23 -0500 Original-Received: from pb-sasl1.pobox.com ([64.147.108.66]:57262 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cQMUi-0008CI-JU for guile-devel@gnu.org; Sun, 08 Jan 2017 18:03:20 -0500 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-sasl1.pobox.com (Postfix) with ESMTP id DB46555485; Sun, 8 Jan 2017 18:03:18 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=sasl; bh=DEqElVq+KYsF hxDjuLez5E3dyDI=; b=Nnm/oldv0v9loHg1ADZ8W54Bx1ElRvw3Iy7tiB9RRAdb Gq0/+q7qDch2UXVjx2A/7mci60J7yvrIKgEFLa0Lws9G5KdyxpxInnU4Y8wuudjU E07tH5N3kexZTsQXWg4AxJcLigd4X3j0nZNQ6oj2V7rEzqsZzPc7WXbUxMRhEY4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=sasl; b=G2rO/L xDlZ4RiY9avgKeHnGKOPdk6aysa2/fDxD3xJnqAg4c+i7X0r6kfsiTM8mLouWRwS fojj7uW/K485tvd4oEJw4UFFavlrpqBHFF7Uw4NggrXnGQjqWLd68Rds+TRLHFgY T6myzc/9QReN7vYjOAhJEO7DPbw0ooE0Wnjpg= Original-Received: from pb-sasl1.nyi.icgroup.com (unknown [127.0.0.1]) by pb-sasl1.pobox.com (Postfix) with ESMTP id D39E855484; Sun, 8 Jan 2017 18:03:18 -0500 (EST) Original-Received: from clucks (unknown [88.160.190.192]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pb-sasl1.pobox.com (Postfix) with ESMTPSA id E95C355483; Sun, 8 Jan 2017 18:03:17 -0500 (EST) In-Reply-To: ("Jan =?utf-8?B?U3luw6HEjWVrIidz?= message of "Thu, 15 Dec 2016 11:48:16 +0100") X-Pobox-Relay-ID: A4A808AA-D5F6-11E6-8F24-CDEC6462E9F6-02397024!pb-sasl1.pobox.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 64.147.108.66 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.org gmane.lisp.guile.devel:18835 Archived-At: On Thu 15 Dec 2016 11:48, Jan Syn=C3=A1=C4=8Dek wri= tes: > I've read about hooks in the manual recently and I don't understand > why they are special. What is the difference between a hook and a > plain list of procedures? Why do hooks have their own API? Historical reasons I think. Early Emacs inspired a number of Guile extension points, and hooks are a thing there. (Hooks are not just a list of procedures -- they're a settable place as well and a way of running all of the procedures.) Anyway I agree, nothing to shout about, and probably something the manual should mention less prominently. Andy