]> git.eshelyaron.com Git - emacs.git/commitdiff
Use derived-mode-p in previous change.
authorGlenn Morris <rgm@gnu.org>
Wed, 1 Jun 2011 03:50:20 +0000 (20:50 -0700)
committerGlenn Morris <rgm@gnu.org>
Wed, 1 Jun 2011 03:50:20 +0000 (20:50 -0700)
lisp/mail/emacsbug.el

index b1b3c443a09ec1fdd1c642fc8903e993a6b0e991..6b062f2298f9aa9409e50294c9480bb8056bccbb 100644 (file)
@@ -345,7 +345,7 @@ usually do not have translators to read other languages for them.\n\n")
          (error "No text entered in bug report"))
     (or report-emacs-bug-no-confirmation
        ;; mailclient.el does not handle From (at present).
-       (if (eq major-mode 'message-mode)
+       (if (derived-mode-p 'message-mode)
            (eq message-send-mail-function 'message-send-mail-with-mailclient)
          (eq send-mail-function 'mailclient-send-it))
        ;; Not narrowing to the headers, but that's OK.