From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general,gmane.emacs.devel Subject: Re: run-hooks vs. run-mode-hooks. Date: Fri, 27 May 2005 12:32:15 +0900 Organization: Emacsen advocacy group Message-ID: References: <874qcro5gv.fsf@xs4all.nl> <87hdgp4fa1.fsf@xs4all.nl> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1117164888 32176 80.91.229.2 (27 May 2005 03:34:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 27 May 2005 03:34:48 +0000 (UTC) Cc: emacs-devel@gnu.org, ding@gnus.org Original-X-From: ding-owner+M8879@lists.math.uh.edu Fri May 27 05:34:46 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DbVcD-00055v-FJ for ding-account@gmane.org; Fri, 27 May 2005 05:34:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1DbVaT-0003hu-00; Thu, 26 May 2005 22:32:41 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1DbVaP-0003hp-00 for ding@lists.math.uh.edu; Thu, 26 May 2005 22:32:37 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by util2.math.uh.edu with esmtp (Exim 4.30) id 1DbVaO-0001VS-Nm for ding@lists.math.uh.edu; Thu, 26 May 2005 22:32:36 -0500 Original-Received: from washington.hostforweb.net ([66.225.201.13]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1DbVaN-00044c-00 for ; Fri, 27 May 2005 05:32:35 +0200 Original-Received: from localhost ([127.0.0.1]) by washington.hostforweb.net with esmtpa (Exim 4.50) id 1DbVaa-0001Sc-Cs; Thu, 26 May 2005 22:32:48 -0500 Original-To: Lute Kamstra X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:8OB6gL9FzTKVyR8z0VEeuBQgzoY= X-Hashcash: 1:20:050527:lute.kamstra.lists@xs4all.nl::QlH9eO2QCUySeWcC:0000000000000000000000000000000004suX X-Hashcash: 1:20:050527:emacs-devel@gnu.org::E2Rn7VIg6+iw9dPB:0000000000000000000000000000000000000000001OWQ X-Hashcash: 1:20:050527:ding@gnus.org::gCQkX66XeCwJNMMN:00005uSP X-Antivirus-Scanner: Clean mail though you should still use an Antivirus X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - washington.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -4.9 (----) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:60352 gmane.emacs.devel:37750 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:37750 >>>>> In <87hdgp4fa1.fsf@xs4all.nl> Lute Kamstra wrote: >> Is it possible to use run-hooks in those Emacs versions? > Maybe Gnus can do something like: > (or (fboundp 'run-mode-hooks) > (defalias 'run-mode-hooks 'run-hooks)) > I saw that most hooks are run with gnus-run-hooks, which calls > run-hooks. Maybe you can also define a gnus-run-mode-hooks that uses > run-mode-hooks instead and use that function for Gnus' major modes? I've added gnus-run-mode-hooks to both the Gnus trunk and the v5-10 branch (synch'd with the Emacs trunk). Thank you for the good suggestion.