From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Hong Xu Newsgroups: gmane.emacs.bugs Subject: bug#25124: [PATCH] gnus-message-citation-mode should fontify if derived from message-mode. Date: Tue, 6 Dec 2016 01:27:26 -0800 Message-ID: <1481016446-26329-1-git-send-email-hong@topbug.net> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1481016536 32223 195.159.176.226 (6 Dec 2016 09:28:56 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 6 Dec 2016 09:28:56 +0000 (UTC) To: 25124@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 06 10:28:52 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cEC3Q-0007l3-LM for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Dec 2016 10:28:52 +0100 Original-Received: from localhost ([::1]:47153 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cEC3U-0006SB-OC for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Dec 2016 04:28:56 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32851) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cEC2f-0005p0-PB for bug-gnu-emacs@gnu.org; Tue, 06 Dec 2016 04:28:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cEC2c-0006Tp-LM for bug-gnu-emacs@gnu.org; Tue, 06 Dec 2016 04:28:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42240) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cEC2c-0006TJ-Ik for bug-gnu-emacs@gnu.org; Tue, 06 Dec 2016 04:28:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cEC2c-0004jm-Bc for bug-gnu-emacs@gnu.org; Tue, 06 Dec 2016 04:28:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Hong Xu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Dec 2016 09:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 25124 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.148101646218179 (code B ref -1); Tue, 06 Dec 2016 09:28:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Dec 2016 09:27:42 +0000 Original-Received: from localhost ([127.0.0.1]:57639 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cEC2I-0004j9-0M for submit@debbugs.gnu.org; Tue, 06 Dec 2016 04:27:42 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:41780) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cEC2G-0004iy-Qj for submit@debbugs.gnu.org; Tue, 06 Dec 2016 04:27:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cEC2A-0006LN-W7 for submit@debbugs.gnu.org; Tue, 06 Dec 2016 04:27:35 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:46807) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cEC2A-0006LJ-TW for submit@debbugs.gnu.org; Tue, 06 Dec 2016 04:27:34 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60984) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cEC29-0005Mm-T6 for bug-gnu-emacs@gnu.org; Tue, 06 Dec 2016 04:27:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cEC26-0006KD-PF for bug-gnu-emacs@gnu.org; Tue, 06 Dec 2016 04:27:33 -0500 Original-Received: from sender163-mail.zoho.com ([74.201.84.163]:21421) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cEC26-0006Jn-GH for bug-gnu-emacs@gnu.org; Tue, 06 Dec 2016 04:27:30 -0500 Original-Received: from localhost (cpe-104-32-170-214.socal.res.rr.com [104.32.170.214]) by mx.zohomail.com with SMTPS id 1481016446911265.80362342289254; Tue, 6 Dec 2016 01:27:26 -0800 (PST) X-Mailer: git-send-email 2.1.4 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:126548 Archived-At: * gnus-cite.el (gnus-message-citation-mode): Fontify if the major mode is derived from message-mode (not necessarily equal to message-mode). --- lisp/gnus/gnus-cite.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/gnus/gnus-cite.el b/lisp/gnus/gnus-cite.el index 502a3be35550..e012b256d09d 100644 --- a/lisp/gnus/gnus-cite.el +++ b/lisp/gnus/gnus-cite.el @@ -1204,7 +1204,7 @@ gnus-message-citation-mode nil ;; init-value "" ;; lighter nil ;; keymap - (when (eq major-mode 'message-mode) ;FIXME: Use derived-mode-p. + (when (derived-mode-p 'message-mode) ;; FIXME: Use font-lock-add-keywords! (let ((defaults (car (if (featurep 'xemacs) (get 'message-mode 'font-lock-defaults) -- 2.1.4