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

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

Re: Is there a way to abort loading .el file on condition?


From: Noam Postavsky
Subject: Re: Is there a way to abort loading .el file on condition?
Date: Tue, 30 Apr 2019 12:51:08 -0400

On Tue, 30 Apr 2019 at 12:28, Tomas Nordin <address@hidden> wrote:
>
> Jean Louis <address@hidden> writes:

> > I would like to abort loading the .el file, the
> > ~/.emacs file on the condition

> > Is there a way that a condition is inserted on top
> > of the ~/.emacs file so that based on the version
> > information the file loading gets aborted?
>
> There is "non-local exits", but it is supposed to be used in relation to
> errors and wouldn't maybe feel right in this case.

I call keyboard-quit for this of thing (I abort when the server is
already running, which usually indicates I forgot the '-Q' when trying
to run 'emacs -Q'), which signals `quit' (which is not a subtype of
error, so it doesn't trigger the "An error occurred while loading..."
thing).



reply via email to

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