Function: footnote-back-to-message

footnote-back-to-message is an interactive and byte-compiled function defined in footnote.el.gz.

Signature

(footnote-back-to-message)

Documentation

Move cursor back to footnote referent.

If the cursor is not over the text of a footnote, point is not changed. If the buffer was narrowed due to footnote-narrow-to-footnotes-when-editing being set it is automatically widened.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/mail/footnote.el.gz
(defun footnote-back-to-message ()
  "Move cursor back to footnote referent.
If the cursor is not over the text of a footnote, point is not changed.
If the buffer was narrowed due to `footnote-narrow-to-footnotes-when-editing'
being set it is automatically widened."
  (interactive)
  (let ((note (footnote--text-under-cursor)))
    (when note
      (when footnote-narrow-to-footnotes-when-editing
	(widen))
      (goto-char (caddr (assq note footnote--markers-alist)))
      (when (looking-at (footnote--current-regexp))
        (goto-char (match-end 0))))))