unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Hongyi Zhao <hongyi.zhao@gmail.com>
To: help-gnu-emacs <help-gnu-emacs@gnu.org>
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	[thread overview]
Message-ID: <CAGP6POKz7bgv94APFA8L7t5STbN3opbqsxe6zYzekB55MS+b3w@mail.gmail.com> (raw)

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/
└── character-aliases/
    └── character-aliases.el

1 directory, 1 file
```

According to the guidance here [3]:

> When you use the :commands keyword, it creates autoloads for those commands 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,
-- 
Assoc. Prof. Hongsheng Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Vocational University of Technology and Engineering
No. 473, Quannan West Street, Xindu District, Xingtai, Hebei province



             reply	other threads:[~2022-03-28  7:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-28  7:12 Hongyi Zhao [this message]
2022-03-29  7:28 ` command-execute: Cannot open load file: No such file or directory, wd-char-aliases-show Hongyi Zhao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAGP6POKz7bgv94APFA8L7t5STbN3opbqsxe6zYzekB55MS+b3w@mail.gmail.com \
    --to=hongyi.zhao@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).