From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id CB/tDudWF2PMsQAAbAwnHQ (envelope-from ) for ; Tue, 06 Sep 2022 16:19:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id cA7mDudWF2NPaAAAauVa8A (envelope-from ) for ; Tue, 06 Sep 2022 16:19:19 +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 CC90D2F42C for ; Tue, 6 Sep 2022 16:19:18 +0200 (CEST) Received: from localhost ([::1]:54690 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oVZQ4-0003SR-UG for larch@yhetil.org; Tue, 06 Sep 2022 10:19:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52812) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVYuN-0001zF-SM for emacs-orgmode@gnu.org; Tue, 06 Sep 2022 09:46:33 -0400 Received: from mail-pg1-x535.google.com ([2607:f8b0:4864:20::535]:33514) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oVYuM-0003EV-7r for emacs-orgmode@gnu.org; Tue, 06 Sep 2022 09:46:31 -0400 Received: by mail-pg1-x535.google.com with SMTP id f124so2404879pgc.0 for ; Tue, 06 Sep 2022 06:46:28 -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=FArIXXbblo663/7jyJtOoj7PnNt5lQ6S0+VjPEo1dZ0=; b=erF237tVY5jDeqHLfQnC9wBE1NYVKKVODzbl1AlHw/5nHyvqj6LaMsoVCbxpXW0H4z cr080FAduaxLah8OVqcGszcztGMyxmpb9jiknI9B3xsAEf9g8IYyxVbZy1nHgMi4NYVd 2uHdyVcamKjqv3MK+azBkvLHwiJ3VXlsnIWkXI605a6WZwjvlHBzPCVYrD2iAIJIrCB/ +FN81L+tTUYzmzFRKFNBpB2uF5XnoUNHbeQSH+uyudnCdOpv2ML7OeUO7x2hZIS69GFw hoedhS0AtPQeXZNTx0Aqq3xhvb2kPIlZ6QzSyUXZF5N+WDLeV0u2bQQtfV83sPeNR13X si9Q== 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=FArIXXbblo663/7jyJtOoj7PnNt5lQ6S0+VjPEo1dZ0=; b=6hggNlzJn4D2df83npsmtzWn7bPJQ7xGVu3iVfJEbcGsGp/jmrJBUaNumrxs04nBM8 ma6zZ+p0aQrCuLXKjZC1VSUAqawY0S6MwppxZOQ3DAAmt8xijE/HlwkWEfQA5ktTr942 pgGBnq4epgh8RxItvEtr0d2FOGW357on7mIr5ijzKMIpB6eDUvzwE9lfZ7lw+R7ZpYlA ERDozzlaIUD/bcjGN0ivLozLfpLedbJOllUSB3DjIq43XXz2Vxsa1OwL7Xn6qhnBLn0a LAIqE5A5vQbOMD2VsRgmn79qlSM+xkePll1Ftr1mGERx1V2PU2c+S/FseQrk3K5lxfVZ 9E1A== X-Gm-Message-State: ACgBeo2iBnxn2Z716pKglV7tQnNgk9/agPb/GMEB5Y/ynDVeFOFfmwPC Ovl2P7uZQetYipj4aGlCwdI= X-Google-Smtp-Source: AA6agR4wTxEFP3KjSmsogO74IKJ2h8vYUgdKo6sQ9DjNmHfXR/dwJ+SD0b/dTkIMXS3R9BEyWlcM3w== X-Received: by 2002:a63:ce06:0:b0:430:328b:7346 with SMTP id y6-20020a63ce06000000b00430328b7346mr26012052pgf.339.1662471987626; Tue, 06 Sep 2022 06:46:27 -0700 (PDT) Received: from localhost ([2409:8a70:2b2:5800:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id z6-20020a623306000000b005321340753fsm1711666pfz.103.2022.09.06.06.46.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Sep 2022 06:46:26 -0700 (PDT) From: Ihor Radchenko To: lehi@tosk.in Cc: David Masterson , Tim Cross , emacs-orgmode@gnu.org Subject: Re: Org Publish HTML and PDF With GPG Files In-Reply-To: <7ygJxaKpsFdGyZ1JJK6BukB_kjnEUT20y3N3eY_sxAi3URjqP_3Map0QQzD9xK1njrS_TMuWDntdyN8lA-gEgWo4l-elDwnFHU7zMz35UA0=@tosk.in> References: <86v8qe5pat.fsf@gmail.com> <87ilm7o9u2.fsf@localhost> <87edwqvybh.fsf@localhost> <7ygJxaKpsFdGyZ1JJK6BukB_kjnEUT20y3N3eY_sxAi3URjqP_3Map0QQzD9xK1njrS_TMuWDntdyN8lA-gEgWo4l-elDwnFHU7zMz35UA0=@tosk.in> Date: Tue, 06 Sep 2022 21:47:22 +0800 Message-ID: <87v8q0wr6d.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::535; envelope-from=yantar92@gmail.com; helo=mail-pg1-x535.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=1662473958; 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=FArIXXbblo663/7jyJtOoj7PnNt5lQ6S0+VjPEo1dZ0=; b=OZ0BpUt9lnoceKkkZlb3i+mfUlNVXFdGMv4cpzOvdCL498UCahxcTEqYvMcb6JX1cQA6BM O7RxLN54uOb7YYyUTu3R9Lcrycg9mEsoc3tjPnyA8W2fgHlDmfWDyAChEt1DU60H00co9r 0gcMtnZtWgHKmzsaIB8HIfi2NyKF3cLJOqF5Ivnf5ihPmTJgJn+S376khMwVC66oxWRql5 vjt5SROzp3s6WYdvzpIawLjrKaW+7AuWjCjnSOjizlAnOpmqOVePNaej7YLEXb94nICZX0 OzXPmR3GtHquTR4XDJgKLQ/yQ+9f+iafJfXLTOqgZ5JisYHuOtF4jNqXsMGn2A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1662473958; a=rsa-sha256; cv=none; b=FIGbJDk7pBwPkAtnLW7kHi3dpyeFvi1j2709TJf7jnBM/1nWz8S1RYCy0fm649f0Y89qyK 1Q6RwidwrwavRR5SSnwKqzFm0xQdjKs7Tt/dgdgiUSjlmaAMmMAzMNdbUBfuVHBZhUuLlL 6GJXTIxOhkTvIRA/qZpXT0jmdZhaac0A6EUGeK4dIPiHshBvPNOBu2jc676sB8ijV1Cwa3 H/NbCENfmSu4tlzUjLLBdEWULVAiH6Nbx3/xfV52oL6fqZBITfnKv/7uYoSGN0bFuR3Y/6 CYVquc/1bO0Bs+QDl/+udm3Zo5l3D6hEirTpd+B7IFQSbyYc13xEHO8To2FVDA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=erF237tV; 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: -6.77 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=erF237tV; 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: CC90D2F42C X-Spam-Score: -6.77 X-Migadu-Scanner: scn0.migadu.com X-TUID: 6Mw051xSekz7 lehi@tosk.in writes: > Is there a specific way of setting this in the config? > I tried adding `(add-hook 'org-export-before-processing-hook #'org-decrypt-entries)` to my init.el, but publishing fails with the error "run-hook-with-args: Wrong number of arguments: (0 . 0), 1" This is abnormal hook and the added functions must accept a single argument - the export backend symbol (see the docstring). It is indeed confusing. On main, I changed `org-export-before-processing-hook' to `org-export-before-processing-functions' to indicate that it is abnormal hook. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=fe90cab9564bd6fa08c9abe0882e0e06cc5626f9 -- 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