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

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

RE: How to exit function from inside its `interactive' call?


From: Drew Adams
Subject: RE: How to exit function from inside its `interactive' call?
Date: Wed, 6 Aug 2014 12:47:54 -0700 (PDT)

> how can I use catch/throw (or whatever) to exit function foo from inside
> its 'interactive call? All combinations I tried so far only exit
> 'interactive and still execute the function body.

(defun bar ()
  (interactive (top-level))
  (message "aaaaaaaaa"))

(defun foo ()
  (interactive
   (throw 'top-level 'HELLO))
  (message "JJJJJJJJJJJJJJ"))



reply via email to

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