From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lute Kamstra Newsgroups: gmane.emacs.devel,gmane.emacs.gnus.general Subject: Re: run-hooks vs. run-mode-hooks. Date: Fri, 27 May 2005 17:12:11 +0200 Message-ID: <87br6w8zzo.fsf@xs4all.nl> References: <874qcro5gv.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 1117206837 19593 80.91.229.2 (27 May 2005 15:13:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 27 May 2005 15:13:57 +0000 (UTC) Cc: Katsumi Yamaoka , ding@gnus.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 27 17:13:54 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DbgV8-0005XD-Lz for ged-emacs-devel@m.gmane.org; Fri, 27 May 2005 17:11:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DbgZQ-0006Ds-KN for ged-emacs-devel@m.gmane.org; Fri, 27 May 2005 11:16:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DbgYD-0005mF-LG for emacs-devel@gnu.org; Fri, 27 May 2005 11:15:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DbgYB-0005kr-D8 for emacs-devel@gnu.org; Fri, 27 May 2005 11:15:03 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DbgYA-0005kZ-QK for emacs-devel@gnu.org; Fri, 27 May 2005 11:15:02 -0400 Original-Received: from [194.109.24.24] (helo=smtp-vbr4.xs4all.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DbgWO-0006dj-Ca; Fri, 27 May 2005 11:13:12 -0400 Original-Received: from pijl (a80-127-67-124.adsl.xs4all.nl [80.127.67.124]) by smtp-vbr4.xs4all.nl (8.13.3/8.13.3) with ESMTP id j4RFCCKq079109; Fri, 27 May 2005 17:12:12 +0200 (CEST) (envelope-from Lute.Kamstra@xs4all.nl) Original-Received: from lute by pijl with local (Exim 3.36 #1 (Debian)) id 1DbgVP-00013Z-00; Fri, 27 May 2005 17:12:11 +0200 Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Fri, 27 May 2005 10:20:23 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Original-Lines: 22 X-Virus-Scanned: by XS4ALL Virus Scanner X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:37781 gmane.emacs.gnus.general:60355 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:37781 Richard Stallman writes: > 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! It seems that that I was badly educated by code I read: I've quite often seen the use of constructs like the one above. > 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. That's what Katsumi did for gnus-score-mode. Other major mode in Gnus still use gnus-run-hooks which uses run-hooks. Katsumi, could you fix those modes in a similar way? Lute.