From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/35966 Path: main.gmane.org!not-for-mail From: Karl Kleinpaste Newsgroups: gmane.emacs.gnus.general Subject: Load-time hooks (Re: Emphasis in *Article* buffer) Date: 20 Apr 2001 10:01:35 -0400 Organization: Vanilla Knot Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035171632 6034 80.91.224.250 (21 Oct 2002 03:40:32 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:40:32 +0000 (UTC) Return-Path: Original-Received: (qmail 10203 invoked by alias); 20 Apr 2001 14:01:41 -0000 Original-Received: (qmail 10198 invoked from network); 20 Apr 2001 14:01:39 -0000 Original-Received: from mesquite.slip.cs.cmu.edu (HELO cinnamon.vanillaknot.com) (128.2.207.11) by gnus.org with SMTP; 20 Apr 2001 14:01:39 -0000 Original-Received: (from karl@localhost) by cinnamon.vanillaknot.com (8.9.3/8.9.3) id KAA25615; Fri, 20 Apr 2001 10:01:38 -0400 Original-To: Gnus Development Original-Newsgroups: gnu.emacs.gnus X-Face: "5(T0tZd{6}pd~YzBG8O/*EW,.]6]@`m^e;fv65W^Y&=d"M\1H}>T~4_.kcDD.O~y3k)a6 hR;Nmi>9|>Nm${2IpM0^RcUEa\jcq?KOP)C&~x51l~zCHTulL^_T|u0I^kB'z@]{`2YjQu User-Agent: Gnus/5.090003 (Oort Gnus v0.03) XEmacs/21.4 (Solid Vapor) In-Reply-To: (Toby Speight's message of "20 Apr 2001 13:55:37 +0100") Posted-To: gnu.emacs.gnus Original-Lines: 22 Xref: main.gmane.org gmane.emacs.gnus.general:35966 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:35966 [ Courtesy, mailed copy of posted message (auto-generated). ] In gnu.emacs.gnus, Toby Speight writes: > (add-hook 'gnus-art-load-hook 'my-gnus-art-load-hook) I was about to ask, "What is gnus-art-load-hook?" But then I grep'd for it in *.el, and there it is, at the very end of gnus-art.el. At first, I thought it was named very badly. All other article-related hooks are named gnus-article-*-hook. Then I realized this isn't a normal article hook; there's a whole slew of these per-file load-time hooks: [1061] [09:51:46] cinnamon:~/Emacs/gnus/lisp> grep '^(run-hook' *.el earcon.el:(run-hooks 'earcon-load-hook) gnus-art.el:(run-hooks 'gnus-art-load-hook) gnus-audio.el:(run-hooks 'gnus-audio-load-hook) gnus-setup.el:(run-hooks 'gnus-setup-load-hook) gnus-sum.el:(run-hooks 'gnus-sum-load-hook) message.el:(run-hooks 'message-load-hook) nnheader.el:(run-hooks 'nnheader-load-hook) nnmail.el:(run-hooks 'nnmail-load-hook) None of them are documented in the manual. Hm. "Naughty, naughty."