From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [PATCH] Add :eval only-manual to babel blocks Date: Wed, 16 Oct 2019 12:38:40 +0200 Message-ID: <87r23d9dqn.fsf@nicolasgoaziou.fr> References: <87v9srdcqe.fsf@gmail.com> <87h849b4z6.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:36896) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iKgha-0002JE-A6 for emacs-orgmode@gnu.org; Wed, 16 Oct 2019 06:38:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iKghY-00083V-UD for emacs-orgmode@gnu.org; Wed, 16 Oct 2019 06:38:45 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:45511) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iKghY-00081j-Na for emacs-orgmode@gnu.org; Wed, 16 Oct 2019 06:38:44 -0400 In-Reply-To: <87h849b4z6.fsf@gmail.com> (Ken Mankoff's message of "Wed, 16 Oct 2019 08:05:01 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Ken Mankoff Cc: Org Mailing List Hello, Ken Mankoff 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