From: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
To: Michael Heerdegen <michael_heerdegen@web.de>
Cc: 25117@debbugs.gnu.org
Subject: bug#25117: 25.1.90; Result of called-interactively-p differs WRT file contents
Date: Mon, 5 Dec 2016 17:58:38 +0100 [thread overview]
Message-ID: <01a3dabd-7fc1-7fe7-c066-15b0c02008d5@easy-emacs.de> (raw)
In-Reply-To: <87wpfez6vu.fsf@web.de>
On 05.12.2016 17:18, Michael Heerdegen wrote:
> Andreas Röhler <andreas.roehler@easy-emacs.de> writes:
>
>> (defun foo ()
>> (interactive)
>> (let ((iact (called-interactively-p 'any)))
>> (message "%s" iact)))
>>
>>
>> Code above returns t when run in an otherwise empty buffer.
>> However when evaluated inside
>>
>> https://github.com/emacs-berlin/syntactic-close/blob/master/syntactic-close.el
>>
>> it returns nil. Checked at the beginning resp. end of this file.
> What does "when evaluated inside" mean?
Writing the example-code in the file and evaluate it.
BTW it's about messaging the value of `iact', not the return value.
Use-case is to see inside nested functions if the initial call was
interactive, by handing over that argument `iact'.
next prev parent reply other threads:[~2016-12-05 16:58 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-05 13:01 bug#25117: 25.1.90; Result of called-interactively-p differs WRT file contents Andreas Röhler
2016-12-05 16:18 ` Michael Heerdegen
2016-12-05 16:58 ` Andreas Röhler [this message]
2016-12-05 16:58 ` Michael Heerdegen
2016-12-05 17:18 ` Andreas Röhler
2016-12-05 17:39 ` Michael Heerdegen
2016-12-05 18:23 ` Andreas Röhler
2016-12-05 19:08 ` Noam Postavsky
2016-12-05 19:38 ` Andreas Röhler
2016-12-05 19:34 ` Noam Postavsky
2016-12-05 19:52 ` Andreas Röhler
2016-12-05 19:51 ` Noam Postavsky
2016-12-05 20:09 ` Andreas Röhler
2019-10-20 21:34 ` Lars Ingebrigtsen
2019-10-21 9:15 ` Michael Heerdegen
2019-10-21 12:21 ` Stefan Monnier
2019-10-21 13:21 ` Michael Heerdegen
2022-04-18 11:24 ` bug#25117: 25.1.90; `called-interactively-p' from edebug with lexical-binding always gives nil Lars Ingebrigtsen
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=01a3dabd-7fc1-7fe7-c066-15b0c02008d5@easy-emacs.de \
--to=andreas.roehler@easy-emacs.de \
--cc=25117@debbugs.gnu.org \
--cc=michael_heerdegen@web.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).