From 21d4acf0354236fbd28bc4659872725f4637c3d6 Mon Sep 17 00:00:00 2001 From: Tassilo Horn Date: Tue, 7 Dec 2010 23:40:22 +0000 Subject: [PATCH] Place Footnotes section before signature in all message-mode derived modes. * org-footnote.el (org-footnote-create-definition): Place Footnotes section before message-signature-separator also in modes derived from message-mode. --- lisp/org-footnote.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org-footnote.el b/lisp/org-footnote.el index 2a97b54db..8cb4bbcb5 100644 --- a/lisp/org-footnote.el +++ b/lisp/org-footnote.el @@ -303,7 +303,7 @@ or new, let the user edit the definition of the footnote." (t (setq re (concat "^" org-footnote-tag-for-non-org-mode-files "[ \t]*$")) (unless (re-search-forward re nil t) - (let ((max (if (and (eq major-mode 'message-mode) + (let ((max (if (and (derived-mode-p 'message-mode) (re-search-forward message-signature-separator nil t)) (progn (beginning-of-line) (point)) (goto-char (point-max)))))