(defun fb2-link (link-name) (interactive "MLink name: ") (insert (concat "" link-name ""))) (defun fb2-footnote (footnote-name) (interactive "MFootnote name: ") (insert (concat "" footnote-name ""))) (defun fb2-opso-format-footnotes (chapter) (interactive "MChapter: ") (while (re-search-forward "^

\\([0-9]+\\)[ ]" nil t) (replace-match (format " %s.\\1\n

\n " chapter chapter)))) ; ; ; (while (re-search-forward regexp nil t) ; (replace-match to-string nil nil))