emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] [PATCH] Add :eval only-manual to babel blocks


From: Nicolas Goaziou
Subject: Re: [O] [PATCH] Add :eval only-manual to babel blocks
Date: Wed, 16 Oct 2019 12:38:40 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)

Hello,

Ken Mankoff <address@hidden> writes:

> Hmm. So it turns out (I think) this patch isn't necessary. The
> behavior I wanted and thought I implemented is actually the default
> behavior! I think the behavior is undefined for :eval not equal to
> "yes", "no", or "query", but the current undefined implementation does
> what I want.

Note that what you want, i.e., to distinguish behaviour depending on the
location of the call stack is cheesy, at best. Think about macros,
user-defined functions, etc.

The Emacs' answer to this is usually to check if call to a function is
interactive, or not.

So, if you want to implement it properly, you may want to look into that
direction.

Of course, meawhile, do not rely on undefined behaviour :)

Regards,

-- 
Nicolas Goaziou



reply via email to

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