From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/17612 Path: news.gmane.org!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.gnus.user Subject: Re: font-locked Gnus browse server Date: Wed, 13 May 2015 23:15:40 +0200 Organization: Aioe.org NNTP Server Message-ID: <874mngfabn.fsf@debian.uxu> References: <878ucwhw7g.fsf@debian.uxu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1431551714 20404 80.91.229.3 (13 May 2015 21:15:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 May 2015 21:15:14 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Wed May 13 23:15:08 2015 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ysdze-0004iG-Vj for gegu-info-gnus-english@m.gmane.org; Wed, 13 May 2015 23:15:07 +0200 Original-Received: from localhost ([::1]:51456 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ysdze-0002Vi-C6 for gegu-info-gnus-english@m.gmane.org; Wed, 13 May 2015 17:15:06 -0400 Original-Path: usenet.stanford.edu!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-Lines: 36 Original-NNTP-Posting-Host: feB02bRejf23rfBm51Mt7Q.user.speranza.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:pAuG27UdrgqRlvU+F9i/a1sY9As= Mail-Copies-To: never Original-Xref: usenet.stanford.edu gnu.emacs.gnus:88740 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:17612 Archived-At: Tassilo Horn writes: >> Here is a dump [1] of how it could look, and the >> Elisp [2] that makes it look that way easily >> enough. Doesn't it look nice and, uhm, colorful? >> It seems even tho `font-lock-mode' is on, you still >> have to call `font-lock-fontify-buffer' to get >> the action. > > I think it would be there immediately if you call > `font-lock-add-keywords' with nil in place of > 'gnus-browse-mode. >From (describe-function 'font-lock-add-keywords) MODE should be a symbol, the major mode command name, such as `c-mode' or nil. If nil, highlighting keywords are added for the current buffer. >> I put it in `gnus-browse-mode-hook' but >> I don't think you should have to (?). > > Or you can put your current `font-lock-add-keywords' > call into your ~/.gnus. Then it would be evaluated > before gnus-browse-mode was activated. It is in an init file and it is evaluated before the mode is set. For some reason it doesn't kick in without the explicit call to `font-lock-fontify-buffer'. That has never been needed elsewhere in my experience. -- underground experts united http://user.it.uu.se/~embe8573