From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 1cVWF4sHqGAO6QAAgWs5BA (envelope-from ) for ; Fri, 21 May 2021 21:18:35 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id +MxzEosHqGA5QAAAB5/wlQ (envelope-from ) for ; Fri, 21 May 2021 19:18:35 +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 B3DDC2116E for ; Fri, 21 May 2021 21:18:34 +0200 (CEST) Received: from localhost ([::1]:43890 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lkAfI-0001vf-BD for larch@yhetil.org; Fri, 21 May 2021 15:18:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38238) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lkAev-0001vK-E9 for emacs-orgmode@gnu.org; Fri, 21 May 2021 15:18:09 -0400 Received: from forward106o.mail.yandex.net ([37.140.190.187]:56519) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lkAeo-0001k3-Gs for emacs-orgmode@gnu.org; Fri, 21 May 2021 15:18:09 -0400 Received: from myt6-5c8bb24560be.qloud-c.yandex.net (myt6-5c8bb24560be.qloud-c.yandex.net [IPv6:2a02:6b8:c12:299e:0:640:5c8b:b245]) by forward106o.mail.yandex.net (Yandex) with ESMTP id E1F1150610B7 for ; Fri, 21 May 2021 22:17:56 +0300 (MSK) Received: from myt4-1dda227af9a8.qloud-c.yandex.net (myt4-1dda227af9a8.qloud-c.yandex.net [2a02:6b8:c00:3c83:0:640:1dda:227a]) by myt6-5c8bb24560be.qloud-c.yandex.net (mxback/Yandex) with ESMTP id pRxXIBadBR-HuKKfjSb; Fri, 21 May 2021 22:17:56 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1621624676; bh=fSTyaSMljZ1rHayd95eS6ro5FDpfmRzdsbJQFGRLtWM=; h=In-Reply-To:Subject:To:From:Message-ID:Cc:Date:References; b=dztPs/HSw5eYAE/1VZrHAwfes+my5/SxvsuWhuWFnomRdZXIbPUhytWSf+cp74Qx0 deYqWllPjY4lEHuVjeOWaIz/AT02XASUgP51zqUN+btjRa0rTK6yf9o/LjzCvqepFW WSitNP6atZcKSBwbe3e8caiuy9POlKKfi+6GWuhM= Received: by myt4-1dda227af9a8.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id I9jU2t4M1m-HtLGntT8; Fri, 21 May 2021 22:17:55 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) From: Colin Baxter To: emacs-orgmode@gnu.org Cc: Subject: Re: execute elisp link without prompt References: <87zgwoqd79.fsf@yandex.com> <87wnrsuk3y.fsf@nicolasgoaziou.fr> X-Face: BHjiJOg/Qmj'BQgsAKL@])L)e62P)C"Y=6T Date: Fri, 21 May 2021 20:17:54 +0100 In-Reply-To: <87wnrsuk3y.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Fri, 21 May 2021 18:28:33 +0200") Message-ID: <8735uf28wt.fsf@yandex.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Face: iVBORw0KGgoAAAANSUhEUgAAAEkAAAATAgMAAAChCMjeAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACVBMVEX/zAABCWP///8I RHjYAAAAAWJLR0QCZgt8ZAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB+UFEAk5BvqS634A AAAbSURBVBjTY2BgCA1hYA0FAxDDgQEERsXoIAYA2F9Eb3cpB+AAAAAldEVYdGRhdGU6Y3JlYXRl ADIwMjEtMDUtMTZUMTA6NTY6MTcrMDE6MDCh/kkpAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIxLTA1 LTE2VDA5OjU3OjA2KzAxOjAwTyZ6HwAAAABJRU5ErkJggg== MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=37.140.190.187; envelope-from=m43cap@yandex.com; helo=forward106o.mail.yandex.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-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=1621624715; 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=fSTyaSMljZ1rHayd95eS6ro5FDpfmRzdsbJQFGRLtWM=; b=Gm3WDvEDgD7yP0rPVQ5VDIRh/uO/XRXUZGbzJxKoOK/JIZadHGVhYANms+8GGeKoFH8A+b HJLUaVtf1cDBv3i+a/awJUJJE3dlzj4GgIixeuOUFhxIaj00MUMDFoczIXls/k9Vllxz9g 94gBfVyWN5ETEeEuPbc8TpjWLVKO5GzYJ30feTCoHGbgj5Xlp6SBLQD/y0X62xkNf2mPyd weN0hmJyUqfOQKpQl3/o4CwBjFJBqYQYb0y9IwFlVd4tDnCLDzXj2cSiAsk2GAGG53Ajoe Ntsu3Sr7CLeoM9EdOUFTrWZ0h2k8j1/rzEfnU4goRmMmqI9xI/r2uR9Um8tSgg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621624715; a=rsa-sha256; cv=none; b=PqE15Mtq97k52O0pRmHPqT6paox1tDxdZDjyrBF/IJbO/4V3QhOxWJT6Whg5A027b4g7YL U35yvS2pOC1NsagykJB9mQebUXSKYuU8HgRHq96W4umOnqgSISB+rvMZna2iziUaJ4iRYk /99WZ29YVSfjruOnwEQ/9EPLQYNy5nLXpjAbB4HkY/ORVEQRbutBjCZYiyz73YOV3AiuPd Mk6Ln/R7GEp1I6+FZeYG4dD6H5qvVwcaVpHblfJ/jKtAy/s2+c3luU4mpawjLJfqok/E8F sOroXrtvkCLij/64KYd+9FsXeliuWMEeEEJP1D5jOJ5t0oKN4bWBpKRTpkrf2A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=yandex.com header.s=mail header.b="dztPs/HS"; 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: -3.14 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=yandex.com header.s=mail header.b="dztPs/HS"; dmarc=pass (policy=none) header.from=yandex.com; 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: B3DDC2116E X-Spam-Score: -3.14 X-Migadu-Scanner: scn0.migadu.com X-TUID: G9oUFiZ/9Zos Dear Nicolas, >>>>> Nicolas Goaziou writes: > Hello, Colin Baxter writes: >> I have an elisp link of the form (without spaces, of course) [ >> [elisp:(dired-other-window "/path/to/directory/") ][ Directory ] >> ]. >> >> The link works with the directory in appearing in dired >> window. However, when I first click on the link, a dialog box is >> brought up asking me if a I wish to execute the command. Of >> course, I do - and I click 'Yes'. >> >> How can I go to link directly without being interrogated by the >> dialog box? > See org-link-elisp-confirm-function. Thank you. I tried setting 'org-link-elisp-confirm-function' to y-or-n-p as suggested by ol.el, but it gave me a dialog box, as before, which I had to click. In the end I've set as to nil as a local variable: #+begin_src elisp eval: (set (make-local-variable 'org-link-elisp-confirm-function) nil) #+end_src The doc-string says it's risky when used as a local variable, but it seems to work. The variable returns to the global default 'yes-or-no-p' when the buffer is killed. Best wishes,