From: Stefan Monnier <monnier@iro.umontreal.ca>
To: jao <jao@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: [nongnu] elpa/geiser bb9d5cb200: geiser-impl--normalize-method: quick fix for previous change
Date: Fri, 28 Jan 2022 15:16:37 -0500 [thread overview]
Message-ID: <jwvleyz62sd.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <20220128195815.4DB24C423B9@vcs2.savannah.gnu.org> (ELPA Syncer's message of "Fri, 28 Jan 2022 14:58:15 -0500 (EST)")
> (let ((v (cadr m)))
> - (if (functionp v) m
> - `(,(car m)
> - ,(lambda (&rest _) v))))))
> + (if (functionp v) m `(,(car m) (lambda (&rest _) ,v))))))
But this reintroduces the use of a list-that-looks-like-a-function
instead of a true function.
BTW, one difference I can see is that the new code will basically pass
`v` to `eval` whereas the code I had sent considers `v` to be
a value already.
So maybe the code I should have sent is along the lines of the
patch below?
Stefan
diff --git a/elisp/geiser-impl.el b/elisp/geiser-impl.el
index 53a7a824c3..3bc5af5e55 100644
--- a/elisp/geiser-impl.el
+++ b/elisp/geiser-impl.el
@@ -158,7 +158,7 @@ in order to determine its scheme flavour."
(= 2 (length m))
(symbolp (car m)))
(let ((v (cadr m)))
- (if (functionp v) m `(,(car m) (lambda (&rest _) ,v))))))
+ (if (functionp v) m `(,(car m) ,(lambda (&rest _) (eval v t)))))))
(defun geiser-impl--define (file name parent methods)
(let* ((methods (mapcar #'geiser-impl--normalize-method methods))
next parent reply other threads:[~2022-01-28 20:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <164339989485.1614.11034229578358286224@vcs2.savannah.gnu.org>
[not found] ` <20220128195815.4DB24C423B9@vcs2.savannah.gnu.org>
2022-01-28 20:16 ` Stefan Monnier [this message]
2022-01-28 20:47 ` [nongnu] elpa/geiser bb9d5cb200: geiser-impl--normalize-method: quick fix for previous change Jose A Ortega Ruiz
2022-01-28 21:16 ` Stefan Monnier
2022-01-28 23:07 ` Jose A Ortega Ruiz
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=jwvleyz62sd.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=jao@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.