Allow text like "%N%" in markup strings.
commit5d6d598145f4b9ed7b3784549926399376a04f85
authorMichael Olson <mwolson@gnu.org>
Sun, 25 Dec 2005 17:33:25 +0000 (25 17:33 +0000)
committerMichael Olson <mwolson@gnu.org>
Sun, 25 Dec 2005 17:33:25 +0000 (25 17:33 +0000)
treefd48333a5c04c55f4199505f1b854a52956438c6
parent5062a0297ac67665a15cfff8ae954647560b0e8f
Allow text like "%N%" in markup strings.

* lisp/muse-docbook.el (muse-docbook-markup-strings): Rename
  'internal-link to 'anchor-ref for clarity.  Split 'url-link into 'url
  and 'link so that TeX-related publishing styles can more handle links
  to other Muse documents.  Add 'link-and-anchor string that handles a
  link with an anchor and an optional description.

* lisp/muse-groff.el (muse-groff-markup-strings): Ditto.

* lisp/muse-html.el (muse-html-markup-strings): Ditto.

* lisp/muse-latex.el (muse-latex-markup-strings): Ditto.

* lisp/muse-texinfo.el (muse-texinfo-markup-strings): Ditto.

* lisp/muse-xml.el (muse-xml-markup-strings): Ditto.

* lisp/muse-publish.el (muse-publish-url-transforms): Remove
  muse-publish-prepare-url.

* lisp/muse-publish.el (muse-markup-text): Turn this into a function and
  add documentation.  It will now handle arguments like "%N%", which
  indicate the position of an argument to insert.  `format' is applied
  afterward.
  (muse-publish-classify-url): New function derived from
  muse-publish-prepare-url that returns a data structure with complete
  information about the given target string.
  (muse-publish-url): Use muse-publish-classify-url.  This should fix an
  error in the LaTeX publishing style when specifying links to anchors.
  (muse-publish-insert-url): Remove unnecessary let-binding.
  (muse-publish-markup-url): Simplify, now that we have whole-document
  escaping of specials.
  (muse-publish-prepare-url): Remove.

* lisp/muse.el (muse-replace-regexp-in-string): Use a more robust
  fallback routine when neither replace-regexp-in-string nor
  replace-in-string are found.
git-archimport-id: mwolson@gnu.org--2005/muse--main--1.0--patch-320
ChangeLog
lisp/muse-docbook.el
lisp/muse-groff.el
lisp/muse-html.el
lisp/muse-latex.el
lisp/muse-publish.el
lisp/muse-texinfo.el
lisp/muse-xml.el
lisp/muse.el