From: "R. Clayton" <factotum@rclayton.org>
To: help-gnu-emacs@gnu.org
Subject: A small use-package puzzle
Date: Fri, 30 Aug 2024 07:32:34 -0400 [thread overview]
Message-ID: <87cylq8cvh.fsf@rclayton.org> (raw)
I'm running GNU Emacs 29.4 (build 1, i686-pc-linux-gnu, GTK+ Version 3.24.42,
cairo version 1.18.0) of 2024-06-29, modified by Debian, and I'm wondering how
this can happen:
ELISP> (file-exists-p "/home/rclayton/.emacs.d/elpa/dart-mode-1.0.7")
nil
ELISP> (package-installed-p 'dart-mode)
nil
ELISP> (executable-find "dart")
nil
ELISP> (use-package dart-mode :if (executable-find "dart"))
nil
ELISP> (package-installed-p 'dart-mode)
t
ELISP> (file-exists-p "/home/rclayton/.emacs.d/elpa/dart-mode-1.0.7")
t
ELISP> (executable-find "dart")
nil
ELISP>
Maybe there's some weird interaction between ielm and use-package, but when
init.el contains (use-package dart-mode :if (executable-find "dart")) the same
behavior occurs.
Note that
(when (executable-find "dart")
(use-package dart-mode))
in init.el behaves as expected.
next reply other threads:[~2024-08-30 11:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-30 11:32 R. Clayton [this message]
2024-08-30 14:59 ` A small use-package puzzle Suhail Singh
2024-08-31 9:53 ` R. Clayton
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87cylq8cvh.fsf@rclayton.org \
--to=factotum@rclayton.org \
--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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.