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

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

bug#25117: 25.1.90; Result of called-interactively-p differs WRT file co


From: Andreas Röhler
Subject: bug#25117: 25.1.90; Result of called-interactively-p differs WRT file contents
Date: Mon, 5 Dec 2016 17:58:38 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Icedove/45.4.0



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'.





reply via email to

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