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: command-execute: Cannot open load file: No such file or directory, wd-char-aliases-show Date: Mon, 28 Mar 2022 15:12:03 +0800 Message-ID: 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="18877"; 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 Mon Mar 28 09:13:32 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 1nYjZE-0004om-3x for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 28 Mar 2022 09:13:32 +0200 Original-Received: from localhost ([::1]:46208 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nYjZC-0007iR-JR for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 28 Mar 2022 03:13:30 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37724) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nYjY1-0007iJ-Ps for help-gnu-emacs@gnu.org; Mon, 28 Mar 2022 03:12:17 -0400 Original-Received: from [2607:f8b0:4864:20::a2d] (port=38791 helo=mail-vk1-xa2d.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nYjY0-0005aB-1S for help-gnu-emacs@gnu.org; Mon, 28 Mar 2022 03:12:17 -0400 Original-Received: by mail-vk1-xa2d.google.com with SMTP id p143so7445488vkf.5 for ; Mon, 28 Mar 2022 00:12:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=vlrwMMlL4NG9A2/bSqwjX9mrxmZHmdT0+P+46LwC3AI=; b=fHhJ32fQPijgHUXaxuUcZMYORbi8e765da2dO3ukUH7E7P74osNVqe+35bvyF3hQcU g0gfvTbczU/kWJTFRS6ajrSG8s0eziL1KuHYvq0nCWlzplfSgpCxH2Rn8GTI86rZ3aAp B8QGuf4vxKXf+9B1YLPZpOx05HOkrFpdZ3bnNNhdRTL1m2FpFmuo71zrPsVpkVXDuzVO EGE9MDbhoyvUJWFtDulPWbtmwWG+UMxaeVdLb0gNy77smx14kIXoaCH+GjKlUviO8zjH 6aesp6q627Is9n0D2OlVLyi8sTE6mUPSfAluPvrSVGW5JQZAjbhbAOT26QLro/ViZ3wt nXxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=vlrwMMlL4NG9A2/bSqwjX9mrxmZHmdT0+P+46LwC3AI=; b=Jx3D1hfsK89IoP0pW1gf7m/X+PF6VvIWfCWf7+/fsId1le4u6bUoASsiaWpsAATL3J bumX/slbBsjzZlW+2mNbkp4NGS0VvZKVVBt6Ka66OLW5rFEY1QzsBKfnHhAymaLJcn9U 7AgDeRFN39XBBLHgZ8WacZsm8zc5mzl9WEELPeghpbx4qk4jBlKnRY8axQ6a4I3KdDLw pLyzG7x888R/h6g7lPzi9D9kiaM2ID3QEMJceBx0niCAl4JrmdasE1AGUoooIcf+ha8R dIvBCN23GLeb2xx0qc0gJZDT1ZuXgZDmsZZ0oCeHFCx92+4JZWQlirDwQn4MQkVC/akg 2y7g== X-Gm-Message-State: AOAM531eCm01YmTn92WB8p/fq/IwJfKPk6NT5kak+3wNMBcgO/b5/YPd xLj8tf95bdZre8w0IBdX4iyRcP/0xPibT0xXoR+sCaN2NiZxOQJK X-Google-Smtp-Source: ABdhPJxrxGaQC91kzVO/d348q5UK7xrjK1NWfza81LfyKP/F6sRI0qJvdm+HcbztFU8Rwza580K2l6FELg6IMF2A6/U= X-Received: by 2002:a05:6122:d0a:b0:342:e95a:a64e with SMTP id az10-20020a0561220d0a00b00342e95aa64emr3586438vkb.22.1648451534632; Mon, 28 Mar 2022 00:12:14 -0700 (PDT) X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::a2d (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::a2d; envelope-from=hongyi.zhao@gmail.com; helo=mail-vk1-xa2d.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:136797 Archived-At: 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 comman= ds 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/bin3cfCvSPcl8= .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 Regards, --=20 Assoc. Prof. Hongsheng Zhao Theory and Simulation of Materials Hebei Vocational University of Technology and Engineering No. 473, Quannan West Street, Xindu District, Xingtai, Hebei province