From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Re: command-execute: Cannot open load file: No such file or directory, wd-char-aliases-show Date: Tue, 29 Mar 2022 15:28:24 +0800 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15562"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Mar 29 09:29:13 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nZ6Hx-0003n6-2x for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 29 Mar 2022 09:29:13 +0200 Original-Received: from localhost ([::1]:50082 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nZ6Hv-0007zr-Hv for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 29 Mar 2022 03:29:11 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:60314) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nZ6HO-0007zh-Vn for help-gnu-emacs@gnu.org; Tue, 29 Mar 2022 03:28:38 -0400 Original-Received: from [2607:f8b0:4864:20::e2b] (port=39499 helo=mail-vs1-xe2b.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nZ6HN-0004Ql-AF for help-gnu-emacs@gnu.org; Tue, 29 Mar 2022 03:28:38 -0400 Original-Received: by mail-vs1-xe2b.google.com with SMTP id i10so4587573vsr.6 for ; Tue, 29 Mar 2022 00:28:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-transfer-encoding; bh=ALiDdbHtFA3nBOYlsFbG9OZ0vw3U2raAouTimPELtPo=; b=ViiTtXCqFq7DMBw12CLpfFPN62A9bFdp+KGOHQ1mqjRbiYZU+22NYNeIWdji+13DQ+ Tu2xIlqyCRKkebLQssXugpS4KIx8BmGifAd51wmAfMupSsveBLXdebrlofnGdb7Zo9KW w1e8mnpfLc9r4Oh4sR+GpCBBet78lQqg6pkR0Q6QCCnBPkVD3U5UHBejilanweBkVnNy MW4k2GEsdZMq8yPCrEX/s3MP7dfe4Ik6GUE3iSnIkZNQVldOwJ101aTCT/JlRxHis2dP bf86rJk4be8wqdlTCo+OaNvVSfsxXIL4Zjivc2JOOB4Te7slPHJUXxONSAjiKgHH1JnO IcjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-transfer-encoding; bh=ALiDdbHtFA3nBOYlsFbG9OZ0vw3U2raAouTimPELtPo=; b=oOuXfSVhj4sYHkZHMJe+7Pdxs4w+dz2zoLFM09s42qMoXXNtBacRoXy55a2lw95TLt aCT/VOHf/dO24W8B1M45KZQ2mqw2zQqgazwHvQ8qthG6+0wvub/RCCrebsCdoDD+xfWR lJT5GSg9LY3zsM05+/KyWSAryMg9HNuYnVlJKExW0QCYYytz1OQb704aNj6G1AixhxC/ d8rSM5MuFPFsq7Ns1g+gKwMJxoe3IpTG6NH078wqF2mTBtRxjiP50ikF9yQCc725S57z sPJaWY9ho6hWKDJB/2X6oXCeD4vuV+XEM3Y2bwF7Cyh9G4ef4IESJevsijXLC9i0cS/x aeSQ== X-Gm-Message-State: AOAM530qApErlFnTkWmR+3XL2761V5JO/W4mXa5TrB7GwGusu9TzNELN wBKx5TQjKcXeGY/9VwoJ4sj7Qg2oXn87X48Rdqcmyri3BD8= X-Google-Smtp-Source: ABdhPJxdvVvA/6HU/BAnFOqnsQhOXuSLVE5P3pT6Mh1rVV1KW0PjzafC8fLTAY/aVHZxp9kEQ2QCZ7PeyFh/Wu7lR2o= X-Received: by 2002:a05:6102:570f:b0:324:dcb0:d66e with SMTP id dg15-20020a056102570f00b00324dcb0d66emr14071726vsb.26.1648538915897; Tue, 29 Mar 2022 00:28:35 -0700 (PDT) In-Reply-To: X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::e2b (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::e2b; envelope-from=hongyi.zhao@gmail.com; helo=mail-vs1-xe2b.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:136805 Archived-At: On Mon, Mar 28, 2022 at 3:12 PM Hongyi Zhao wrote: > > I try to load the nice small elisp script character-aliases.el [1], > which can find all the name and alias corresponding to a codepoint in > Emacs, and I put it in the following location on my machine to > leverage straight.el [2] to manage such scripts for convenience: > > ``` > werner@X10DAi-00:~/.emacs.d/straight/repos$ tree -F hongyi-zhao-custom/ > hongyi-zhao-custom/ > =E2=94=94=E2=94=80=E2=94=80 character-aliases/ > =E2=94=94=E2=94=80=E2=94=80 character-aliases.el > > 1 directory, 1 file > ``` > > According to the guidance here [3]: > > > When you use the :commands keyword, it creates autoloads for those comm= ands and defers loading of the module until they are used. > > I use the following configuration in Emacs `~/.emacs.d/init.el`: > > ```emacs-lisp > (use-package wd-char-aliases-show > :straight (:type nil :local-repo "hongyi-zhao-custom/character-aliases"= ) > :commands wd-char-aliases-show > ) > ``` > > It turns out that the command `wd-char-aliases-show` is available now, > but it still doesn't work, as shown below: > > ``` > command-execute: Cannot open load file: No such file or directory, > wd-char-aliases-show > ``` > > Any hints for fixing this problem? > > See here [4] for a related discussion. > > [1] https://lists.gnu.org/archive/html/help-gnu-emacs/2022-03/bin3cfCvSPc= l8.bin > [2] https://github.com/raxod502/straight.el > [3] https://github.com/jwiegley/use-package#key-binding > [4] https://github.com/jwiegley/use-package/issues/978 The problem has been resolved, please see here [1] for more details. [1] https://github.com/raxod502/straight.el/issues/934#issuecomment-1081504= 869 Regards, HZ