From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Mankoff Subject: Re: [PATCH] Add :eval only-manual to babel blocks Date: Wed, 16 Oct 2019 13:36:28 +0200 Message-ID: <878spk7whv.fsf@gmail.com> References: <87v9srdcqe.fsf@gmail.com> <87h849b4z6.fsf@gmail.com> <87r23d9dqn.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:43387) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iKhbb-0007gc-Kq for emacs-orgmode@gnu.org; Wed, 16 Oct 2019 07:36:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iKhba-0006ul-AZ for emacs-orgmode@gnu.org; Wed, 16 Oct 2019 07:36:39 -0400 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]:46048) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iKhba-0006uV-4b for emacs-orgmode@gnu.org; Wed, 16 Oct 2019 07:36:38 -0400 Received: by mail-wr1-x444.google.com with SMTP id r5so27591976wrm.12 for ; Wed, 16 Oct 2019 04:36:37 -0700 (PDT) In-reply-to: <87r23d9dqn.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou Cc: Org Mailing List Hi Nicolas, On 2019-10-16 at 12:38 +02, Nicolas Goaziou wrote... > 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. Yes, it felt a bit hackish. But I'm new to this level of Org coding. > The Emacs' answer to this is usually to check if call to a function is > interactive, or not. Can you provide a more obvious hint? :) I've read the documentation on called-interactively-p but have not had success yet with that function. The bottom of that doc string suggests this is not an appropriate use for it. I've read the manual part on "Distinguish Interactive Calls"[1] but working through those examples I can't get deeper called functions to know if the nth-parent was called interactively or not. Would you solve this issue somewhere completely different? Like an advice around the org-ctrl-c-ctrl-c function or something? Thanks, -k. [1] https://www.gnu.org/software/emacs/manual/html_node/elisp/Distinguish-Interactive.html