unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Noam Postavsky <npostavs@gmail.com>
To: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
Cc: 33375@debbugs.gnu.org
Subject: bug#33375: 27.0.50; Nested function definitions
Date: Thu, 15 Nov 2018 07:36:43 -0500	[thread overview]
Message-ID: <87d0r6h604.fsf@gmail.com> (raw)
In-Reply-To: <c56e598e-92c9-9e7e-60a2-ec46a0bac8c9@easy-emacs.de> ("Andreas \=\?utf-8\?Q\?R\=C3\=B6hler\=22's\?\= message of "Thu, 15 Nov 2018 08:01:41 +0100")

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	other threads:[~2018-11-15 12:36 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-14  9:39 bug#33375: 27.0.50; Nested function definitions Andreas Röhler
2018-11-14 10:06 ` Andreas Röhler
2018-11-14 11:46   ` Andreas Röhler
2018-11-14 15:40   ` Eli Zaretskii
2018-11-15  7:01     ` Andreas Röhler
2018-11-15 12:36       ` Noam Postavsky [this message]
2018-11-15 15:04         ` Andreas Röhler
2018-11-15 15:05           ` Eli Zaretskii
2018-11-15 15:14             ` Andreas Röhler
2018-11-15 15:21               ` Andreas Röhler

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d0r6h604.fsf@gmail.com \
    --to=npostavs@gmail.com \
    --cc=33375@debbugs.gnu.org \
    --cc=andreas.roehler@easy-emacs.de \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).