message-goto-body: Really return point
authorJulien Danjou <julien@danjou.info>
Wed, 24 Nov 2010 21:21:29 +0000 (22:21 +0100)
committerJulien Danjou <julien@danjou.info>
Wed, 24 Nov 2010 21:22:00 +0000 (22:22 +0100)
Signed-off-by: Julien Danjou <julien@danjou.info>
lisp/ChangeLog
lisp/message.el

index 67a0835..2292084 100644 (file)
@@ -2,6 +2,7 @@
 
        * message.el (message-goto-body): Use called-interactively-p.
        (message-in-body-p): message-goto-body returns point.
+       (message-goto-body): Really return point.
 
 2010-11-24  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
index 25b5ae4..f87030e 100644 (file)
@@ -3092,14 +3092,17 @@ M-RET    `message-newline-and-reformat' (break the line and reformat)."
   (message-position-on-field "Summary" "Subject"))
 
 (defun message-goto-body ()
-  "Move point to the beginning of the message body."
+  "Move point to the beginning of the message body.
+Return point."
   (interactive)
   (when (and (called-interactively-p)
             (looking-at "[ \t]*\n"))
     (expand-abbrev))
   (goto-char (point-min))
   (or (search-forward (concat "\n" mail-header-separator "\n") nil t)
-      (search-forward-regexp "[^:]+:\\([^\n]\\|\n[ \t]\\)+\n\n" nil t)))
+      (search-forward-regexp "[^:]+:\\([^\n]\\|\n[ \t]\\)+\n\n" nil t))
+  (while (looking-at "^<#secure") (forward-line 1))
+  (point))
 
 (defun message-in-body-p ()
   "Return t if point is in the message body."