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

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

Re: A way for interactive to modify a let-bound variable?


From: Michael Heerdegen
Subject: Re: A way for interactive to modify a let-bound variable?
Date: Fri, 12 Feb 2016 20:12:46 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.90 (gnu/linux)

Kaushal Modi <kaushal.modi@gmail.com> writes:

> It's a bit tricky if I put let inside interactive. If I do that, the let
> form has to return the list that interactive needs. But I also need the
> let-bound msg variable after calling (apply orig-fun args). So that
> implies
> that I would need something like (interactive (let (msg) .. (apply
> orig-fun
> args) (message msg))), which does not look right (and also does not work).

Eh, no, that's nonsense.  I didn't fully understand what you wanted.  It
is not possible to bind a variable in the interactive spec and refer to
it in the body.

But your last version with `prog1' is ok.  Are you happy with that one?

Michael.




reply via email to

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