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

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

bug#33375: 27.0.50; Nested function definitions


From: Noam Postavsky
Subject: bug#33375: 27.0.50; Nested function definitions
Date: Thu, 15 Nov 2018 07:36:43 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

Andreas Röhler <andreas.roehler@easy-emacs.de> writes:

> What puzzles me when evaluating:
>
>
> (setq a (foo2))
> a ==> foo3
> (call-interactively 'foo2) ==> foo3
>
> But M-x foo2 RET messages "Foo2"

The last value form in `foo2' returns `foo3'.  The last `message' call
displays "Foo2".  Calling a command via M-x doesn't use the return
value, so you see only the last message.  Note that evaluating (foo2)
also messages "Foo2" (you can see it in *Messages*), it's just covered
by the subsequent message showing the return value.






reply via email to

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