org-mode/lisp
Achim Gratz e7d2e4e186 ensure that M-x org-version always delivers something useful
* UTILITIES/org-fixup.el (org-make-org-version): change defconst to
  defun for org-release and org-git-version and close over those
  variables (do not make them global anymore).

* UTILITIES/org-fixup.el (org-fixup): check for org-version.el or try
  to use git to get the version from the worktree (code uses parts of
  the former implementation from org.el).

* lisp/org.el (org-version): use functions instead of global variables
  to get the version strings and remove the defvaralias to
  org-version.  Warn when encountering a mixed installation (org and
  org-install.el should be found in the same directory).

Supported use-cases:

1) Org uninstalled (and possibly uncompiled) from Git or tarball.

1a) No org-version.el or org-install.el exists in worktree.  Partially
supported configuration, org version is determined from git if
possible via UTILITIES/org-fixup.el.  However, Emacs versions
delivered with orgmode will provide autoloads that may or may not work
with that version of org (mixed installation).  If such a situation is
encountered, warn the user.  It can work if the autoloads from the
installation match the ones that would be generated for the worktree,
which generelly is only the case if there is a relatively recent
installation in site-lisp.

1b) Autoload file org-install.el exists in worktree.  Fully supported
configuration, org version is determined from git if possible via
UTILITIES/org-fixup.el.

1c) Both org-version.el or org-install.el exist in worktree.
Recommended configuration for 1), org version is taken from
org-version.el (git never gets invoked).

2) Org installed.  Both org-version.el and org-install.el must exist
in install directory.  Only supported configuration for 2), org
version is taken from org-version.el (git never gets invoked since
UTILITIES/org-fixup.el is not available).

Any unsupported configuration should still yield a version string, but
it will contain "N/A" to alert the user about a botched org
installation.
2012-05-18 07:45:45 +02:00
..
Makefile clean up Makefile some more, keep autoloads around 2012-05-18 07:45:45 +02:00
ob-C.el better wrapping of main C function 2012-04-10 16:01:54 -04:00
ob-R.el ob-R.el: Fix compiler warning about `org-remove-if-not'. 2012-05-16 16:40:18 +02:00
ob-asymptote.el Fix copyright and authors lines. 2012-04-02 00:53:28 +02:00
ob-awk.el Delete trailing whitespaces in core files. 2012-03-28 02:05:36 +02:00
ob-calc.el Copyright, license, and header fixes. 2012-02-19 08:21:03 -07:00
ob-clojure.el code-block languages may specify their own headers and values 2012-04-13 08:43:16 -04:00
ob-comint.el Fix copyright years in maint. 2012-03-17 16:31:04 +01:00
ob-css.el Fix copyright years in maint. 2012-03-17 16:31:04 +01:00
ob-ditaa.el Fix the master branch. 2012-03-19 22:01:29 +01:00
ob-dot.el Fix copyright years in maint. 2012-03-17 16:31:04 +01:00
ob-emacs-lisp.el Copyright, license, and header fixes. 2012-02-19 08:21:03 -07:00
ob-eval.el Fix copyright years in maint. 2012-03-17 16:31:04 +01:00
ob-exp.el Add :version to ob-exp.el option. 2012-04-03 13:41:59 +02:00
ob-fortran.el Fix copyright and authors lines. 2012-04-02 00:53:28 +02:00
ob-gnuplot.el Delete trailing whitespaces in core files. 2012-03-28 02:05:36 +02:00
ob-haskell.el Delete trailing whitespaces in core files. 2012-03-28 02:05:36 +02:00
ob-io.el Fix the maint branch. 2012-03-19 20:27:28 +01:00
ob-java.el More fixes to the copyright year... 2012-02-19 08:18:53 -07:00
ob-js.el Add :version to ob-js.el option. 2012-04-03 13:41:37 +02:00
ob-keys.el Fix copyright years in maint. 2012-03-17 16:31:04 +01:00
ob-latex.el Fix copyright years in maint. 2012-03-17 16:31:04 +01:00
ob-ledger.el Fix typos and spelling mistakes. 2012-02-19 08:23:42 -07:00
ob-lilypond.el Delete trailing whitespaces in core files. 2012-03-28 02:05:36 +02:00
ob-lisp.el code-block languages may specify their own headers and values 2012-04-13 08:43:16 -04:00
ob-lob.el Add :version to ob-lob.el option. 2012-04-03 13:11:32 +02:00
ob-matlab.el More copyright year fixes. 2012-02-19 08:16:42 -07:00
ob-maxima.el Org-Babel: fix maxima invocation without explicit parameters 2012-05-08 14:13:27 +02:00
ob-mscgen.el More copyright year fixes. 2012-02-19 08:16:42 -07:00
ob-ocaml.el Delete trailing whitespaces in core files. 2012-03-28 02:05:36 +02:00
ob-octave.el More copyright year fixes. 2012-02-19 08:16:42 -07:00
ob-org.el More copyright year fixes. 2012-02-19 08:16:27 -07:00
ob-perl.el Fix copyright and authors lines. 2012-04-02 00:53:28 +02:00
ob-picolisp.el Add :version to ob-picolisp.el option. 2012-04-03 13:29:15 +02:00
ob-plantuml.el Add :version to ob-plantuml.el option. 2012-04-03 13:43:36 +02:00
ob-python.el ensure newline precedes automatically-added returns for Python code blocks 2012-04-23 11:39:28 -04:00
ob-ref.el Fix copyright and authors lines. 2012-04-02 00:53:28 +02:00
ob-ruby.el Delete trailing whitespaces in core files. 2012-03-28 02:05:36 +02:00
ob-sass.el Fix copyright years in maint. 2012-03-17 16:31:04 +01:00
ob-scala.el Fix the maint branch. 2012-03-19 20:27:28 +01:00
ob-scheme.el Add :version to ob-scheme.el option. 2012-04-03 13:44:15 +02:00
ob-screen.el Copyright, license, and header fixes. 2012-02-19 08:21:03 -07:00
ob-sh.el Fix the master branch. 2012-03-19 22:01:29 +01:00
ob-shen.el Copyright, license, and header fixes. 2012-02-19 08:21:03 -07:00
ob-sql.el Add dbi support to sql babel mode 2012-05-16 19:50:43 -04:00
ob-sqlite.el code-block languages may specify their own headers and values 2012-04-13 08:43:16 -04:00
ob-table.el Fix copyright years in maint. 2012-03-17 16:31:04 +01:00
ob-tangle.el Add :version to ob-tangle.el options. 2012-04-03 13:14:06 +02:00
ob.el Merge branch 'origin-maint' 2012-05-16 13:15:55 -04:00
org-agenda.el Use (with-no-warnings ...) construct for `date' and `entry'. 2012-05-17 11:07:19 +02:00
org-archive.el Allow archiving to a datetree. 2012-04-21 17:37:48 +02:00
org-ascii.el Use (derived-mode-p 'org-mode) instead of (eq major-mode 'org-mode). 2012-04-21 00:43:16 +02:00
org-attach.el Add support for creating symbolic links in org-attach 2012-04-12 13:21:05 -05:00
org-bbdb.el Use (with-no-warnings ...) construct for `date' and `entry'. 2012-05-17 11:07:19 +02:00
org-beamer.el Allow beamer export to inherit some properties 2012-04-22 16:33:24 +02:00
org-bibtex.el don't rely on kill-new to return a string 2012-04-26 12:51:36 -04:00
org-capture.el org-capture.el: Use %\n instead of %n. 2012-04-24 11:54:16 +02:00
org-clock.el New option `org-clock-frame-title-format'. 2012-05-05 14:21:13 +02:00
org-colview-xemacs.el Match #+name/#+tblname/#+tblfm along with uppercase twins. 2012-04-23 12:48:33 +02:00
org-colview.el Fix bugs about computing durations in the column view. 2012-05-01 17:47:13 +02:00
org-compat.el Convert compatibility defun to a macro. 2012-05-01 10:40:15 +02:00
org-crypt.el Delete trailing whitespaces in core files. 2012-03-28 02:05:36 +02:00
org-ctags.el Merge branch 'maint' 2012-04-26 22:43:36 +02:00
org-datetree.el Fix copyright and authors lines. 2012-04-02 00:53:28 +02:00
org-docbook.el Make (org-version) always returns a string, use it in exporters. 2012-04-29 12:17:00 +02:00
org-docview.el Fix copyright years in maint. 2012-03-17 16:31:04 +01:00
org-entities.el Add :version to org-entities.el options. 2012-04-03 13:28:51 +02:00
org-eshell.el Fix compiler warnings. 2012-03-20 13:04:55 +01:00
org-exp-blocks.el adding commented out code which should be activated once org-element has been merged 2012-05-04 09:17:36 -04:00
org-exp.el org-exp.el: Handle new parameter :addlevel when including a file. 2012-04-23 14:46:24 +02:00
org-faces.el org.el: New face `org-list-dt' for definition terms in list. 2012-04-27 23:26:05 +02:00
org-feed.el Fix the master branch. 2012-03-19 22:01:29 +01:00
org-footnote.el Don't call org-footnote-unique label if using random labels 2012-05-06 10:10:25 +02:00
org-freemind.el Add :version to org-freemind.el option. 2012-04-03 13:09:15 +02:00
org-gnus.el Following gnus links: Don't mark unrelated articles read 2012-04-23 09:18:52 +02:00
org-habit.el Add :version to org-habit.el options. 2012-04-03 13:24:40 +02:00
org-html.el Make (org-version) always returns a string, use it in exporters. 2012-04-29 12:17:00 +02:00
org-icalendar.el Support hourly repeat cookies. 2012-04-21 00:42:56 +02:00
org-id.el org-id.el (org-id-update-id-locations): New parameter to silent `org-id-find'. 2012-04-21 15:46:02 +02:00
org-indent.el Replace obsolete variable `buffer-substring-filters'. 2012-04-28 21:36:58 +02:00
org-info.el Fix copyright years in maint. 2012-03-17 16:31:04 +01:00
org-inlinetask.el Add :version to org-inlinetask.el option. 2012-04-03 13:22:38 +02:00
org-irc.el Delete trailing whitespaces in core files. 2012-03-28 02:05:36 +02:00
org-jsinfo.el Fix copyright years in maint. 2012-03-17 16:31:04 +01:00
org-latex.el New option `org-export-latex-link-with-unknown-path-format'. 2012-05-17 08:06:58 +02:00
org-list.el Merge branch 'maint' 2012-05-08 09:01:47 +02:00
org-lparse.el Use (derived-mode-p 'org-mode) instead of (eq major-mode 'org-mode). 2012-04-21 00:43:16 +02:00
org-mac-message.el Fix copyright and authors lines. 2012-04-02 00:53:28 +02:00
org-macs.el New option `org-allow-promoting-top-level-subtree'. 2012-05-08 15:19:52 +02:00
org-mew.el Fix copyright years in maint. 2012-03-17 16:31:04 +01:00
org-mhe.el Fix copyright years in maint. 2012-03-17 16:31:04 +01:00
org-mks.el Delete trailing whitespaces in core files. 2012-03-28 02:05:36 +02:00
org-mobile.el Add :version to org-mobile.el options. 2012-04-03 13:12:47 +02:00
org-mouse.el Merge branch 'maint' 2012-04-22 18:44:45 +02:00
org-odt.el Make (org-version) always returns a string, use it in exporters. 2012-04-29 12:17:00 +02:00
org-pcomplete.el Merge branch 'hotfix' 2012-04-10 23:39:16 +02:00
org-plot.el Fix copyright years in maint. 2012-03-17 16:31:04 +01:00
org-protocol.el Merge branch 'maint' into master-merge-maint 2012-04-21 16:05:22 +02:00
org-publish.el org-publish.el: Use (case-fold-search t) when looking for #+INCLUDE:. 2012-04-23 14:19:21 +02:00
org-remember.el Cure byte-compilation errors in org-remember.el 2012-05-08 03:25:29 -05:00
org-rmail.el Fix copyright years in maint. 2012-03-17 16:31:04 +01:00
org-special-blocks.el org-special-blocks.el: `org-line' instead of `line'. 2012-04-28 19:08:42 +02:00
org-src.el Use (derived-mode-p 'org-mode) instead of (eq major-mode 'org-mode). 2012-04-21 00:43:16 +02:00
org-table.el Remove spurious line inserted by previous commit. 2012-05-10 12:43:32 +02:00
org-taskjuggler.el Add :version to org-taskjuggler.el options. 2012-04-03 13:35:41 +02:00
org-timer.el Use (derived-mode-p 'org-mode) instead of (eq major-mode 'org-mode). 2012-04-21 00:43:16 +02:00
org-vm.el Fix the master branch. 2012-03-19 22:01:29 +01:00
org-w3m.el Fix copyright years in maint. 2012-03-17 16:31:04 +01:00
org-wl.el Add :version to org-wl.el options. 2012-04-03 13:31:06 +02:00
org-xoxo.el Fix copyright and authors lines. 2012-04-02 00:53:28 +02:00
org.el ensure that M-x org-version always delivers something useful 2012-05-18 07:45:45 +02:00