From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id gFGsCT8nvmDRTgEAgWs5BA (envelope-from ) for ; Mon, 07 Jun 2021 16:03:43 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id aCn7BD8nvmCWQAAA1q6Kng (envelope-from ) for ; Mon, 07 Jun 2021 14:03:43 +0000 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 1423423588 for ; Mon, 7 Jun 2021 16:03:42 +0200 (CEST) Received: from localhost ([::1]:33110 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lqFqt-0005nf-MJ for larch@yhetil.org; Mon, 07 Jun 2021 10:03:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52286) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqFo1-00038N-KR for emacs-orgmode@gnu.org; Mon, 07 Jun 2021 10:00:41 -0400 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:41135) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqFny-0005OL-8u for emacs-orgmode@gnu.org; Mon, 07 Jun 2021 10:00:41 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 36AD91B23 for ; Mon, 7 Jun 2021 10:00:35 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Mon, 07 Jun 2021 10:00:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=l/SeqkqhRyv4XAg+lC72Vt27EHxOumbI8RLBBes2t 18=; b=EXm7O55ggKmgQMJ1gbTGYuDYKzcMTvj1Pryt1Qha+m2pa3ETUzBpvABvy LL9dHneAk8E1zUtE2j8L5dVJV/gOVRCY8V9SuUt3O9rL+uqBUEqK4CVbT5aQhJLA iA390oOZToO3GS5qBJf5FHLpiN9n22u+NfhWvM11ZQ4Wx8X/QxCtFAMytgaXrh8W X5gfJjI3vs0vLqngkldCLzhzGi93SAKjlqkIwlGeg9XO7LGf59I/43oPkPOAvw/K dL/jvUP4SLBcZXiIJXOl5lpR2SMGxwjgbn0SyjjolHqXqgBEuzLYcPceVcMFR/kC RzfzWprEJZLqXSe7E9cMSVYlPLlCw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfedtjedgjeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtje ertddtfeejnecuhfhrohhmpefpihgtkhcuufgrvhgrghgvuceonhhitghksehnihgtkhhs rghvrghgvgdrtggrqeenucggtffrrghtthgvrhhnpeffkeffheeikeffjeettdehteeiff dthedvvdfhiefgieduhfejtdegvdejhfevudenucevlhhushhtvghrufhiiigvpedtnecu rfgrrhgrmhepmhgrihhlfhhrohhmpehnihgtkhesnhhitghkshgrvhgrghgvrdgtrg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Mon, 7 Jun 2021 10:00:34 -0400 (EDT) Subject: Re: Hiding results using :post To: emacs-orgmode@gnu.org References: From: Nick Savage Message-ID: <4a32c014-cc70-f71d-aadf-f830bf5b8af8@nicksavage.ca> Date: Mon, 7 Jun 2021 10:00:34 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Received-SPF: none client-ip=64.147.123.19; envelope-from=nick@nicksavage.ca; helo=wout3-smtp.messagingengine.com X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1623074622; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=l/SeqkqhRyv4XAg+lC72Vt27EHxOumbI8RLBBes2t18=; b=qpxXAqY+T0c1PG4LOnlr7217kciqJlQRQ3uAVpKcfq9kBwZIIwNBYzIKd860ZlANu1Apyz oINK1cSOrgl5bjsTDzVW9dwEmWW1hKCZV5P9B37a/7cKDaI9LQ53yTI8BAQiLTh22xl6kd /AxJ5mui2ht/JYOmRgXs1Tgi58JUHtLkumKfKZxHboqWS9CZbpsbpHFz3rlHRX/91BupAZ +poJsru97AQc0CM0f56lHULd2HE1ojNKLmtU7DZ3CRlN4w8rIb1RCLjTgpkZPzsR7Sy8jJ ymnrfwbmr9YlMRIvvqBjyT8unqOYopOKweoSKWctJ18I07QrVnRat3zh5m6kvg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1623074622; a=rsa-sha256; cv=none; b=jklCt7euM3QSzofIwdwtYlOQn2hWCQPhjR22obVjqNkTxDapLVqxFoU5OqYFbTXRxHp7JX P/fDpcKJfGdyvTOZxB5jyXiBgWvxwTyJjH4O4vNX44BGhTllCAajOfPlSxSIX8TnMiKfKp ZY3lv37raY3iHxQ0jf37SHtX42ifmJGQTpTHxZPH+Zw//MU//WGCho0MndNYcHUZMKz+5W Ga4ONUvmUcsrU2xDqpxEIZtUaugFt2l/WvDghRDnICKFXkHAZGvVtiHGJShvWLs5V/aGkE +iQnYYy5hW9qMp8cWxKf3YClpnSdOQYk+bEM/8j7rYU2GlPAR6RLfYuLkuUO5Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=EXm7O55g; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -1.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=EXm7O55g; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 1423423588 X-Spam-Score: -1.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: JH0/kYiWIqui My initial thoughts are that this is very possible. This might be an area where we could add a new defcustom on always hiding the results to allow the user to choose it. Without looking at the code, I think it would be pretty straight forward to make an excursion to the results line, toggle showing it, then going back to where the point was. I can take a crack at a patch in the next day or so if no one else wants to or gets there first. On 6/7/21 8:51 AM, Roger Mason wrote: > Hello, > > I'd like to be able to hide results, for example when I expect the > them to span many lines. I know I can hit =tab= on the #+RESULTS: line, > but I'd like to be able to set this automatically. > > My most recent effort: > > #+name: hideresults > #+begin_src emacs-lisp :results none :exports none > (add-to-invisibility-spec '(org-babel-hide-result . t)) > #+end_src > > run like this > > #+header: :engine postgresql :dbhost "localhost" :dbuser "rmason" :database "test" :colnames yes > #+header: :post hideresults > #+name: pgquery > #+begin_src sql > select timestamp,nempty0 from settings where timestamp like '%20210528%' > #+end_src > > produces > > #+RESULTS: pgquery > : nil > > I'm sure there is a way to do this, but I need some pointers as to how. > > Thanks for any help. > > Roger > > Org mode version 9.2.3 (release_9.2.3-390-gfb5091 @ > /home/rmason/.emacs.d/org-git/lisp/) > > GNU Emacs 27.2 (build 1, amd64-portbld-freebsd11.4, X toolkit, cairo version 1.16.0, Xaw3d scroll bars) >