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

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

Re: Invalid function error when loading elisp through native compilation


From: Michael Heerdegen
Subject: Re: Invalid function error when loading elisp through native compilation
Date: Sun, 03 Mar 2024 22:56:20 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

"picnoir" <picnoir@alternativebit.fr> writes:

>   Invalid function: (my-repo-pins--query-github-owner-repo "test" "test"
>   (lambda (result) (let ((new-state (if (null result) 'not-found
>   result))) (my-repo-pins--update-forges-state "GitHub.com" new-state
>   "test/test"))))

#+begin_src emacs-lisp
(defun my-repo-pins--query-forge-fetchers ..2..
  (let* ((parsed-repo-query
          (my-repo-pins--parse-repo-identifier repo-query))..1..)
    (cond
     ((equal repo-query-kind 'owner-repo)
      (seq-map
       (lambda (forge)
         (let* ((owner (alist-get 'owner parsed-repo-query))..3..)
           (apply `(,fetch-func
                    ,owner
                    ,repo
                    (lambda (result)..3..))))) ...)))))
#+end_src
                  ^^^^^^^^^^^^^^^^^^^^^^^  !

This argument to apply is not a valid function value.  Signature of
`apply' is (apply FUN . ARGS) - you are specifying only one list as first
arg FUN.


Michael.




reply via email to

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