From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 8FuwIQ4rHGM9fQEAbAwnHQ (envelope-from ) for ; Sat, 10 Sep 2022 08:13:34 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id qK3OIQ4rHGPpGwEA9RJhRA (envelope-from ) for ; Sat, 10 Sep 2022 08:13:34 +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 4900518F06 for ; Sat, 10 Sep 2022 08:13:34 +0200 (CEST) Received: from localhost ([::1]:58404 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oWtkD-0004Hm-2C for larch@yhetil.org; Sat, 10 Sep 2022 02:13:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59750) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oWtfW-00014K-5a for emacs-orgmode@gnu.org; Sat, 10 Sep 2022 02:08:43 -0400 Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]:39694) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oWtfU-0002SL-G1 for emacs-orgmode@gnu.org; Sat, 10 Sep 2022 02:08:41 -0400 Received: by mail-pj1-x102c.google.com with SMTP id u9-20020a17090a1f0900b001fde6477464so7299367pja.4 for ; Fri, 09 Sep 2022 23:08:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date; bh=V7GSCfhvecZQgBa7ic7rhTUNFrL0H36xaZIvDPlHI5s=; b=EOdd19CoXHlnDB0FVqtTbBV1w0Dif8W1G9N2UGNy82/AkzRd6rlVEQmAprEpHxYjCD UwwyXFPne9av5NSzLdSpGTrVciejSWM+H6hqySXJ4eMg0BkJ+JSz9HuY2DXi9l25o/I0 3CBe9znNfhMD8Qp8IDUGrL/elQJ66LqxLthorcDbE4zCfu9oC82ltj5MjfZX9LnCGHfT q6N8zGvXwNNmaGeN5VJ8UKrIH7CRky0FVOw9wtaAZ+IMsNxa0BiDBUBtobeWRQVPHDpa FBxVW7zV9mdn/8iKIhWlyoVcYv/2o6VpoYNoxnO2AizBTJDFhHsNBm8Av+bsE/GX7Kqp Upug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date; bh=V7GSCfhvecZQgBa7ic7rhTUNFrL0H36xaZIvDPlHI5s=; b=c3402+qcNohln1QLbr1N/4G49OPiL/SeFyNOJLj97wCEVASHpBUtP9SzXEpHxvQvFo /jaemmV0RDaqCJ/8+esnZKMSVkH6PwzU3IN771EJ5KswbeJE1qZIIkzFDPjgnFNeWU3s CXApb4YMPOWJwx8/iQQeJsHWlvEMlMPRGwzdWQDou7kuX6vAn0YxmTilE28daF2CR8JN 1F74okT3R7bXG7JuSOsVkyDkXQetbYPs2bPDhTgjycsHCdgOSMXa0fYYYUmzs+DH3pio guY3NcSjTcETZjVslWI1nhryeZ/XdvbeA12XKxwxoykgbOyKD8iU6ybpvEGtmz9hmSk8 EpfQ== X-Gm-Message-State: ACgBeo0byNIk9Yyopt7MCCulgIBZ/XxCoMCTiCDRs0vPAHT13a8j7Bia aC8Q7vPuvhARpXLD+b3T7FM= X-Google-Smtp-Source: AA6agR6/WPnxT3H9hxuu90RqZptRWecy4ph3Lu9IkbvE6XHlJ7oEfhzhEC7750ze4cH6lsK8TEcT2A== X-Received: by 2002:a17:902:bd08:b0:16d:4230:cb45 with SMTP id p8-20020a170902bd0800b0016d4230cb45mr17047462pls.59.1662790119037; Fri, 09 Sep 2022 23:08:39 -0700 (PDT) Received: from localhost ([1.83.154.15]) by smtp.gmail.com with ESMTPSA id j21-20020a17090a841500b00200202a1a15sm1323918pjn.31.2022.09.09.23.08.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Sep 2022 23:08:38 -0700 (PDT) From: Ihor Radchenko To: Felix Dorner Cc: emacs-orgmode@gnu.org Subject: Re: Call code block via link? In-Reply-To: References: Date: Sat, 10 Sep 2022 14:09:33 +0800 Message-ID: <875yhvzroi.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::102c; envelope-from=yantar92@gmail.com; helo=mail-pj1-x102c.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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=1662790414; 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=V7GSCfhvecZQgBa7ic7rhTUNFrL0H36xaZIvDPlHI5s=; b=egkmzjpXYw6v39skn+jZHzouqml7HH4YbIbkUPveDY3k376p1n6db0d8hsLcAAvJ4fJ8Sp L9Nsk8K6uzCyb+k68bcy8Bg5p2yn1Mn4RNxjvlW4dkEXydNEykODHrZTOjXWDVlQKSaR+E aQU/INWVS0BFGlibXcezrpXVEUoQXH59IHcKzFM1kKl0qnMR0iN/q5JBAdflGyKKHcdN/4 lPkUxqhUz3SSQ0p1AfGTsC77VWbX0GNpRUUZGykOD3DdYBdiHgzGs+xfVLKm8MGwfNOlTV xfTXDJ4vrC4gOcjf1Yh5wZc1o+utv9q60ho5SoD52iuPy/gfAIglbEDSCOyXxA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1662790414; a=rsa-sha256; cv=none; b=CYbK5f3WlVpsYajCvNx+HZs/nZ4yyleoZomCczR4QYdwKMEWY9QlEyJQ88XGMqUOsBbPzD TT+iOQ5h7DFakcTOm9qOISA9RVFxv4OYprdS6O83mbk60Wsa5ye8vkfSBaBs2H/4Qiym7Y UgdQw8zFybEIhMjkAP8Bu6fa8SjvcTY+GgAxt12nLM0Q+Ym6lKsFnZub5M0kdk8/TvRJnV xfzOvJ7BIt2SPKZQ+eXXp6ptkOuojovf5DW+T94rQh4f8NnOFdrvZvoLIYMIX75hNgiF8S b847n31Ht+EhWAlmJ1jtLltWfA0OtzUW0u+MOKhrJthcnQ4urJjI9ctR09Wwrg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=EOdd19Co; dmarc=pass (policy=none) header.from=gmail.com; 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: -0.79 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=EOdd19Co; dmarc=pass (policy=none) header.from=gmail.com; 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: 4900518F06 X-Spam-Score: -0.79 X-Migadu-Scanner: scn1.migadu.com X-TUID: ZKsg0dGzTeAc Felix Dorner writes: > I have a silenced codeblock, that I postprocess to push the result (a > password) onto the kill-ring, and then returns "Password copied" (showing > in the status line). This works very nicely. I'm now looking for the cherry > on the cake: I'd like to render the #+CALL as a link, e.g. something like, > [Copy the secret thing]. Clicking/following the link would execute the call > and my password ready to paste elsewhere. Feasible? You can use inline babel call. See https://orgmode.org/manual/Evaluating-Code-Blocks.html#Evaluating-Code-Blocks If you want link specifically, see https://github.com/yantar92/emacs-config/blob/master/config.org#src-block-links -- Ihor Radchenko, Org mode contributor, Learn more about Org mode at https://orgmode.org/. Support Org development at https://liberapay.com/org-mode, or support my work at https://liberapay.com/yantar92