[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] new exporter, conditional options according to backend
From: |
Jambunathan K |
Subject: |
Re: [O] new exporter, conditional options according to backend |
Date: |
Sun, 20 Jan 2013 21:52:04 +0530 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
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 ...
>
>
> Regards,
--