org.el: Use nil as the default value for `org-link-to-org-use-id'
commit0906e32b15476e315b21d3e8e35ff4efaf0ad8e2
authorBastien Guerry <bzg@altern.org>
Sun, 23 Sep 2012 09:58:49 +0000 (23 11:58 +0200)
committerBastien Guerry <bzg@altern.org>
Sun, 23 Sep 2012 09:58:49 +0000 (23 11:58 +0200)
tree9f507ef8691e55ee6f31e16244440e6e38ab9a24
parentb20ef32b9ac0bf0e6dcc5d348ed0883b82495894
org.el: Use nil as the default value for `org-link-to-org-use-id'

* org.el (org-link-to-org-use-id): Move to org-id.el.

* org-id.el (org-id-link-to-org-use-id): Rename from
`org-link-to-org-use-id'.  Use `nil' as the default value.
(org-link-to-org-use-id): Alias and define as obsolete.

`org-link-to-org-use-id' was previously defined in org.el but only
active when org-id.el was loaded.  This is wrong.  It now belongs
to org-id.el.

Also, as some libraries require org-id.el on the fly, a non-nil
default value for `org-link-to-org-use-id' had the side-effect of
changing the behavior of `org-store-link' behind the user's back.
Which is wrong too.  The new default value is `nil' so that, even
when a library requires org-id.el without the user noticing it,
the behavior of `org-store-link' will not change.

Users who want to keep the previous behavior can set the variable
to 'create-if-interactive-and-no-custom-id

INCOMPATIBLE
lisp/org-id.el
lisp/org.el