emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Problem with CUSTOM_ID persistence during exporting
@ 2009-04-19 16:54 Bernt Hansen
  2009-04-19 20:32 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Bernt Hansen @ 2009-04-19 16:54 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Problem with CUSTOM_ID persistence during exporting
  2009-04-19 16:54 Problem with CUSTOM_ID persistence during exporting Bernt Hansen
@ 2009-04-19 20:32 ` Carsten Dominik
  0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2009-04-19 20:32 UTC (permalink / raw)
  To: Bernt Hansen; +Cc: Carsten Dominik, emacs-orgmode

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-04-19 20:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-19 16:54 Problem with CUSTOM_ID persistence during exporting Bernt Hansen
2009-04-19 20:32 ` Carsten Dominik

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).