From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.gnus.general,gmane.emacs.devel Subject: Re: run-hooks vs. run-mode-hooks. Date: Fri, 27 May 2005 10:20:23 -0400 Message-ID: References: <874qcro5gv.fsf@xs4all.nl> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1117203948 9592 80.91.229.2 (27 May 2005 14:25:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 27 May 2005 14:25:48 +0000 (UTC) Cc: Lute.Kamstra.lists@xs4all.nl, ding@gnus.org, emacs-devel@gnu.org Original-X-From: ding-owner+M8881@lists.math.uh.edu Fri May 27 16:25:43 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DbflK-0004v5-Me for ding-account@gmane.org; Fri, 27 May 2005 16:24:35 +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 1Dbfi9-0005MS-00; Fri, 27 May 2005 09:21:17 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1Dbfi1-0005MM-00 for ding@lists.math.uh.edu; Fri, 27 May 2005 09:21:09 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by util2.math.uh.edu with esmtp (Exim 4.30) id 1Dbfhz-0000nM-Qh for ding@lists.math.uh.edu; Fri, 27 May 2005 09:21:08 -0500 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Dbfhy-0002sl-00 for ; Fri, 27 May 2005 16:21:06 +0200 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1DbfhH-0004Zk-BU; Fri, 27 May 2005 10:20:23 -0400 Original-To: Katsumi Yamaoka In-reply-to: (message from Katsumi Yamaoka on Fri, 27 May 2005 09:58:42 +0900) X-Spam-Score: -4.8 (----) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:60354 gmane.emacs.devel:37770 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:37770 Is it possible to use run-hooks in those Emacs versions? Yes, but it won't always be correct. Maybe Gnus can do something like: (or (fboundp 'run-mode-hooks) (defalias 'run-mode-hooks 'run-hooks)) Definitely not! Gnus should not mess with the way Emacs defines (or doesn't define) these functions! 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.