emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [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/)]
@ 2023-09-09 21:45 Jorge P. de Morais Neto
  2023-09-10  7:50 ` Ihor Radchenko
  0 siblings, 1 reply; 7+ messages in thread
From: Jorge P. de Morais Neto @ 2023-09-09 21:45 UTC (permalink / raw)
  To: emacs-orgmode

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
behavior?

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`.

Regards!

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>


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-10-22  9:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-09 21:45 [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/)] Jorge P. de Morais Neto
2023-09-10  7:50 ` 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

Code repositories for project(s) associated with this public inbox

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

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).