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: Mon, 30 May 2005 15:45:54 +0900 Organization: Emacsen advocacy group Message-ID: References: <874qcro5gv.fsf@xs4all.nl> <87br6w8zzo.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 1117436086 28413 80.91.229.2 (30 May 2005 06:54:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 30 May 2005 06:54:46 +0000 (UTC) Cc: rms@gnu.org, ding@gnus.org, emacs-devel@gnu.org Original-X-From: ding-owner+M8895@lists.math.uh.edu Mon May 30 08:54:44 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DceAZ-0008Hx-4p for ding-account@gmane.org; Mon, 30 May 2005 08:54:39 +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 1Dce2P-00073D-00; Mon, 30 May 2005 01:46:13 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1Dce2L-000738-00 for ding@lists.math.uh.edu; Mon, 30 May 2005 01:46:09 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by util2.math.uh.edu with esmtp (Exim 4.30) id 1Dce2K-0003I2-BZ for ding@lists.math.uh.edu; Mon, 30 May 2005 01:46:08 -0500 Original-Received: from washington.hostforweb.net ([66.225.201.13]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Dce2J-0002a5-00 for ; Mon, 30 May 2005 08:46:07 +0200 Original-Received: from [127.0.0.1] (helo=localhost) by washington.hostforweb.net with esmtpa (Exim 4.50) id 1Dce2Y-0004Ws-Q3; Mon, 30 May 2005 01:46:23 -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:5NGng1kI6CIxBtInqzOqOlGtv+E= X-Hashcash: 1:20:050530:lute.kamstra.lists@xs4all.nl::qFdptQceGYM3dHH8:00000000000000000000000000000000009PR X-Hashcash: 1:20:050530:rms@gnu.org::darFjHDZq6xetQpU:0000003zlq X-Hashcash: 1:20:050530:ding@gnus.org::QUYp/OJMnv/7c4eA:00001MKc X-Hashcash: 1:20:050530:emacs-devel@gnu.org::qKFOwdUVgf6x8wiA:0000000000000000000000000000000000000000000dDo 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:60368 gmane.emacs.devel:37880 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:37880 >>>>>> In <87br6w8zzo.fsf@xs4all.nl> >>>>>> Lute Kamstra wrote: >> Other major mode in Gnus still use gnus-run-hooks which uses >> run-hooks. Katsumi, could you fix those modes in a similar way? >>>>> In Katsumi Yamaoka wrote: > Ok, I'll make time to do that, maybe in Monday. >>>>> In Richard Stallman wrote: > Is it possible to use run-hooks in those Emacs versions? > Gnus should define a function called gnus-run-mode-hooks, which calls > run-mode-hooks if that is defined, otherwise run-hooks. Then all the > modes in Gnus could use gnus-run-mode-hooks. I've done it in the Gnus trunk and the v5-10 branch.