From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id wEmKL3ZWAmKphQAAgWs5BA (envelope-from ) for ; Tue, 08 Feb 2022 12:39:34 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 4EhZKHZWAmJrNAEAG6o9tA (envelope-from ) for ; Tue, 08 Feb 2022 12:39:34 +0100 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 5F54E47EEE for ; Tue, 8 Feb 2022 12:39:34 +0100 (CET) Received: from localhost ([::1]:45176 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nHOqL-000636-DR for larch@yhetil.org; Tue, 08 Feb 2022 06:39:33 -0500 Received: from eggs.gnu.org ([209.51.188.92]:48460) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHO2b-0008T5-AM for emacs-orgmode@gnu.org; Tue, 08 Feb 2022 05:48:13 -0500 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:36807) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHO2Z-0001Yy-0z for emacs-orgmode@gnu.org; Tue, 08 Feb 2022 05:48:09 -0500 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 60C7E3201F5A for ; Tue, 8 Feb 2022 05:48:02 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Tue, 08 Feb 2022 05:48:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tianshu.me; h=cc :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; bh=I1wkZCbmT8MSTvC1NML5bHW9UWB6KSL7SJ/maV phSEA=; b=L2ce7lj3kYjRNEtZYazZooIytoujVb0eWSCx84e319wVMHXtgXYgjX fY/+iVO8udDJ8BU8IIXnqrk61No9GLm4ZJdFOW+Zt2kLf/7hlr8ReI25pIpYMyZ2 4da3jzfQUkzjAaBIqZIzajU4AmljRVGZeBD3MtHF3/nviUEx5lc+IAckWe/LQUwG dzcSy4nBm3vORxo7W9e8EOOcg3fqSGkdRKwUMCU1kt/NC0UZR2ypHqV//EXU6/kS 8cZ41+HpGe3TmyDvk30kfiFigGD706t4KE2LendLPP50R0vDtbfTcEIppq0d4tA1 RG4yCjsdOzPdYjE7apuMDGnoZtBLBUvQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=I1wkZCbmT8MSTvC1N ML5bHW9UWB6KSL7SJ/maVphSEA=; b=oxd37R+UinvwtCBna3E9FNvAgpqQuuQFG /6h224EGOteYVO9tCYv5kkgleJ2oMrnosDJNXcwuizReS1jXif6Zx9tT+S/tYeLN +XYToyPmOD2k3CB+S4VqJaTobfBK65OdQXl/UYrv3v2arYtsIo300nP8n9npSBBL W30/3cC3LK6IY2FNDSNkqrdQZChRw/kESuFf355SVw2wvzXnIPSoU6t63cdKtZCi tNii9WMrFkfKILwrS5UzsDW0IlWI4e040R1pqZSoNW7dDU3/FOoY2gfhpB8GiLC+ BodIPPszLOeJz/ltHVELiz6JZ8wxqSsCEWuBArWAr7vKGxLN3fAUg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrheejgdduiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfhgfhffvufffjgfkgggtsehttdertd dtredtnecuhfhrohhmpefvihgrnhhshhhuucghrghnghcuoeifrghnghesthhirghnshhh uhdrmhgvqeenucggtffrrghtthgvrhhnpefgfeetleekvddtueejffejfeeivdduvdefle dtgfejjedvffdtieehleevffdvieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgr mhepmhgrihhlfhhrohhmpeifrghnghesthhirghnshhhuhdrmhgv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Tue, 8 Feb 2022 05:48:00 -0500 (EST) References: User-agent: mu4e 1.6.10; emacs 28.0.90 From: Tianshu Wang To: emacs-orgmode@gnu.org Subject: Re: Emacs-orgmode Digest, Vol 192, Issue 8 Date: Tue, 08 Feb 2022 18:44:35 +0800 In-reply-to: Message-ID: MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=64.147.123.21; envelope-from=wang@tianshu.me; helo=wout5-smtp.messagingengine.com 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-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-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1644320374; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=I1wkZCbmT8MSTvC1NML5bHW9UWB6KSL7SJ/maVphSEA=; b=kEEJIGPVYyexP9HDYfP7ksgqcL3v6XWAixu8clM/PoZwytIL6S9Fh80WL0ffXP3kS9qmAD dKktCNOoxfZqZoP2wDxYeukfOJ0Pfr6VbU8QcL1yKLIR2b90tptyqNQzP8ilnKla+tAElX f0RURXubqZ7c9Lv6EAeKapaTwtlF697q/pZHlEFYILLvRudrhP4T9OTNU843XoCiQjYKuN b1mRXRpKDfk+rIawQFd1sweAi4cUCNdY8eOwRHhSZNBsGoNzCA+nvteSlUrqjIimjor6cV nvmGKDYAjKU/sJiFx0PEE4tPptQWLsr2nVgryBtnN7Nd8iQOGoezdXAT63Qpng== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1644320374; a=rsa-sha256; cv=none; b=ueY4tzpTfH+TvuGkhikPypkP6yf4+q/NHxcMsddBq+rYKhSOzCJXeGbGOEpkvxeI4mQ9aF gE9fRMhlqGkB9hWvgeSub0mg6YN7iSnCCy4yjU3KmIqPPEUoj8NHI+iTqnWlj5bXAZXDfv nUmw6l0gTS6Xl//1levIYc/tJ+m63VzDAZxhR+Q9lG0yhb6KovoGejnWoONilWwvLgjVBC v31vGx2fFLxwDAIgZQUVnnmkAEdwv6h+0u2DyjN+9fX7diD4fcaX5iJ6ISE44EX5lZQr8n 4OaKoVmybbasC51Wypp2yOAwqxyz3FejsKNTbtQUnAElkNbsVCVohG/grW9usQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tianshu.me header.s=fm3 header.b=L2ce7lj3; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b=oxd37R+U; dmarc=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: -2.23 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tianshu.me header.s=fm3 header.b=L2ce7lj3; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b=oxd37R+U; dmarc=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: 5F54E47EEE X-Spam-Score: -2.23 X-Migadu-Scanner: scn1.migadu.com X-TUID: FV+0EPKo0Xw5 Max Nikulin writes: > Thank you, such approach, unlike mine example, does not have code > duplication. On the other hand it loads org-protocol on any remote > command, not only for "files" representing org-protocol URIs. Maybe > defadvice in org-protocol.el should be changed by newer advice-add with > a function containing body of the old advice. Yes, I replaced the original code with advice-add (not fully tested). (advice-add 'server-execute :before (defun enable-org-protocol (&rest r) (unless (featurep 'org-protocol) (require 'org-protocol)))) -- Tianshu Wang