From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Elias_M=C3=A5rtenson?= Newsgroups: gmane.emacs.devel Subject: Re: defcustom problem with packages (user error?) Date: Thu, 13 Nov 2014 21:03:09 +0800 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1135506e5964580507bd22aa X-Trace: ger.gmane.org 1415883833 10830 80.91.229.3 (13 Nov 2014 13:03:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Nov 2014 13:03:53 +0000 (UTC) Cc: Artur Malabarba , emacs-devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 13 14:03:46 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 1Xou3u-0005NW-BF for ged-emacs-devel@m.gmane.org; Thu, 13 Nov 2014 14:03:46 +0100 Original-Received: from localhost ([::1]:59723 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xou3t-0001AG-UF for ged-emacs-devel@m.gmane.org; Thu, 13 Nov 2014 08:03:45 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55320) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xou3S-00016g-0Y for emacs-devel@gnu.org; Thu, 13 Nov 2014 08:03:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xou3N-00033M-Ni for emacs-devel@gnu.org; Thu, 13 Nov 2014 08:03:17 -0500 Original-Received: from mail-qc0-x22d.google.com ([2607:f8b0:400d:c01::22d]:52294) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xou3N-00032u-Jl for emacs-devel@gnu.org; Thu, 13 Nov 2014 08:03:13 -0500 Original-Received: by mail-qc0-f173.google.com with SMTP id x3so11023054qcv.18 for ; Thu, 13 Nov 2014 05:03:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=wXMYiNQydZp3fuW0GZYEE/OJYbRAZw0tbavFzTbJ+0o=; b=R6IDz9fsTmbC5zl1Op2eBIe0Mw5Qgk8xEdLOvFosrxvPmsQL+SMQnK3E8PcucX58Rn /FlrnjvC5QVYuivmyZgXDNWr5ffNb7+eUKPuaNVdlIfgcNMpWmXiLxn6Sa0PQ2PN7fgt VbrsxKQ79yntS1CqI+OKudaIzRfNJRyIESiLtgkwj0HTaB+x27yKhvFjoYdzVsHHe4WB Syah0eYJIeX2Z3ymR5lAgYeJoDAFSyAKwvUzbRQnwqbBKhaac2iNafiwK5wE76W4nxXs rruEA8ysGcYByAiKjjlrykqf8SigM5r8f1aeLhMz2ZWHG3LTdX1jVFrrDLKPuj3aUjLc HLow== X-Received: by 10.140.104.131 with SMTP id a3mr2989562qgf.31.1415883790047; Thu, 13 Nov 2014 05:03:10 -0800 (PST) Original-Received: by 10.140.97.228 with HTTP; Thu, 13 Nov 2014 05:03:09 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400d:c01::22d 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:176895 Archived-At: --001a1135506e5964580507bd22aa Content-Type: text/plain; charset=UTF-8 On 12 November 2014 22:45, Stefan Monnier wrote: > > I'm not sure if that's the cause of your problem, but you don't need to > > autoload all those defcustom s. > > Just autoload the entry functions. > > Oh, indeed, autoloading variables is generally a bad idea. And it could > explain the behavior. I haven't seen such problem until now, but it's > probably because such autoloads are rare. So maybe we should document > it more prominently. > Thank you. I made this change and indeed now it works better. That said, if it's not a good idea to autoload customisable variables, then what is the purpose of `custom-autoload'? This is what gets inserted into gnu-apl-mode-autoloads.el. Regards, Elias --001a1135506e5964580507bd22aa Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On 1= 2 November 2014 22:45, Stefan Monnier <monnier@iro.umontreal.ca= > wrote:
> = I'm not sure if that's the cause of your problem, but you don't= need to
> autoload all those defcustom s.
> Just autoload the entry functions.

Oh, indeed, autoloading variables is generally a bad idea.=C2=A0 And= it could
explain the behavior.=C2=A0 I haven't seen such problem until now, but = it's
probably because such autoloads are rare.=C2=A0 So maybe we should document=
it more prominently.

Thank you. I made = this change and indeed now it works better.

That s= aid, if it's not a good idea to autoload customisable variables, then w= hat is the purpose of `custom-autoload'? This is what gets inserted int= o gnu-apl-mode-autoloads.el.

Regards,
El= ias
--001a1135506e5964580507bd22aa--