From: Ihor Radchenko <yantar92@gmail.com>
To: Tim Cross <theophilusx@gmail.com>
Cc: lehi@tosk.in, emacs-orgmode@gnu.org
Subject: Re: Org Publish HTML and PDF With GPG Files
Date: Thu, 01 Sep 2022 15:03:17 +0800 [thread overview]
Message-ID: <87ilm7o9u2.fsf@localhost> (raw)
In-Reply-To: <86v8qe5pat.fsf@gmail.com>
Tim Cross <theophilusx@gmail.com> writes:
> I don't think there is an 'out of the box' solution for this issue. Part
> of the problem is likely because the handling of the gpg decryption is
> an Emacs function done outside of org mode i.e. org-mode is not really
> aware the original file was an encrypted gpg file, it only see the
> decrypted version. This makes it hard for org to know which links ending
> in .gpg should be translated and which ones should not (for example, a
> link to an encrypted gpg file to be served by the web server rather than
> a link to another org file). This makes it a little challenging to come
> up with a solution which will work for all use cases.
I do not think that things are that difficult. org->html link conversion
assumes that the linked .org file is also exported generating the
.html file. If I understand correctly, .org.gpg files are also exported
during publishing process. (Lehi Toskin, could you kindly confirm this?)
Thus, we may simply extend `org-html-link' to work on .org.gpg files in
addition to .org files.
--
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
next prev parent reply other threads:[~2022-09-01 7:43 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 [this message]
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
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=87ilm7o9u2.fsf@localhost \
--to=yantar92@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.