diff options
author | Glenn Morris <[email protected]> | 2007-11-01 03:40:50 +0000 |
---|---|---|
committer | Glenn Morris <[email protected]> | 2007-11-01 03:40:50 +0000 |
commit | 2c28c5196e15ca50ee18e5a617b1895f3e6139c3 (patch) | |
tree | 1cc6ac10fa4159daf5bfa76e3d89195de779c0fb /lisp/mail | |
parent | 399f21c18888bab8c0712928d4812d0b420ad27e (diff) |
(footnote-numeric-regexp)
(footnote-english-upper-regexp, footnote-english-lower-regexp)
(footnote-roman-lower-regexp, footnote-roman-upper-regexp):
Match multi-character footnotes.
Diffstat (limited to 'lisp/mail')
-rw-r--r-- | lisp/mail/footnote.el | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lisp/mail/footnote.el b/lisp/mail/footnote.el index be47032a0c..b94f3bc829 100644 --- a/lisp/mail/footnote.el +++ b/lisp/mail/footnote.el @@ -139,7 +139,7 @@ See also `footnote-section-tag'." ;;; Default styles ;;; NUMERIC -(defconst footnote-numeric-regexp "[0-9]" +(defconst footnote-numeric-regexp "[0-9]+" "Regexp for digits.") (defun Footnote-numeric (n) @@ -151,7 +151,7 @@ Use Arabic numerals for footnoting." (defconst footnote-english-upper "ABCDEFGHIJKLMNOPQRSTUVWXYZ" "Upper case English alphabet.") -(defconst footnote-english-upper-regexp "[A-Z]" +(defconst footnote-english-upper-regexp "[A-Z]+" "Regexp for upper case English alphabet.") (defun Footnote-english-upper (n) @@ -170,7 +170,7 @@ Wrapping around the alphabet implies successive repetitions of letters." (defconst footnote-english-lower "abcdefghijklmnopqrstuvwxyz" "Lower case English alphabet.") -(defconst footnote-english-lower-regexp "[a-z]" +(defconst footnote-english-lower-regexp "[a-z]+" "Regexp of lower case English alphabet.") (defun Footnote-english-lower (n) @@ -191,7 +191,7 @@ Wrapping around the alphabet implies successive repetitions of letters." (50 . "l") (100 . "c") (500 . "d") (1000 . "m")) "List of roman numerals with their values.") -(defconst footnote-roman-lower-regexp "[ivxlcdm]" +(defconst footnote-roman-lower-regexp "[ivxlcdm]+" "Regexp of roman numerals.") (defun Footnote-roman-lower (n) @@ -204,7 +204,7 @@ Wrapping around the alphabet implies successive repetitions of letters." (50 . "L") (100 . "C") (500 . "D") (1000 . "M")) "List of roman numerals with their values.") -(defconst footnote-roman-upper-regexp "[IVXLCDM]" +(defconst footnote-roman-upper-regexp "[IVXLCDM]+" "Regexp of roman numerals. Not complete") (defun Footnote-roman-upper (n) @@ -270,6 +270,7 @@ Wrapping around the alphabet implies successive repetitions of letters." (defconst footnote-latin-string "�������" "String of Latin-1 footnoting characters.") +;; Note not [...]+, because this style cycles. (defconst footnote-latin-regexp (concat "[" footnote-latin-string "]") "Regexp for Latin-1 footnoting characters.") |