(mail-mode-flyspell-verify):
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 13 Jun 2008 15:15:32 +0000 (15:15 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 13 Jun 2008 15:15:32 +0000 (15:15 +0000)
Check message-signature-separator exists before using it.

lisp/ChangeLog
lisp/textmodes/flyspell.el

index 66baf0d..7e310e1 100644 (file)
@@ -1,17 +1,22 @@
+2008-06-13  David Reitter  <david.reitter@gmail.com>
+
+       * textmodes/flyspell.el (mail-mode-flyspell-verify):
+       Check message-signature-separator exists before using it.
+
 2008-06-13  Dan Nicolaescu  <dann@ics.uci.edu>
 
        * vc.el (vc-delete-file): Bind default-directory before calling
        the backend.
        (vc-annotate-show-diff-revision-at-line): Move most of the code to ...
-       (vc-annotate-show-diff-revision-at-line-internal): ... here.  New
-       function.
+       (vc-annotate-show-diff-revision-at-line-internal): ... here.
+       New function.
        (vc-annotate-show-changeset-diff-revision-at-line): New function.
        (vc-annotate-mode-menu): Bind it.
 
 2008-06-13  Jason Rumney  <jasonr@gnu.org>
 
-        * term/w32-win.el (mouse-set-font): Remove overridden function.
-        (w32-select-font): Declare as obsolete alias for x-select-font.
+       * term/w32-win.el (mouse-set-font): Remove overridden function.
+       (w32-select-font): Declare as obsolete alias for x-select-font.
 
 2008-06-13  Daniel Engeler  <engeler@gmail.com>
 
index 0267dfd..6e78096 100644 (file)
@@ -306,11 +306,13 @@ property of the major mode name.")
                               "$")
                       nil t)
                      (point)))
-       (signature-begin (save-excursion
-                          (goto-char (point-max))
-                          (re-search-backward message-signature-separator
-                                              nil t)
-                          (point))))
+       (signature-begin
+         (if (not (boundp 'message-signature-separator))
+             (point-max)
+           (save-excursion
+             (goto-char (point-max))
+             (re-search-backward message-signature-separator nil t)
+             (point)))))
     (cond ((< (point) header-end)
           (and (save-excursion (beginning-of-line)
                                (looking-at "^Subject:"))