unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Heerdegen <michael_heerdegen@web.de>
To: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
Cc: 25117@debbugs.gnu.org
Subject: bug#25117: 25.1.90; Result of called-interactively-p differs WRT file contents
Date: Mon, 05 Dec 2016 17:18:45 +0100	[thread overview]
Message-ID: <87wpfez6vu.fsf@web.de> (raw)
In-Reply-To: <5cd2a353-4594-52bd-6a70-7efa5145e2f3@easy-emacs.de> ("Andreas \=\?utf-8\?Q\?R\=C3\=B6hler\=22's\?\= message of "Mon, 5 Dec 2016 14:01:40 +0100")

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?  Can you give a more concrete
recipe?


Regards,

Michael.





  reply	other threads:[~2016-12-05 16:18 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 [this message]
2016-12-05 16:58   ` Andreas Röhler
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=87wpfez6vu.fsf@web.de \
    --to=michael_heerdegen@web.de \
    --cc=25117@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).