summaryrefslogtreecommitdiff
path: root/lisp/mail
diff options
context:
space:
mode:
authorChong Yidong <cyd@stupidchicken.com>2007-04-15 17:25:36 +0000
committerChong Yidong <cyd@stupidchicken.com>2007-04-15 17:25:36 +0000
commitc6578117a2fe34110ef43369f4a044fc9fce5370 (patch)
tree120a5c8d4277ad263cae44fc5ae4bfe10d10fb02 /lisp/mail
parentb9d88df0dcc8b2ac8127ed8dee007eb55c41f8ef (diff)
downloademacs-c6578117a2fe34110ef43369f4a044fc9fce5370.tar.gz
emacs-c6578117a2fe34110ef43369f4a044fc9fce5370.tar.bz2
emacs-c6578117a2fe34110ef43369f4a044fc9fce5370.zip
Revert last change.
Diffstat (limited to 'lisp/mail')
-rw-r--r--lisp/mail/footnote.el20
1 files changed, 8 insertions, 12 deletions
diff --git a/lisp/mail/footnote.el b/lisp/mail/footnote.el
index 2e10f1ec308..9e3a375c50d 100644
--- a/lisp/mail/footnote.el
+++ b/lisp/mail/footnote.el
@@ -294,7 +294,7 @@ See footnote-han.el, footnote-greek.el and footnote-hebrew.el for more
exciting styles.")
(defcustom footnote-style 'numeric
- "*Default style used for footnoting.
+ "*Style used for footnoting.
numeric == 1, 2, 3, ...
english-lower == a, b, c, ...
english-upper == A, B, C, ...
@@ -306,10 +306,6 @@ See also variables `footnote-start-tag' and `footnote-end-tag'."
footnote-style-alist))
:group 'footnote)
-(defvar footnote-current-style
- "Style used for footnoting in the current buffer.
-The possible values are the same as in `footnote-style'.")
-
;;; Style utilities & functions
(defun Footnote-style-p (style)
"Return non-nil if style is a valid style known to footnote-mode."
@@ -318,14 +314,14 @@ The possible values are the same as in `footnote-style'.")
(defun Footnote-index-to-string (index)
"Convert a binary index into a string to display as a footnote.
Conversion is done based upon the current selected style."
- (let ((alist (if (Footnote-style-p footnote-current-style)
- (assq footnote-current-style footnote-style-alist)
+ (let ((alist (if (Footnote-style-p footnote-style)
+ (assq footnote-style footnote-style-alist)
(nth 0 footnote-style-alist))))
(funcall (nth 1 alist) index)))
(defun Footnote-current-regexp ()
"Return the regexp of the index of the current style."
- (concat (nth 2 (or (assq footnote-current-style footnote-style-alist)
+ (concat (nth 2 (or (assq footnote-style footnote-style-alist)
(nth 0 footnote-style-alist))) "*"))
(defun Footnote-refresh-footnotes (&optional index-regexp)
@@ -382,13 +378,13 @@ styles."
(defun Footnote-cycle-style ()
"Select next defined footnote style."
(interactive)
- (let ((old (Footnote-assoc-index footnote-current-style footnote-style-alist))
+ (let ((old (Footnote-assoc-index footnote-style footnote-style-alist))
(max (length footnote-style-alist))
idx)
(setq idx (1+ old))
(when (>= idx max)
(setq idx 0))
- (setq footnote-current-style (car (nth idx footnote-style-alist)))
+ (setq footnote-style (car (nth idx footnote-style-alist)))
(Footnote-refresh-footnotes (nth 2 (nth old footnote-style-alist)))))
(defun Footnote-set-style (&optional style)
@@ -397,7 +393,7 @@ styles."
(list (intern (completing-read
"Footnote Style: "
obarray #'Footnote-style-p 'require-match))))
- (setq footnote-current-style style))
+ (setq footnote-style style))
;; Internal functions
(defun Footnote-insert-numbered-footnote (arg &optional mousable)
@@ -737,7 +733,7 @@ key binding
(> (prefix-numeric-value arg) 0)))
(when footnote-mode
;; (Footnote-setup-keybindings)
- (set (make-local-variable 'footnote-current-style) footnote-style)
+ (make-local-variable 'footnote-style)
(if (fboundp 'force-mode-line-update)
(force-mode-line-update)
(set-buffer-modified-p (buffer-modified-p)))