From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#35022: 26.1; Load order of custom-autoload, custom-load-symbol, custom-loads is backward? Date: Wed, 10 Apr 2019 21:54:19 -0400 Message-ID: <87o95d9uic.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="22875"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.91 (gnu/linux) Cc: 35022@debbugs.gnu.org To: Allen Li Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 11 03:57:47 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hEOyI-0005rW-L0 for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Apr 2019 03:57:46 +0200 Original-Received: from localhost ([127.0.0.1]:40246 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hEOyH-0001SF-CW for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Apr 2019 21:57:45 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:39506) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hEOy4-0001Mx-Ol for bug-gnu-emacs@gnu.org; Wed, 10 Apr 2019 21:57:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hEOve-0007tx-8V for bug-gnu-emacs@gnu.org; Wed, 10 Apr 2019 21:55:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40182) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hEOve-0007tm-0t for bug-gnu-emacs@gnu.org; Wed, 10 Apr 2019 21:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hEOvd-0003pf-Qv for bug-gnu-emacs@gnu.org; Wed, 10 Apr 2019 21:55:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Apr 2019 01:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35022 X-GNU-PR-Package: emacs Original-Received: via spool by 35022-submit@debbugs.gnu.org id=B35022.155494766914680 (code B ref 35022); Thu, 11 Apr 2019 01:55:01 +0000 Original-Received: (at 35022) by debbugs.gnu.org; 11 Apr 2019 01:54:29 +0000 Original-Received: from localhost ([127.0.0.1]:53726 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hEOv7-0003od-GG for submit@debbugs.gnu.org; Wed, 10 Apr 2019 21:54:29 -0400 Original-Received: from mail-qk1-f177.google.com ([209.85.222.177]:34761) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hEOv5-0003oI-JW; Wed, 10 Apr 2019 21:54:28 -0400 Original-Received: by mail-qk1-f177.google.com with SMTP id n68so2541033qka.1; Wed, 10 Apr 2019 18:54:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=Ptw9LPvdNaTSTSXCH6+HDdgRr7pH2ZrAhd5zpIaFgxU=; b=Z5Am8VLo/JyIFGuF7vR7qTIk63nCtjqV+jB8N2VwEeVJ4GtY2IGEfcp4kmXWq1qmE3 zhPdaRN1J9iXds9IIEUaWY287sc5BNIU3aEQyxSqYpPmQpe4y0d55QBMpX8yd5YbeKUq pnuZl/ADHV69/+NmQ0J5JC2pW6qP2JdQQpSFSdCcX2ONzSNzQuXVHVNXCR4fhTuep579 re5oQWPJc4ahsHgbyn2i1WeBKH2gZ2Cg8ZujW9uADhugdI1MxeFXhomoHhKHtaDrQk8t vG3oHsU4NfebzqF9pXAYvP2V55x8tkBdLzGpxfCNzr9PfmuldhG/+dmhhMKfG2sCgSqc YMzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=Ptw9LPvdNaTSTSXCH6+HDdgRr7pH2ZrAhd5zpIaFgxU=; b=nLHYQYTVhyaSXIp4ZPcKcyLl71e0cKdpdCTsywVn1O/q51Je+Z7Rk0Nbf2jGmPxeXt T0uNHyT1AMp+FizC+xPOKUUU3V/wMo6MbpgNpqsfl57G7ZizFJ3w0kggzCGuLtqnf0fe lyNqrRXVHJYQLCa12GPRq2wBE30A3dz4nOWJ8uflsbjU4LEdAIL9VsEUztiK1XUOz9rN LA9oy3Qa7GXZ8PlXhAbNbGGFEZheAXNaq+2fh96FsiFmJEKrJldbiFY7UWCrZCzDG2ms LPUcuQBW2wVLHu7bh0nqFhnCVAiOgNOsY5pnI8ipwS2+rNb1PM4yF+yE1E2HsVxHNiVw eqgA== X-Gm-Message-State: APjAAAWZ/nrcx8Ml0S6N8m1p6B1U5UDW7FSxqY7tBFdyKmk0GVGTXU5G c+woMoxoRJGo1jLMlIw9SvqXjzqc X-Google-Smtp-Source: APXvYqyfF84dhtSnBsGZ914QvitE8o6GKNKBIU9YAY22FzJwdW0yeePKo7aLqPal8XBBt9HnGowi8A== X-Received: by 2002:a37:ef13:: with SMTP id j19mr37077418qkk.4.1554947661812; Wed, 10 Apr 2019 18:54:21 -0700 (PDT) Original-Received: from minid (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id d41sm26908486qtd.90.2019.04.10.18.54.20 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 10 Apr 2019 18:54:20 -0700 (PDT) In-Reply-To: (Allen Li's message of "Wed, 27 Mar 2019 14:08:42 -0700") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:157478 Archived-At: retitle 35022 custom-add-load, custom-load-symbol don't support filenames with directory components severity 35022 wishlist quit Allen Li writes: > But not for this: > > ;; Called from site-start > (custom-autoload 'foo-some-variable "some/path/to/foo" nil) > ;; Called from init.el/package-initialize > (custom-autoload 'foo-some-variable "foo" nil) > > I'm not sure yet what the proper approach for my problem is. Would it be too impertinent to suggest the proper aproach is this: ;; Called from site-start (add-to-list 'load-path (expand-file-name "some/path/to")) (custom-autoload 'foo-some-variable "foo" nil) ;; Called from init.el/package-initialize (custom-autoload 'foo-some-variable "foo" nil) Otherwise, I guess extending custom-add-load and custom-load-symbol to handle entries of the form (LIBRARY . RELATIVE-NAME) could make sense.