From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: new exporter, conditional options according to backend Date: Sun, 20 Jan 2013 21:52:04 +0530 Message-ID: <87libng6z7.fsf@gmail.com> References: <87hame8pdk.fsf@david.espiga4.com.ar> <87sj5w23ia.fsf@gmail.com> <874nic8lit.fsf@gmail.com> <87fw1w19v5.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:48795) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Twxey-0008W4-OC for emacs-orgmode@gnu.org; Sun, 20 Jan 2013 11:22:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Twxex-0004B0-P1 for emacs-orgmode@gnu.org; Sun, 20 Jan 2013 11:22:16 -0500 Received: from mail-pa0-f51.google.com ([209.85.220.51]:56613) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Twxex-0004Au-Hz for emacs-orgmode@gnu.org; Sun, 20 Jan 2013 11:22:15 -0500 Received: by mail-pa0-f51.google.com with SMTP id fb11so2957977pad.10 for ; Sun, 20 Jan 2013 08:22:13 -0800 (PST) In-Reply-To: <87fw1w19v5.fsf@gmail.com> (Nicolas Goaziou's message of "Sun, 20 Jan 2013 10:28:46 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nicolas Goaziou Cc: Ezequiel Birman , emacs-orgmode@gnu.org Nicolas Goaziou writes: > Jambunathan K writes: > >> Nicolas Goaziou 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, --