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: autoload for eww-suggest-uris Date: Tue, 17 Feb 2015 18:55:35 +0000 Message-ID: <87bnks8j14.fsf_-_@violet.siamics.net> References: <20150216190531.25142.72090@vcs.savannah.gnu.org> 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 1424199374 28855 80.91.229.3 (17 Feb 2015 18:56:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Feb 2015 18:56:14 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 17 19:56:11 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 1YNnJa-0006Q0-Up for ged-emacs-devel@m.gmane.org; Tue, 17 Feb 2015 19:56:11 +0100 Original-Received: from localhost ([::1]:46871 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNnJa-0006UD-5m for ged-emacs-devel@m.gmane.org; Tue, 17 Feb 2015 13:56:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58371) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNnJM-0006Tw-MY for emacs-devel@gnu.org; Tue, 17 Feb 2015 13:55:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YNnJL-0001jQ-Hy for emacs-devel@gnu.org; Tue, 17 Feb 2015 13:55:56 -0500 Original-Received: from fely.am-1.org ([2a01:4f8:d15:1b86::2]:39894) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNnJL-0001iH-7t for emacs-devel@gnu.org; Tue, 17 Feb 2015 13:55:55 -0500 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=BJWrxkbvGFDET52U4sDIyn4VfpMt18Ta9EmPe7w8Zcs=; b=hBqcN2K51hGqfmIGGrBHPeZ4/5B4rd4d2odxl1UzVRBi3hdE+FLdapHbTs16vZITldMWGBrK+GM8wpf73iw7V9H7CoEN36z5U82M1DfaP+oRvd/zCUCRr8nr8vK9SRKFV1B3rnBiLVeAjtuaPt0Eff9kYmmLdhZ4RPFbld9COyk=; 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 1YNnJ9-0004GI-4O for emacs-devel@gnu.org; Tue, 17 Feb 2015 18:55:43 +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 1YNnJ2-0006K4-GF for emacs-devel@gnu.org; Wed, 18 Feb 2015 01:55:36 +0700 Mail-Followup-To: emacs-devel@gnu.org In-Reply-To: (Artur Malabarba's message of "Mon, 16 Feb 2015 18:29:51 -0200") 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:183207 Archived-At: >>>>> Artur Malabarba writes: >> +;;;###autoload >> (defcustom eww-suggest-uris > Autoloading defcustoms is know to cause problems. See > http://lists.gnu.org/archive/html/emacs-devel/2014-11/msg00608.html I don=E2=80=99t seem to see there any description of what /exactly/ happens in such a case =E2=80=93 just that package-initialize for some reason resets the variables set with custom-set-variables. Now, given that eww.el is a built-in package, is that even a problem? (Any details on that, anyone?) > Personally, I'd recommend finding another way around your add-hook > issue. What was the problem? This: ;;; ~/.emacs (add-hook 'eww-suggest-uris 'some-new-function) ; =E2=86=92 (some-new-function) Expected: that some-new-function /and/ all the default ones. An alternative would be to use add-hook in 'eww itself, but that in turn interferes with (setq eww-suggest-uris '(the-only-one)). --=20 FSF associate member #7257 http://boycottsystemd.org/ =E2=80=A6 3013 B6A0= 230E 334A