help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: use-package :after ??


From: David Masterson
Subject: Re: use-package :after ??
Date: Sun, 07 May 2023 22:20:49 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

Ruijie Yu via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org> writes:

> Yes, see this snippet:
>
> What I ran:
>
> (let ((use-package-always-defer nil) (use-package-always-ensure nil))
>          (macroexpand-1 '(use-package foo :after (bar baz))))
>
>
> What I got:
>
> (progn
>   (defvar use-package--warning9
>     #'(lambda
>         (keyword err)
>         (let
>             ((msg
>               (format "%s/%s: %s" 'foo keyword
>                       (error-message-string err))))
>           (display-warning 'use-package msg :error))))
>   (condition-case-unless-debug err
>       (eval-after-load 'baz
>         '(eval-after-load 'bar
>            '(if
>                 (not
>                  (require 'foo nil t))
>                 (display-warning 'use-package
>                                   (format "Cannot load %s" 'foo)
>                                   :error))))
>     (error
>      (funcall use-package--warning9 :catch err))))
>
> This also answers your question of "how to macroexpand".  There are
> also the two functions `macroexpand' and `macroexpand-all' which you
> can try to use as well.

Thanks again
-- 
David Masterson



reply via email to

[Prev in Thread] Current Thread [Next in Thread]