emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: David Masterson
Subject: Re: Q: org-publish-project-alist and :exclude
Date: Wed, 08 May 2024 14:06:08 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)

David Masterson <dsmasterson@gmail.com> writes:

> Ihor Radchenko <yantar92@posteo.net> writes:
>
>> David Masterson <dsmasterson@gmail.com> 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), nothing inside is evaluated because
>> of the quote. To evaluate expressions selectively, use backquote:
>>
>> `(:foo bar:baz ,(concat "foo" "bar"))
>
> I always had trouble with '"` in hacking Elisp.  I should've studied the
> language more 40 years ago... :(
>
>>> Reverted to using a simple regex as above with proper escapes.  Can I
>>> suggest making the complex example in 14.3.2 of the Org Manual use a
>>> better example regex (in rx form?) as a hint to what :exclude can do?
>>
>> Sure.
>> https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=773bba92a
>
> Perfect.

I spoke too soon -- I'm still getting the same error about expecting a
string.  You mentioned '`' above, but use ',' in your manual diff.  I
tried both (along with rx-to-string).  

-- 
David Masterson



reply via email to

[Prev in Thread] Current Thread [Next in Thread]