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: Thu, 16 Feb 2017 14:12:42 -0800 Message-ID: <874lztg4yt.fsf@topbug.net> References: <1481016446-26329-1-git-send-email-hong@topbug.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1487283198 14754 195.159.176.226 (16 Feb 2017 22:13:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 16 Feb 2017 22:13:18 +0000 (UTC) User-Agent: mu4e 0.9.19; emacs 25.2.4 To: 25124@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 16 23:13:13 2017 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 1ceUIX-0003Kv-Qz for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 Feb 2017 23:13:09 +0100 Original-Received: from localhost ([::1]:50564 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ceUId-0007GE-JQ for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 Feb 2017 17:13:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46962) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ceUIV-0007Ei-1O for bug-gnu-emacs@gnu.org; Thu, 16 Feb 2017 17:13:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ceUIQ-0002ij-0J for bug-gnu-emacs@gnu.org; Thu, 16 Feb 2017 17:13:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44516) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ceUIP-0002iP-Tj for bug-gnu-emacs@gnu.org; Thu, 16 Feb 2017 17:13:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ceUIP-0003Of-PK for bug-gnu-emacs@gnu.org; Thu, 16 Feb 2017 17:13:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Hong Xu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 16 Feb 2017 22:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 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.148728317913050 (code B ref -1); Thu, 16 Feb 2017 22:13:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Feb 2017 22:12:59 +0000 Original-Received: from localhost ([127.0.0.1]:42715 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ceUIN-0003OP-Gg for submit@debbugs.gnu.org; Thu, 16 Feb 2017 17:12:59 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:55880) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ceUIM-0003OD-9I for submit@debbugs.gnu.org; Thu, 16 Feb 2017 17:12:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ceUIG-0002as-FP for submit@debbugs.gnu.org; Thu, 16 Feb 2017 17:12:53 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:45512) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ceUIG-0002ag-Cc for submit@debbugs.gnu.org; Thu, 16 Feb 2017 17:12:52 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46844) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ceUIF-0007E7-EM for bug-gnu-emacs@gnu.org; Thu, 16 Feb 2017 17:12:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ceUIA-0002Vl-Cy for bug-gnu-emacs@gnu.org; Thu, 16 Feb 2017 17:12:51 -0500 Original-Received: from sender-of-o52.zoho.com ([135.84.80.217]:21401) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ceUIA-0002Us-4z for bug-gnu-emacs@gnu.org; Thu, 16 Feb 2017 17:12:46 -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 1487283163877640.3354973679413; Thu, 16 Feb 2017 14:12:43 -0800 (PST) In-reply-to: <1481016446-26329-1-git-send-email-hong@topbug.net> X-Zoho-Virus-Status: 1 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:129425 Archived-At: --=-=-= Content-Type: text/plain On 2016-12-06 Tue 01:27 GMT-0800, Hong Xu wrote: > * 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) Still consider this patch? The fix is quite straightforward. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEExhpJYaW1K1QSOB5eJmx9M4IvhHgFAlimI9oACgkQJmx9M4Iv hHgS2A/9F++Lx4V+RWeEk62Y0T2hv+oUa0UFhqb1Rh2JEg2YA6hrZblf7FfbH8p5 vHyjj8G5WjKvvrYqYvraihPLkk3yM1RmGe04XwpCS3BP+WLl7eLgOdZYtHthR/dJ D6QEBPvGCy3OKz+cXcq6N7leEeni/7qxmKs3wDGsBUdTGPV85OSV+XdVnqB5r/U+ OzzUNtWf6fKrlJch4JdPh38LW8Yzr2iA695+EY3zroa8g622D/CKWPQ/WPBnNcgk YJ2pBVQAz5cP3szRpNnoD9azRo9bdGJtE6Xt341d5QERY9aaWlQ6hVybFZlsjTbL Xyp63FwWOhE0Zv+JshLOgwS7aiU0dl3M/26JBhPabCKi1fmhoDGwt/DqyXq9ssA3 0T/R23qCXX+eH8xdzsHhYowlyqgv7sgZl3RHsp4VpPvam6Y5EzJbrzALLe9IWbpS CV8CMzKH5Ds0M1dsrExWo2vTQAXDztcEKF/0mbQlwrniNe9Dw7wcyHTQExTLm4/m f0voVKtHpJnFwKTS+mlcWBthAlefLlQxwKqONXh8BuFR4U6tY8U+yiyuvNBeZo3M bOFolLsb9Fok3/dKZaMUXu1KGyrJeBRfZqnAcZBn/g/xnZ/CF2FbgT1022EYm7wi 9ZBKmI9Fmf/NEEw2S3U6ZBnYEzHMVyOabC6avVkdeqPL8fFydPI= =w5nU -----END PGP SIGNATURE----- --=-=-=--