From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/14605 Path: main.gmane.org!not-for-mail From: Mike McEwan Newsgroups: gmane.emacs.gnus.general Subject: Where are `gnus-agent-group/summary-mode-hooks' run from? Date: 15 Mar 1998 23:33:11 +0000 Sender: owner-ding@hpc.uh.edu Message-ID: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 (generated by tm-edit 7.108) Content-Type: text/plain; charset=US-ASCII X-Trace: main.gmane.org 1035153769 17138 80.91.224.250 (20 Oct 2002 22:42:49 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 22:42:49 +0000 (UTC) Return-Path: Original-Received: from xemacs.org (xemacs.cs.uiuc.edu [128.174.252.16]) by altair.xemacs.org (8.8.8/8.8.8) with ESMTP id QAA08486 for ; Sun, 15 Mar 1998 16:16:56 -0800 Original-Received: from gizmo.hpc.uh.edu (gizmo.hpc.uh.edu [129.7.102.31]) by xemacs.org (8.8.5/8.8.5) with ESMTP id SAA19162 for ; Sun, 15 Mar 1998 18:11:31 -0600 (CST) Original-Received: from sina.hpc.uh.edu (sina.hpc.uh.edu [129.7.3.5]) by gizmo.hpc.uh.edu (8.7.6/8.7.3) with ESMTP id SAN17424; Sun, 15 Mar 1998 18:46:38 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sun, 15 Mar 1998 18:10:30 -0600 (CST) Original-Received: from claymore.vcinet.com (claymore.vcinet.com [208.205.12.23]) by sina.hpc.uh.edu (8.7.3/8.7.3) with SMTP id SAA13857 for ; Sun, 15 Mar 1998 18:10:17 -0600 (CST) Original-Received: (qmail 21898 invoked by uid 504); 16 Mar 1998 00:09:36 -0000 Original-Received: (qmail 21895 invoked from network); 16 Mar 1998 00:09:36 -0000 Original-Received: from post-20.mail.demon.net (HELO post.mail.demon.net) (194.217.242.27) by claymore.vcinet.com with SMTP; 16 Mar 1998 00:09:35 -0000 Original-Received: from lotusland.demon.co.uk ([158.152.62.156]) by post.mail.demon.net id aa2010849; 15 Mar 98 23:36 GMT Original-Received: from mike by lotusland.demon.co.uk with local (Exim 1.82 #1) id 0yEMwi-0000Fy-00; Sun, 15 Mar 1998 23:36:00 +0000 Original-To: ding@gnus.org X-Mailer: Gnus v5.6.2/XEmacs 20.4 - "Emerald" Original-Lines: 29 MMDF-Warning: Parse error in original version of preceding line at post.mail.demon.net Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:14605 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:14605 Well, I decided to have a look at Emacs 20.2 just in case I was missing out on anything. In the process of getting gnus 5.6.2 working I noticed that the `agent' had menu-bar items in both group and summary modes - I hadn't seen these under Xemacs. Upon return to Xemacs I decided to try and enable these menu items, but couldn't see anything in the manual as to how this is achieved. After quite a bit of code perusal, I concluded that, under Xemacs at least, these menu items are installed via: `gnus-agent-group-mode-hook' and `gnus-agent-summary-mode-hook' However, grepping the lisp directory, I cannot see where these hooks are meant to be run from. I noticed that `gnus-agent-mode-hook' was run when invoking `gnus-agent-mode' and so I've ended up adding the following to my .gnus.el, which seems to do the job: (add-hook 'gnus-agent-mode-hook '(lambda () (if gnus-agent-group-mode (gnus-run-hooks 'gnus-agent-group-mode-hook) (gnus-run-hooks 'gnus-agent-summary-mode-hook)))) I'm still wet behind the ears when it comes to lisp, and so I was wondering whether I have missed something, or has Lars maybe forgotten to have these hooks run at the appropriate juncture? -- Mike.