From: Shiyao Ma <i@introo.me>
To: help-gnu-emacs@gnu.org
Subject: How to stop from loading a script?
Date: Wed, 21 Oct 2015 04:35:26 -0700 (PDT) [thread overview]
Message-ID: <18d6c0ca-1d0f-4d17-8267-e3de2a4b7a45@googlegroups.com> (raw)
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.
next reply other threads:[~2015-10-21 11:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-21 11:35 Shiyao Ma [this message]
2015-10-21 12:13 ` How to stop from loading a script? Joost Kremers
2015-10-21 13:11 ` Pascal J. Bourguignon
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=18d6c0ca-1d0f-4d17-8267-e3de2a4b7a45@googlegroups.com \
--to=i@introo.me \
--cc=help-gnu-emacs@gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.