-;;; footnote.el --- Footnote support for message mode -*- coding: iso-latin-1;-*-
+;;; footnote.el --- footnote support for message mode -*- coding: iso-latin-1;-*-
;; Copyright (C) 1997, 2000 by Free Software Foundation, Inc.
;;; Interface variables that probably shouldn't be changed
-(defconst footnote-section-tag "Footnotes: "
- "*Tag inserted at beginning of footnote section.")
+(defcustom footnote-section-tag "Footnotes: "
+ "*Tag inserted at beginning of footnote section."
+ :version "22.1"
+ :type 'string
+ :group 'footnote)
(defcustom footnote-section-tag-regexp "Footnotes\\(\\[.\\]\\)?: "
"*Regexp which indicates the start of a footnote section.
(setq rc (concat rc chr))
(setq rep (1- rep)))
rc))
-
+
;;; ENGLISH LOWER
(defconst footnote-english-lower "abcdefghijklmnopqrstuvwxyz"
"Lower case English alphabet.")
(Footnote-goto-char-point-max)
(if (re-search-backward (concat "^" footnote-section-tag-regexp) nil t)
(save-restriction
- (when footnote-narrow-to-footnotes-when-editing
+ (when footnote-narrow-to-footnotes-when-editing
(Footnote-narrow-to-footnotes))
(Footnote-goto-footnote (1- arg)) ; evil, FIXME (less evil now)
;; (message "Inserting footnote %d" arg)
(defun Footnote-text-under-cursor ()
"Return the number of footnote if in footnote text.
-Nil is returned if the cursor is not positioned over the text of
+Return nil if the cursor is not positioned over the text of
a footnote."
(when (and (let ((old-point (point)))
(save-excursion
(defun Footnote-under-cursor ()
"Return the number of the footnote underneath the cursor.
-Nil is returned if the cursor is not over a footnote."
+Return nil if the cursor is not over a footnote."
(or (get-text-property (point) 'footnote-number)
(Footnote-text-under-cursor)))
(unless rc
(setq rc (car alist-ptr)))
(save-excursion
- (message "Renumbering from %s to %s"
+ (message "Renumbering from %s to %s"
(Footnote-index-to-string (car alist-ptr))
- (Footnote-index-to-string
+ (Footnote-index-to-string
(1+ (car alist-ptr))))
(Footnote-renumber (car alist-ptr)
(1+ (car alist-ptr))
(goto-char (point-max))
(re-search-backward (concat "^" footnote-section-tag-regexp))
(forward-line 1))
- (error "I don't see a footnote here.")))))
+ (error "I don't see a footnote here")))))
(defun Footnote-back-to-message (&optional arg)
"Move cursor back to footnote referent.
(provide 'footnote)
+;;; arch-tag: 9bcfb6d7-2161-4caf-8793-700f62400398
;;; footnote.el ends here