From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: run-hooks vs. run-mode-hooks. Date: Fri, 27 May 2005 10:01:30 +0200 Message-ID: References: <874qcro5gv.fsf@xs4all.nl> <87hdgp4fa1.fsf@xs4all.nl> Reply-To: Juanma Barranquero NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1117182440 7054 80.91.229.2 (27 May 2005 08:27:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 27 May 2005 08:27:20 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 27 10:27:18 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dba9t-0002Cd-PF for ged-emacs-devel@m.gmane.org; Fri, 27 May 2005 10:25:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DbaE7-0006Md-L5 for ged-emacs-devel@m.gmane.org; Fri, 27 May 2005 04:29:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DbZuM-0006W0-G7 for emacs-devel@gnu.org; Fri, 27 May 2005 04:09:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DbZuC-0006RG-5Q for emacs-devel@gnu.org; Fri, 27 May 2005 04:09:21 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DbZuB-0006Qc-L9 for emacs-devel@gnu.org; Fri, 27 May 2005 04:09:19 -0400 Original-Received: from [64.233.184.201] (helo=wproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DbZnQ-00065X-Td for emacs-devel@gnu.org; Fri, 27 May 2005 04:02:21 -0400 Original-Received: by wproxy.gmail.com with SMTP id 50so907167wri for ; Fri, 27 May 2005 01:01:30 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=I2YwDZWEO1kcvTi2NyJC90T7yq1vnqpUowVTOWqDtwr9vFncwYFPyUedvcI4gevT3ZHLIwAdwNxIS63HVhMAyP/bfbYjsZArg2wMTg139C56D6QKggkXolSiWF1a1XOe0IDhe63pIGnOqk0PP643oshw2WnW8bUhC06rYXRanrw= Original-Received: by 10.54.145.14 with SMTP id s14mr1470292wrd; Fri, 27 May 2005 01:01:30 -0700 (PDT) Original-Received: by 10.54.82.6 with HTTP; Fri, 27 May 2005 01:01:30 -0700 (PDT) Original-To: emacs-devel@gnu.org In-Reply-To: <87hdgp4fa1.fsf@xs4all.nl> Content-Disposition: inline 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:37759 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:37759 > Maybe Gnus can do something like: >=20 > (or (fboundp 'run-mode-hooks) > (defalias 'run-mode-hooks 'run-hooks)) (Not in this case, that's already been fixed but) that would not be good. The usual answer is making your own lookalike: (if (fboundp 'function-in-doubt) (defalias 'mymodule-function-in-doubt 'function-in-doubt) (defun mymodule-function-in-doubt ...)) Otherwise, you're gonna mislead any module loaded afterwards that tries to determine whether 'function-in-doubt exists or not. --=20 /L/e/k/t/u