From 67a0931d39202b9e7169c88d7fe47aa345fbfcae Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Tue, 31 May 2011 20:50:20 -0700 Subject: [PATCH] Use derived-mode-p in previous change. --- lisp/mail/emacsbug.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/mail/emacsbug.el b/lisp/mail/emacsbug.el index b1b3c443a09..6b062f2298f 100644 --- a/lisp/mail/emacsbug.el +++ b/lisp/mail/emacsbug.el @@ -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. -- 2.11.4.GIT