all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@gmail.com>
To: lehi@tosk.in
Cc: David Masterson <dsmasterson@gmail.com>,
	 Tim Cross <theophilusx@gmail.com>,
	 emacs-orgmode@gnu.org
Subject: Re: Org Publish HTML and PDF With GPG Files
Date: Tue, 06 Sep 2022 21:47:22 +0800	[thread overview]
Message-ID: <87v8q0wr6d.fsf@localhost> (raw)
In-Reply-To: <7ygJxaKpsFdGyZ1JJK6BukB_kjnEUT20y3N3eY_sxAi3URjqP_3Map0QQzD9xK1njrS_TMuWDntdyN8lA-gEgWo4l-elDwnFHU7zMz35UA0=@tosk.in>

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


  parent reply	other threads:[~2022-09-06 14:19 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-24  0:08 Org Publish HTML and PDF With GPG Files lehi
2022-08-27  3:15 ` Tim Cross
2022-09-01  7:03   ` Ihor Radchenko
2022-09-04  5:59     ` lehi
2022-09-05  0:15       ` David Masterson
2022-09-05 11:46         ` Ihor Radchenko
2022-09-05 20:29           ` David Masterson
2022-09-06  0:44             ` lehi
2022-09-06  4:08               ` David Masterson
2022-09-06  4:37                 ` tomas
2022-09-10  2:51                   ` David Masterson
2022-09-06 13:47               ` Ihor Radchenko [this message]
2022-09-05 11:44       ` [PATCH] " Ihor Radchenko
2022-09-25  8:37         ` Ihor Radchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87v8q0wr6d.fsf@localhost \
    --to=yantar92@gmail.com \
    --cc=dsmasterson@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=lehi@tosk.in \
    --cc=theophilusx@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.