From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ivan Shmakov Newsgroups: gmane.emacs.devel Subject: Re: autoload for eww-suggest-uris Date: Wed, 11 Mar 2015 04:42:27 +0000 Message-ID: <87h9tsxhzg.fsf@violet.siamics.net> References: <20150216190531.25142.72090@vcs.savannah.gnu.org> <87bnks8j14.fsf_-_@violet.siamics.net> <87wq2uzlqo.fsf@violet.siamics.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1426049016 19420 80.91.229.3 (11 Mar 2015 04:43:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 Mar 2015 04:43:36 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 11 05:43:31 2015 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 1YVYUH-00031B-VA for ged-emacs-devel@m.gmane.org; Wed, 11 Mar 2015 05:43:18 +0100 Original-Received: from localhost ([::1]:52606 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVYUH-0003xw-0s for ged-emacs-devel@m.gmane.org; Wed, 11 Mar 2015 00:43:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48420) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVYU2-0003wv-OC for emacs-devel@gnu.org; Wed, 11 Mar 2015 00:43:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YVYU1-0005pi-Nv for emacs-devel@gnu.org; Wed, 11 Mar 2015 00:43:02 -0400 Original-Received: from fely.am-1.org ([2a01:4f8:d15:1b86::2]:41412) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVYU1-0005kS-E9 for emacs-devel@gnu.org; Wed, 11 Mar 2015 00:43:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=siamics.net; s=a2013295; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:Sender:References:Subject:To:From; bh=/Pw0T5d0ibyMyQ9vpJUPdcr15/KstcU221/l+4sqPkA=; b=Q4JTet9674V9VEpb08jDGJLxlu18YIS5nD9lm/cJ9wL4jtOKu0UEN+ZlH+zlt33ZEaRYKZrrcdaerSyaxbGx5810r+Q06UtJzSzWy5jTkqoT21ULnJkObmSTsMtjUuHtz1obR6AUhLGpCoIMBjU4noNbzhLo5tsSonVR7V2EZvM=; Original-Received: from [2a02:2560:6d4:26ca::1:1d] (helo=violet.siamics.net) by fely.am-1.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1YVYTd-0000nS-LL for emacs-devel@gnu.org; Wed, 11 Mar 2015 04:42:37 +0000 Original-Received: from localhost ([::1] helo=violet.siamics.net) by violet.siamics.net with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1YVYTW-0001qo-8H for emacs-devel@gnu.org; Wed, 11 Mar 2015 11:42:30 +0700 Mail-Followup-To: emacs-devel@gnu.org In-Reply-To: (Stefan Monnier's message of "Mon, 09 Mar 2015 21:23:01 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a01:4f8:d15:1b86::2 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:183779 Archived-At: >>>>> Stefan Monnier writes: >> How do we prevent it from interfering with an explicit =E2=80=98setq=E2= =80=99 then? > The question is fundamentally: is eww-suggest-uris a hook, or is it a > list of functions? > If it's a hook, then using `setq' on it is a bug (and it should be > called eww-suggest-uris-hook or eww-suggest-uris-functions). If we define a hook as a variable holding a list of functions and provided with the purpose of allowing proper operation of arbitrary extensions to the base code, then no =E2=80=93 I believe eww-suggest-uris is /not/ a hook. Still, it=E2=80=99s a (customizable) list of functions, defined with :type 'hook, and (arguably) one may use add-hook in one=E2=80=99s ~/.emacs to add to it. (The use of add-hook against this variable in EWW extensions =E2=80=93 should there be any =E2=80=93 is debatable, though.) --=20 FSF associate member #7257 np. La Druido =E2=80=94 Strika Tango 3013 B6A0= 230E 334A