From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id MDpHHIZXfmKMJwEAbAwnHQ (envelope-from ) for ; Fri, 13 May 2022 15:05:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id SBdnG4ZXfmJeiAAAG6o9tA (envelope-from ) for ; Fri, 13 May 2022 15:05:10 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7A2523A351 for ; Fri, 13 May 2022 15:05:07 +0200 (CEST) Received: from localhost ([::1]:47368 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1npUye-0001qu-E1 for larch@yhetil.org; Fri, 13 May 2022 09:05:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33890) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1npUq9-0001Lo-VA for emacs-orgmode@gnu.org; Fri, 13 May 2022 08:56:17 -0400 Received: from mail-qt1-x835.google.com ([2607:f8b0:4864:20::835]:47067) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1npUq7-0004Un-FB for emacs-orgmode@gnu.org; Fri, 13 May 2022 08:56:17 -0400 Received: by mail-qt1-x835.google.com with SMTP id u35so6688107qtc.13 for ; Fri, 13 May 2022 05:56:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:references:user-agent:from:to:cc:subject:date:in-reply-to :message-id:mime-version; bh=+omxHESNlcBY4PbvGLJBYNlwILKlBqD5rrhH8BBTlpk=; b=gFnn3GZgveRbeSk4lFdKA0BfMf3yAOAmncPCC0UQu2Su7VEAjftY1J+xnsML5o93tB t5vNV8t8dp+Imdv/78LoJO7BqMCbzw/ilSS5nbuaM1wq4ikZTnhDN3obBPV1H12U95Fy OF28OjNVx3x89P/ARN+E0XuSgpon/9+sEAEGjsMOFN45BF2Nd2MKnk5qj8ksL8z+xI3v G9BqRjag6VQQ1rkoUhcPWCn3Z/J3tZQHkvzJz13VilYHhdBmfHwGvMKQNBeBfejSZv/W p88hU39C7EPAKXHAgB/UbY7zudbDcK70KvEYFAsQgfok3BR5Sm90FKlnXxOjEr0OAY/b m2zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:references:user-agent:from:to:cc:subject :date:in-reply-to:message-id:mime-version; bh=+omxHESNlcBY4PbvGLJBYNlwILKlBqD5rrhH8BBTlpk=; b=twL8BPu0WAmguzTjrqAWmtxpK8BrZxNFSfeyxqbxJ6iCO487CG6LnL2gzn/mYf6/Ky fyWBfBDOOCcDQ8N6m9oO8OhVxVfrZe3+6eyDaWUrQN3ZDQ5ENj6W+9ifu9JgIHj3bLBC 4dk1Bg8apEeBE2nqxzjl9+CSmQp/hv0tnNcQbEgB62fgf0vQIFR7iwuOV0VVMaGbSvfL ispo+0tGriNZVcEjX8J1mjMn9973Adlhs/9ThXHUd6uN8LnT7n8A/fosvwBSEQCy3aQr 0/8mYzz4tpDLFe4UnxJIz8osJQSW3g3iRczbezFJG6xvqIg+EG/4Of68VpVxkKvi8MRq A8yg== X-Gm-Message-State: AOAM533Rg4HJe/3B4WjioFHbvRwue6zAPewiw92Ix66HGzP8wm1JNpal hv+z37wAPfDeaKZ3f0sRT/gszv0H2MY= X-Google-Smtp-Source: ABdhPJzayROWB8w4P2mju39e63hndIuAOMB58H48F5SUt6A6fcgy415jcppl4Br6bp2OPmXbynHemQ== X-Received: by 2002:ac8:7fd1:0:b0:2f3:dddb:4206 with SMTP id b17-20020ac87fd1000000b002f3dddb4206mr4273065qtk.11.1652446573390; Fri, 13 May 2022 05:56:13 -0700 (PDT) Received: from Johns-iMac.local ([2601:547:901:82e0:3d46:e063:d095:2dcf]) by smtp.gmail.com with ESMTPSA id l21-20020ac87255000000b002f3f478eaa9sm1350080qtp.50.2022.05.13.05.56.12 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 May 2022 05:56:13 -0700 (PDT) References: <21F026ED-1504-4F33-B596-769CD294AC4A@berkeley.edu> <877d6rhxcf.fsf@localhost> <8735hdr5ss.fsf@localhost> User-agent: mu4e 1.6.10; emacs 28.0.90 From: John Kitchin To: Ihor Radchenko Cc: Richard Stanton , emacs-orgmode@gnu.org Subject: Re: How to stop results being hidden when using ":results drawer"? Date: Fri, 13 May 2022 08:46:47 -0400 In-reply-to: <8735hdr5ss.fsf@localhost> Message-ID: MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::835; envelope-from=johnrkitchin@gmail.com; helo=mail-qt1-x835.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1652447110; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=+omxHESNlcBY4PbvGLJBYNlwILKlBqD5rrhH8BBTlpk=; b=UBDmp6ASlWVVJRdkm8uQ+5gIwZtz/KeLD4ttROaM87Y9IfrQZgLZG7sr+2kRZM8G077gO1 eb0PZ3GnmlHAnp8jmULUTsUVD/N4RO1t7wstlpBmlctF3qTnzpR7yhThb4AeZQGq+JUmeo yg2EeRsz1I9Vwols05Vuq4zNuoBgS5jd1D1GvDT34mvCdPlsKVDkpUl7fYtXQcPY7Z1pN+ YIUOzKy3pN/OUt/uBhEiAmooviD1tOfH2lQ34jfIv8JHDkkffSGhmwemY/1bbObWR4V60i jSOWp8wXlSzQvwyGmr9oQWNWgoQeBBfnh0o5qqRkqJ4YmP0RWxQC4xt/OAgesA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652447110; a=rsa-sha256; cv=none; b=cUfi4Wjm9t4pEDT8P5xZTEqIDoPpmVPzqLZ/fd89VqK53g9bLQHGBvVvjCPADMtQWK9um1 dKvQWZlhtFptyk/q91Mg1J5Q6vGQMEkbV7T5vF7tM1CIj+fhmSVdx1Yg6YREtNa5zL5ZUJ Mk9kTtKIrxAq3nv71AaFkv0DGYpTip/nrrF8127tApRMgp+TaTHAKtDCDmcXHT/wtSUqYD PZtXWKyoxj3iA9xwtDUmQ+LOUBC/vWhDJX1XzNgc32cCBbNcBZXMNvGnDTP6CY1Vz7U2Z6 fB6kYo9f3kkwGOWNirWz8Ld4sve/qZnyK/285nJkOMcxaXacatnIrzCni63/hA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=gFnn3GZg; dmarc=fail reason="SPF not aligned (relaxed)" header.from=andrew.cmu.edu (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 5.58 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=gFnn3GZg; dmarc=fail reason="SPF not aligned (relaxed)" header.from=andrew.cmu.edu (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 7A2523A351 X-Spam-Score: 5.58 X-Migadu-Scanner: scn0.migadu.com X-TUID: kotrkPpcjKRn If you add this and click on it: [[elisp:(org-show-entry)]] The drawer will collapse. This issue is specific to using a scimax function `scimax-ob-execute-and-next-block` that executes the current block then moves to the next or creates a new block if needed. This is a UI feature from jupyter notebooks that I like to use. That function uses `(org-babel-next-src-block)`, which uses org-next-block, which calls org-show-context, which uses org-show-set-visibility, which calls org-show-entry, which hides the drawers. It isn't an org-core issue perhaps, other than it is not obvious why org-show-entry has a hard-coded line to hide drawers in it. Ihor Radchenko writes: > John Kitchin writes: > >> This does not change anything for me. >> >> The function that causes folding for me is `org-entry-show'. Presumably >> because of this line: (org-cycle-hide-drawers 'children) >> >> My solution was an override advice that makes this function not run when >> point is in a src-block >> (https://github.com/jkitchin/scimax/blob/master/scimax-jupyter.el#L281). > > Could you elaborate? I am not sure how `org-entry-show' has anything to > do with hiding results. > > I tried the following Org file with latest Org main (after (require 'ob-python)): > > * test heading > > #+begin_src python :results drawer output > print(1+2) > #+end_src > > #+RESULTS: > :results: > 3 > :end: > > The drawer does not get hidden. > > Best, > Ihor -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu Pronouns: he/him/his