From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Problem with CUSTOM_ID persistence during exporting Date: Sun, 19 Apr 2009 22:32:48 +0200 Message-ID: <56EEDA07-E0A6-4DAD-9AD4-1FDEB364ECF8@gmail.com> References: <87skk4r3c5.fsf@gollum.intra.norang.ca> Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LvdhJ-0001T5-7l for emacs-orgmode@gnu.org; Sun, 19 Apr 2009 16:33:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LvdhE-0001QQ-Ew for emacs-orgmode@gnu.org; Sun, 19 Apr 2009 16:33:04 -0400 Received: from [199.232.76.173] (port=43082 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LvdhE-0001QM-Bi for emacs-orgmode@gnu.org; Sun, 19 Apr 2009 16:33:00 -0400 Received: from ey-out-1920.google.com ([74.125.78.150]:64758) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LvdhD-0000gm-Ow for emacs-orgmode@gnu.org; Sun, 19 Apr 2009 16:32:59 -0400 Received: by ey-out-1920.google.com with SMTP id 13so290046eye.24 for ; Sun, 19 Apr 2009 13:32:57 -0700 (PDT) In-Reply-To: <87skk4r3c5.fsf@gollum.intra.norang.ca> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bernt Hansen Cc: Carsten Dominik , emacs-orgmode@gnu.org Yes, this was a bug, fixed now. Thanks - Carsten On Apr 19, 2009, at 6:54 PM, Bernt Hansen wrote: > Hi Carsten, > > I noticed a problem with custom ids that should probably be fixed. > > I was playing with a temporary custom id for a document - so I added > it > and exported. Then when I removed the id it's still there. The > org-export-preferred-target-alist still has the mapping of section > number to preferred id which I removed. I think it also applies to > different documents. > > I think the variables > > (defvar org-export-target-aliases nil > "Alist of targets with invisible aliases.") > (defvar org-export-preferred-target-alist nil > "Alist of section id's with preferred aliases.") > (defvar org-export-code-refs nil > "Alist of code references and line numbers") > > should probably all be set to nil before export processing of any > file. > These collect values during the export process which affects future > exports. > > I think it's possible to set a CUSTOM_ID is section 1 on document X > and > have it apply to document Y if you export document Y after document X. > > This just feels wrong to me. > > All export functions should probably call some org-exp-init function > to > clear these (and maybe other vars) using during the export process. > > What do you think? > > -Bernt