[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] new exporter, conditional options according to backend
From: |
Nicolas Goaziou |
Subject: |
Re: [O] new exporter, conditional options according to backend |
Date: |
Mon, 28 Jan 2013 08:12:49 +0100 |
Hello,
Jambunathan K <address@hidden> writes:
> Nicolas Goaziou <address@hidden> writes:
>
>> Jambunathan K <address@hidden> writes:
>>
>>> Nicolas Goaziou <address@hidden> writes:
>>>
>>>> #+begin_src emacs-lisp
>>>> (defun my-options-change-fun (tree backend info)
>>>> (when (org-export-derived-backend-p backend 'e-beamer)
>>>> (plist-put info :with-author nil))
>>>> ;; Don't forget to return tree.
>>>> tree)
>>>
>>> CAVEAT: plist-put can return a different list, at times.
>>>
>>> I don't know enough about implementation of `plist-put' to ascertain
>>> when it would return a new list.
>>
>> Since the OP wants to modify the values of _existing properties_ I'm
>> quite sure the change will happen in place.
>
> Look at example in Elisp manual. New members seem to get appended.
>
> List being destructive is explainable if new members were to be added to
> the head. Since this is not the case, I am curious what the
> implementation could be ...
I have added a filter for export options. The OP may want to use it
instead.
I guess it will be cleaner that way. Besides, the previous export
framework had one too.
Regards,
--
Nicolas Goaziou