Re: Q: org-publish-project-alist and :exclude

2024-05-12 Thread Ihor Radchenko
David Masterson writes: >>> When you have '(:foo bar :baz eet), nothing inside is evaluated because >>> of the quote. To evaluate expressions selectively, use backquote: >>> >>> `(:foo bar:baz ,(concat "foo" "bar")) > ... > I spoke too soon -- I'm still getting the same error about expecting a >

Re: Q: org-publish-project-alist and :exclude

2024-05-08 Thread David Masterson
David Masterson writes: > Ihor Radchenko writes: > >> David Masterson writes: >> >>> Hmm. Couldn't get rx (or rx-to-string) to work for me. Kept getting an >>> error that a stringp was expected for the argument to :exclude. I tried >>> variations on: >>> >>> :exclude (rx-to-string (seq (or

Re: Q: org-publish-project-alist and :exclude

2024-05-07 Thread David Masterson
Ihor Radchenko writes: > David Masterson writes: > >> Hmm. Couldn't get rx (or rx-to-string) to work for me. Kept getting an >> error that a stringp was expected for the argument to :exclude. I tried >> variations on: >> >> :exclude (rx-to-string (seq (or "init" "calendar-beorg") ".org")) >

Re: Q: org-publish-project-alist and :exclude

2024-05-07 Thread Ihor Radchenko
David Masterson writes: > Hmm. Couldn't get rx (or rx-to-string) to work for me. Kept getting an > error that a stringp was expected for the argument to :exclude. I tried > variations on: > > :exclude (rx-to-string (seq (or "init" "calendar-beorg") ".org")) When you have '(:foo bar :baz eet)

Re: Q: org-publish-project-alist and :exclude

2024-05-06 Thread David Masterson
David Masterson writes: > Ihor Radchenko writes: > >> David Masterson writes: >> >>> So I have this form: >>> >>> :exclude "\(init\|calendar-beorg\).org" >>> >>> but that doesn't seem to work as I get an ignorable error in processing >>> calendar-beorg.org (a known Beorg issue). >>> >>> Is my

Re: Q: org-publish-project-alist and :exclude

2024-05-05 Thread David Masterson
Ihor Radchenko writes: > David Masterson writes: > >> So I have this form: >> >> :exclude "\(init\|calendar-beorg\).org" >> >> but that doesn't seem to work as I get an ignorable error in processing >> calendar-beorg.org (a known Beorg issue). >> >> Is my regex wrong? > > Yes. You got to escap

Re: Q: org-publish-project-alist and :exclude

2024-05-05 Thread Ihor Radchenko
David Masterson writes: > So I have this form: > > :exclude "\(init\|calendar-beorg\).org" > > but that doesn't seem to work as I get an ignorable error in processing > calendar-beorg.org (a known Beorg issue). > > Is my regex wrong? Yes. You got to escape the \ inside string. I recommend usin

Q: org-publish-project-alist and :exclude

2024-05-04 Thread David Masterson
In the Org Mode manual section 14.1.3, it says that ":exclude" takes a regular expression of filenames to exclude from publishing but it doesn't really explain what the regular expression format is (I assume Elisp regex). I have two Org files that I want to exclude: * calendar-beorg.org * init.or