aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Rudalics2007-04-13 05:53:27 +0000
committerMartin Rudalics2007-04-13 05:53:27 +0000
commitdedecfd696051df3b709a20361b9a152ef4444a4 (patch)
tree24a981cb92223a14e8d872e6a293aa7be4b9c0e2
parent6f2c280eb62744a7ba4a09fe505e4269ed5ba345 (diff)
downloademacs-dedecfd696051df3b709a20361b9a152ef4444a4.tar.gz
emacs-dedecfd696051df3b709a20361b9a152ef4444a4.zip
(footnote-latin-string): New variable.
(footnote-latin-regexp): Redefined as regexp alternative. (Footnote-latin): Use footnote-latin-string instead of footnote-latin-regexp.
-rw-r--r--lisp/mail/footnote.el11
1 files changed, 7 insertions, 4 deletions
diff --git a/lisp/mail/footnote.el b/lisp/mail/footnote.el
index 2dd2e7af175..9e3a375c50d 100644
--- a/lisp/mail/footnote.el
+++ b/lisp/mail/footnote.el
@@ -267,14 +267,17 @@ Wrapping around the alphabet implies successive repetitions of letters."
267 267
268;; Latin-1 268;; Latin-1
269 269
270(defconst footnote-latin-regexp "¹²³ºª§¶" 270(defconst footnote-latin-string "¹²³ºª§¶"
271 "String of Latin-1 footnoting characters.")
272
273(defconst footnote-latin-regexp (concat "[" footnote-latin-string "]")
271 "Regexp for Latin-1 footnoting characters.") 274 "Regexp for Latin-1 footnoting characters.")
272 275
273(defun Footnote-latin (n) 276(defun Footnote-latin (n)
274 "Latin-1 footnote style. 277 "Latin-1 footnote style.
275Use a range of Latin-1 non-ASCII characters for footnoting." 278Use a range of Latin-1 non-ASCII characters for footnoting."
276 (string (aref footnote-latin-regexp 279 (string (aref footnote-latin-string
277 (mod (1- n) (length footnote-latin-regexp))))) 280 (mod (1- n) (length footnote-latin-string)))))
278 281
279;;; list of all footnote styles 282;;; list of all footnote styles
280(defvar footnote-style-alist 283(defvar footnote-style-alist
@@ -654,7 +657,7 @@ delete the footnote with that number."
654 (while (< i notes) 657 (while (< i notes)
655 (setq alist-ptr (nth i footnote-pointer-marker-alist)) 658 (setq alist-ptr (nth i footnote-pointer-marker-alist))
656 (setq alist-txt (nth i footnote-text-marker-alist)) 659 (setq alist-txt (nth i footnote-text-marker-alist))
657 (unless (eq (1+ i) (car alist-ptr)) 660 (unless (= (1+ i) (car alist-ptr))
658 (Footnote-renumber (car alist-ptr) (1+ i) alist-ptr alist-txt)) 661 (Footnote-renumber (car alist-ptr) (1+ i) alist-ptr alist-txt))
659 (setq i (1+ i)))))) 662 (setq i (1+ i))))))
660 663