From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id CFBXNxVxvGKaLgEAbAwnHQ (envelope-from ) for ; Wed, 29 Jun 2022 17:34:45 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 8Hg8NxVxvGKvRwAAauVa8A (envelope-from ) for ; Wed, 29 Jun 2022 17:34:45 +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 9515910513 for ; Wed, 29 Jun 2022 17:34:45 +0200 (CEST) Received: from localhost ([::1]:34806 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o6ZiG-00027W-Lu for larch@yhetil.org; Wed, 29 Jun 2022 11:34:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60320) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6Zg0-0008FM-1e for emacs-orgmode@gnu.org; Wed, 29 Jun 2022 11:32:24 -0400 Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]:33547) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o6Zfy-0002sv-6k for emacs-orgmode@gnu.org; Wed, 29 Jun 2022 11:32:23 -0400 Received: by mail-pl1-x62e.google.com with SMTP id n10so14503506plp.0 for ; Wed, 29 Jun 2022 08:32:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:references:user-agent:in-reply-to :message-id:mime-version; bh=tQJTIkcZkXqaiRFATFfD7U5S/j1dbsHZTMETH1ByXOM=; b=Rivt/tSKT7F6yN/30UhBi+6LXNpdqKSadEVH1XzbR8+5X586v320TYrECNxztO/RY3 CF6mwKk2TWspAQ64nEvrRJpd3quzT9uY9gbQvtYtWS2yCXxVXPbyegLRrT2xefnY3O4M NvdLM/0JsKCgsdFU09asYTmyBlFCVu/PqD2uNi4LiFi8+NxKuvA0HAxOioVUVL53gTeC ScOQBGCgATAyWt8T0MtOWrSPXQQMJkF/SmthHUp+eSxuUHRwQgyU8SMtiahrVQY5hgxB Q+TxaC2XCH2JlNCGXabwAikp2PGDEUILRqCj/xbdHGZzAkuwaSwrW7hfrJepqsuvJOSd OD2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:references:user-agent :in-reply-to:message-id:mime-version; bh=tQJTIkcZkXqaiRFATFfD7U5S/j1dbsHZTMETH1ByXOM=; b=5plCsxqfArtMDO8hJbtWhZ+MCutnytXDVxheN6GcLFiOxL80bt0cXpTeQ7b2p7p6Th I9xidWGwTOi0m+ZOWkD+Nb4wxsKe3mzTiAa8XuKuikgry46ye221lFuNgNqJPsr/475+ deG9VrvmcIaEUIpX3/EAIZW54ej5iQj/NSmB3zJ6AsAl8Kf8fDzCEtmb5WYRbjAcyNV6 BEu102o0naW4SrsM51u4kiY5M7j47iFvNkApxsZEk52jlAeD5KfLuHtGUuS8+ZoFyJcu NE66mIQ8KF42u/cSSZWAPWXqFN47SHk8Ht43gC43RJLGjyDoNBB4A1Ds5dVbiCoxiB6L snCA== X-Gm-Message-State: AJIora825YCLyZbw356k3JNQ/LnQ5jLGsl3ER3tWf8h46tntJAWKUnoE SVhSp256LVIVXihuEmatN34= X-Google-Smtp-Source: AGRyM1vNgh5M5HoVk5kpwbd1CELluQ5zfSlz2MhIKF2nnYxvQsrQ/pEUlGqi24oEcZsMIGTL7bye7A== X-Received: by 2002:a17:902:f705:b0:16b:9b6d:67a1 with SMTP id h5-20020a170902f70500b0016b9b6d67a1mr5807659plo.39.1656516740711; Wed, 29 Jun 2022 08:32:20 -0700 (PDT) Received: from localhost (2403-580e-91f7--124.ip6.aussiebb.net. [2403:580e:91f7::124]) by smtp.gmail.com with ESMTPSA id l4-20020a17090b078400b001ec92575e83sm2322252pjz.4.2022.06.29.08.32.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jun 2022 08:32:20 -0700 (PDT) From: Timothy To: Max Nikulin Cc: emacs-orgmode@gnu.org Subject: Re: [PATCH] New remote resource download policy Date: Wed, 29 Jun 2022 23:27:59 +0800 References: <87mteiq6ou.fsf@gmail.com> <87pmj1nh7v.fsf@gmail.com> User-agent: mu4e 1.6.11; emacs 28.0.92 In-reply-to: Message-ID: <87o7yb7af2.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2607:f8b0:4864:20::62e; envelope-from=tecosaur@gmail.com; helo=mail-pl1-x62e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_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=1656516885; 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=tQJTIkcZkXqaiRFATFfD7U5S/j1dbsHZTMETH1ByXOM=; b=nRREiwXg9toV/KVM+iKLAWKeqxHuaNHBxLYvJNKdt9ugRqzHuaEX47riPNm+52517R6/+S 0l+MCJl9DV4xN7vfViPyjnt4Erz+pDiy+5GKWZ6fBbERmb7x6VcQKxrEbIM+vq+JBtbmJ3 Sdh085WKCafx4baN7kNYjVoSuyO+YR28uPLrn43Yo1MSSkyo8/1OaZIG/q2gb9Adc7WYQi t2nCmCuhIMSPRzROPDeeFyHRRn6kO/92DyZ0f8WLAx0Oygz+znRRyQSz26wTVHFTza9Zee bCqQiWaBUVpMHjTxOAvqK6/FtWHu5nlMmWpannLglmXAGAr3kEJNAMq/OswZOg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656516885; a=rsa-sha256; cv=none; b=BYHKijoOqMspAmdSiCSAbWtnrbKTIXF1fgBY75tnYKbsCzpVR/ycMyWvKbgO2Ry5mZ46f2 mpawjioG01JFzZY3C/NJtT1U7HqHfnbl0dXQVBu4u8dit2PwBhT4Z0AnXBbos/E3PzMs7d XI61q6Qu+sPKDu6p1hPA6NLZPV7yBDtaU6+9zcrrO8F4xPF8HXPWVGkcFPqqkr4u/VELBh y87YiLTmFSs3ZOLhbOIXuusfCIhdq4FYK+uP468a27p46ZQO4qLI+aWF7djiHJ8dBw2xCc 1jWJvw/O2pJoTu88amYY2FQTFJXlHTNcPe/Y8U1+sskcLwHGkh+ojNJhplHjYg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="Rivt/tSK"; 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: -2.95 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="Rivt/tSK"; 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: 9515910513 X-Spam-Score: -2.95 X-Migadu-Scanner: scn1.migadu.com X-TUID: jcVcqylznXWl --=-=-= Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Max, Max Nikulin writes: >>> I see your intention to add something fancy to the dialog. May `org-mks= =E2=80=99 be >>> reused instead to avoid proliferation variants of rather similar UI cod= e? >> Well, the thing here is that I=E2=80=99m explicitly trying to mimic the >> file-local-variable dialog, and since a general form isn=E2=80=99t expos= ed by Emacs, a >> little bit of proliferation seems like the best option to me. > > From my point of view the result is rather close (prompt should be adjust= ed): > > (let ((uri =E2=80=9C=E2=80=9D)) > (org-mks > nil > (format =E2=80=9CAn org-mode document would like to download %s, which= is not > considered safe. > > Do you want to download this?=E2=80=9D > (propertize uri =E2=80=99face =E2=80=99(:inherit org-link :weight nor= mal))) > nil ; prompt > `((,(propertize =E2=80=9C!=E2=80=9D =E2=80=99face =E2=80=99success) > =E2=80=9Cdownload this resource, and permanantly mark it as safe.= =E2=80=9D) > (,(propertize =E2=80=9Cy=E2=80=9D =E2=80=99face =E2=80=99warning) > =E2=80=9Cto download this resource, just this once.=E2=80=9D) > (,(propertize =E2=80=9Cn=E2=80=9D =E2=80=99face =E2=80=99error) > =E2=80=9Cskip this resource.=E2=80=9D)))) I just tried this snippet and it looked quite different to me, that said I = have tweaked `org-mks' a bit in my config=E2=80=A6 (I initially found org-captur= e quite ugly). I also really don=E2=80=99t like how `org-mks' so forcefully grabs all keyb= oard input. I can see it being nice to jump back to the buffer and see where the resource= is being used, which isn=E2=80=99t really possible using `org-mks'. All the best, Timothy --=-=-=--