emacs-devel
[Top][All Lists]
Advanced

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

Re: [ELPA] New package: hcel


From: Michael Heerdegen
Subject: Re: [ELPA] New package: hcel
Date: Wed, 21 Sep 2022 09:19:19 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Yuchen Pei <id@ypei.org> writes:

> (defun hcel-module-selector (package-id)
>   (lambda (module-path)
>     (interactive
>      (list
>       (completing-read "Select module: "
>                        (hcel-list-modules package-id))))
>     (switch-to-buffer
>      (hcel-load-module-source package-id module-path))))
>
> It seems to me to be similar to the problem described in
> <https://lists.gnu.org/archive/html/help-gnu-emacs/2012-08/msg00296.html>.

Hmm - no, I think the problem is the reference in the interactive form -
AFAIK, variables in interactive forms can't refer to the lexical
environment.  See Bug#51695.  I don't recall a nice solution for this
kind of problem (anyone?).

Michael.




reply via email to

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