emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Which `odt-content' variable should I use? Why are there two?
@ 2014-01-26 19:20 Brady Trainor
  2014-01-27 10:32 ` Bastien
  2014-01-27 13:47 ` Jambunathan K
  0 siblings, 2 replies; 3+ messages in thread
From: Brady Trainor @ 2014-01-26 19:20 UTC (permalink / raw)
  To: emacs-orgmode


I was browsing the customize group org-export-odt. 

I found two variables that seem to do the same thing. 

In org-odt.el, we have
  org-export-odt-content-template-file

while in ox-odt.el, we have 
  org-odt-content-template-file

Do I need to worry about this. Will org-export check both locations, or will
one take precedence somehow? (As in, if one is `nil', will it more or less
have no effect on the other?) 

I imagine I could do some print variable testing to discover on my own, but
also wanted to see if comments would be enlightening to my understanding in
general. 

- Brady 

(learning Emacs because I found Org-mode; "programmer") 

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

* Re: Which `odt-content' variable should I use? Why are there two?
  2014-01-26 19:20 Which `odt-content' variable should I use? Why are there two? Brady Trainor
@ 2014-01-27 10:32 ` Bastien
  2014-01-27 13:47 ` Jambunathan K
  1 sibling, 0 replies; 3+ messages in thread
From: Bastien @ 2014-01-27 10:32 UTC (permalink / raw)
  To: Brady Trainor; +Cc: emacs-orgmode

Hi Brady,

Brady Trainor <algebrat@uw.edu> writes:

> I was browsing the customize group org-export-odt. 
>
> I found two variables that seem to do the same thing. 
>
> In org-odt.el, we have
>   org-export-odt-content-template-file
>
> while in ox-odt.el, we have 
>   org-odt-content-template-file
>
> Do I need to worry about this. Will org-export check both locations, or will
> one take precedence somehow? (As in, if one is `nil', will it more or less
> have no effect on the other?) 

Your Emacs comes with an old Org version, while you are using another
one, either as a package or from a directory.

You don't need to worry about this is M-x org-version RET shows that
you are using Org > 8.

> I imagine I could do some print variable testing to discover on my own, but
> also wanted to see if comments would be enlightening to my understanding in
> general. 

What might be confusing is that options generally use the same prefix
than the package they belong to: (require 'my-package-*) will load new
options with a prefix like my-package-*.

In Org, the export packages start as ox-* since 8.0, but the options
they define start with org-export-* and not ox-*.  Using org-export-*
as the prefix for all Org export packages felt too much.

HTH,

-- 
 Bastien

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

* Re: Which `odt-content' variable should I use? Why are there two?
  2014-01-26 19:20 Which `odt-content' variable should I use? Why are there two? Brady Trainor
  2014-01-27 10:32 ` Bastien
@ 2014-01-27 13:47 ` Jambunathan K
  1 sibling, 0 replies; 3+ messages in thread
From: Jambunathan K @ 2014-01-27 13:47 UTC (permalink / raw)
  Cc: emacs-orgmode

Brady Trainor <algebrat@uw.edu> writes:

> I was browsing the customize group org-export-odt.


The old exporter and the new exporters share the same custom group.  So
you are seeing the old and new variables in the custom buffer.  (IMO
this is a bug.)

----------------------------------------------------------------

NEW variables do NOT have an extra "export" in their names
==========================================================

If you are using org > 8.0, the variables that you are interested in
should come from ox-odt.el.

M-x find-library ox-odt
M-<
C-s defcustom


(defcustom org-odt-prettify-xml nil
           ^^^^^^^
(defcustom org-odt-schema-dir
           ^^^^^^^

Note that NEW variables don't have "export" in their names.  Except for
change in the prefix, the functionality is for most part the same.

----------------------------------------------------------------

Migrate: Use search and replace
================================

So, a simple renaming in your .emacs should suffice for migrating your
old settings to the new settings.

C-x C-f .emacs
M-% org-export-odt- org-odt-
C-x C-s

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

end of thread, other threads:[~2014-01-27 13:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-26 19:20 Which `odt-content' variable should I use? Why are there two? Brady Trainor
2014-01-27 10:32 ` Bastien
2014-01-27 13:47 ` Jambunathan K

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).