unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How to stop from loading a script?
@ 2015-10-21 11:35 Shiyao Ma
  2015-10-21 12:13 ` Joost Kremers
  0 siblings, 1 reply; 3+ messages in thread
From: Shiyao Ma @ 2015-10-21 11:35 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

Say the caller will *always* load a script.

But inside the script, I'd like to *directly* return to the caller if some conditions are met.

A workaround is to wrap all the stuff in side a when/unless clause.

e.g.,


(unless (COND)

do-my-stuff)


However, the do-my-stuff is too lengthy and I am in search of the following form:


(when (COND)

EARLY_RETURN_TO_THE_LOADER)


(do-my-stuff).



So my question is, what should I fill in the EARLY_RETURN_TO_THE_LOADER slot?

Regards.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-10-21 13:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-21 11:35 How to stop from loading a script? Shiyao Ma
2015-10-21 12:13 ` Joost Kremers
2015-10-21 13:11   ` Pascal J. Bourguignon

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