emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Jorge P. de Morais Neto" <jorge+list@disr.it>
To: emacs-orgmode@gnu.org
Subject: [BUG] org-export-with-broken-links not respected for (org-icalendar-combine-agenda-files t) [9.6.9 ( @ /home/jorge/.config/emacs/elpa/org-9.6.9/)]
Date: Sat, 09 Sep 2023 18:45:43 -0300	[thread overview]
Message-ID: <87v8cjkol4.fsf@disr.it> (raw)

Hi.  I am on Gentoo.  I wrote the following Elisp function:

--8<---------------cut here---------------start------------->8---
(defun J-org-icalendar-agenda-no-babel (&optional async)
  "Invoke `org-icalendar-combine-agenda-files' without babel, maybe ASYNC.

Also, make broken Org links just get marked as such in the
output, instead of stopping the export with an error."
  (interactive "P")
  (let (org-export-use-babel
        (org-export-with-broken-links 'mark))
      (org-icalendar-combine-agenda-files async)))
--8<---------------cut here---------------end--------------->8---

When I invoke (J-org-icalendar-agenda-no-babel t), the async export
errors out.  I determined that the inferior Emacs process does not see
the let-binding (org-export-with-broken-links 'mark).  Is this intended

For now I have worked around this by writing

    (setopt org-export-with-broken-links 'mark)

At the end of the file named by `org-export-async-init-file`.


Emacs  : GNU Emacs 29.1.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.17.8)
 of 2023-09-03
Package: Org mode version 9.6.9 ( @ /home/jorge/.config/emacs/elpa/org-9.6.9/)
- I am Brazilian.  I hope my English is correct and I welcome feedback.
- Free Software Supporter: https://www.fsf.org/free-software-supporter
- If an email of mine arrives at your spam box, please notify me.
- Many people hate injustice but few check the facts; this causes more
  injustice.  Ask me about <https://stallmansupport.org>

             reply	other threads:[~2023-09-09 21:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-09 21:45 Jorge P. de Morais Neto [this message]
2023-09-10  7:50 ` [BUG] org-export-with-broken-links not respected for (org-icalendar-combine-agenda-files t) [9.6.9 ( @ /home/jorge/.config/emacs/elpa/org-9.6.9/)] Ihor Radchenko
2023-09-14 13:14   ` Jorge P. de Morais Neto
2023-09-15  9:13     ` Ihor Radchenko
2023-09-15 10:23       ` Jorge P. de Morais Neto
2023-09-15 10:36         ` Ihor Radchenko
2023-10-22  9:22           ` 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:

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=87v8cjkol4.fsf@disr.it \
    --to=jorge+list@disr.it \
    --cc=emacs-orgmode@gnu.org \


* 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 public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).