Fix bug #6250: Numbers in definition lists incorrectly recognized
commit2c1f39792fa6e283e41f2e8798e1d2b27b8a6c47
authorMichael Olson <mwolson@gnu.org>
Fri, 15 Jun 2007 15:06:33 +0000 (15 15:06 +0000)
committerMichael Olson <mwolson@gnu.org>
Fri, 15 Jun 2007 15:06:33 +0000 (15 15:06 +0000)
treeef241897b1320e25a79f649460e3ccc10576b384
parent21ec97af01481a44e8d73154dadf2f9c4f730c95
Fix bug #6250: Numbers in definition lists incorrectly recognized

2007-06-15  Michael Olson  <mwolson@gnu.org>

* lisp/muse-regexps.el (muse-list-item-regexp): Put definition
list regexp part before other parts.
(muse-ol-item-regexp): New regexp that specifies how to match an
ordered list item.
(muse-ul-item-regexp): New regexp that specifies how to match an
unordered list item.
(muse-table-field-regexp): New regexp that specifies how to match
a definition list entry.

* lisp/muse.el: Wrap muse-line-beginning-position and
muse-line-end-position in `eval-and-compile', since they are now
used in muse.el.
(muse-list-item-type): Use a simpler algorithm for detecting which
kind of list item we have.  This fixes a bug where a number in a
definition list term was being detected incorrectly as an ordered
list item.  Fixes bug #6250.
(muse-forward-list-item): Get the entire line with the list item.
For some reason, Emacs 21 was not populating match 2 correctly,
unlike Emacs 22, so this workaround was needed.
git-archimport-id: mwolson@gnu.org--2006/muse--main--1.0--patch-357
ChangeLog
lisp/muse-regexps.el
lisp/muse.el