From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/17618 Path: news.gmane.org!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.gnus.user Subject: Re: font-locked Gnus browse server Date: Sat, 16 May 2015 23:25:43 +0200 Organization: Aioe.org NNTP Server Message-ID: <87oalkfc4o.fsf@debian.uxu> References: <878ucwhw7g.fsf@debian.uxu> <874mngfabn.fsf@debian.uxu> <878ucqgchs.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 1431811511 13774 80.91.229.3 (16 May 2015 21:25:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 May 2015 21:25:11 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Sat May 16 23:25:06 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 1YtjZy-0006Wn-4h for gegu-info-gnus-english@m.gmane.org; Sat, 16 May 2015 23:25:06 +0200 Original-Received: from localhost ([::1]:35537 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YtjZx-0005nG-HL for gegu-info-gnus-english@m.gmane.org; Sat, 16 May 2015 17:25:05 -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:r3m5M0Nv9w/kIC0yHrXMjTTCoZU= Mail-Copies-To: never Original-Xref: usenet.stanford.edu gnu.emacs.gnus:88746 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:17618 Archived-At: Tassilo Horn writes: > Yes, this could also work. BTW, `font-lock-defaults' > is automatically buffer-local, no need to make > it so. Check out `gnus-server-mode' - gnus-srvr.el, which I have as /usr/share/emacs/24.4/lisp/gnus/gnus-srvr.el line 263: (set (make-local-variable 'font-lock-defaults) ; ... >> With MODE as nil the font lock is done one the >> basis of the current buffer. It is not related to >> the mode itself apart from the invocation being >> placed in the mode entry hook. This means the >> keywords have to be added every time the mode >> is entered. > > Yes, but that doesn't make a difference, no? All three solutions are equally bad in that all rely on the hook. The best solution would be to change `gnus-browse-mode' to do what gnus-server-mode does so `font-lock-defaults' is set and one only has to bother with the colors in an ordinary init file and can drop the hook. -- underground experts united http://user.it.uu.se/~embe8573