muse-colors: Separate highlighting rules according to major mode.
commit02c241d54964c404e1cd7cdad4bbf6a4b7dcbd59
authorMichael Olson <mwolson@gnu.org>
Mon, 13 Oct 2008 07:05:42 +0000 (13 00:05 -0700)
committerMichael Olson <mwolson@gnu.org>
Mon, 13 Oct 2008 07:05:42 +0000 (13 00:05 -0700)
treeef585c40c80638eaacb0b283f92a4e77914b86cd
parent51bb9a9723ce50424e42a777ecaabd6ba6a74f54
muse-colors: Separate highlighting rules according to major mode.

* lisp/muse-colors.el (muse-colors-regexp, muse-colors-vector): Remove.
  (muse-colors-highlighting-registry)
  (muse-colors-make-highlighting-struct)
  (muse-colors-highlighting.regexp, muse-colors-highlighting.vector)
  (muse-colors-highlighting.remaining, muse-colors-highlighting-entry)
  (muse-colors-find-highlighting, muse-colors-define-highlighting): New
  scheme for separating highlighting rules according to major-mode.
  (muse-configure-highlighting, muse-use-font-lock): Use
  muse-colors-define-highlighting.
  (muse-colors-region): Permit the vector to contain more than one rule.
  Handle case where we have rules that are not in the vector and do not
  have the same function handler.  Make sure that the match data exactly
  corresponds to the regexp that goes with the rule.
  (muse-colors-custom-tags, muse-colors-explicit-link): No need to
  explicitly call `looking-at', because the match data will be correct.
  (muse-colors-implicit-link): Use match-string 0 instead of match-string
  1, now that the match data is accurate.

* lisp/muse-wiki.el (muse-wiki-update-project-file-regexp)
  (muse-wiki-wikiword-regexp): Call muse-colors-define-highlighting.
  (muse-wiki-update-interwiki-regexp): Only update the highlighting if
  the value has changed.
lisp/muse-colors.el
lisp/muse-wiki.el