muse-wiki: Make the interwiki resolver a bit more clever.
commit857d4e6d3a7407b7dcf7ccc0f0eb81cf2d95200a
authorMichael Olson <mwolson@gnu.org>
Thu, 18 May 2006 06:03:49 +0000 (18 06:03 +0000)
committerMichael Olson <mwolson@gnu.org>
Thu, 18 May 2006 06:03:49 +0000 (18 06:03 +0000)
tree321524ebf153cfc13930e0a0191f9d9d8b2ee810
parent2a48aaeca2d378364b831928350805300a6ea419
muse-wiki: Make the interwiki resolver a bit more clever.

* lisp/muse-project.el (muse-project-choose-style): New function that
  chooses a style from a list of styles, given a user-supplied test.

* lisp/muse-wiki.el (muse-wiki-choose-style-by-link-suffix): New function
  that is used along with `muse-project-choose-style' to pick the first
  style that matches a given value for :link-prefix.
  (muse-wiki-resolve-project-page-1): New function split from
  `muse-wiki-resolve-project-page' for readability.  Try to match files
  that have the same link-suffix.  This should hopefully fix a bug
  noticed by Hans Ekbrand.
git-archimport-id: mwolson@gnu.org--2006/muse--main--1.0--patch-129
ChangeLog.2006
lisp/muse-project.el
lisp/muse-wiki.el