From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lute Kamstra Newsgroups: gmane.emacs.devel Subject: Re: org-mode and mode hooks. Date: Mon, 27 Jun 2005 10:25:08 +0200 Message-ID: <87r7eodx5n.fsf@xs4all.nl> References: <87y8a3mnz8.fsf@xs4all.nl> <87ll63weye.fsf-monnier+emacs@gnu.org> <200505251624.j4PGOBF24551@raven.dms.auburn.edu> <87hdgql1nd.fsf@xs4all.nl> <87u0kpki62.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 1119862213 17763 80.91.229.2 (27 Jun 2005 08:50:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 27 Jun 2005 08:50:13 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 27 10:50:12 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DmpJ2-0002rq-Gb for ged-emacs-devel@m.gmane.org; Mon, 27 Jun 2005 10:49:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DmpQd-0000UU-UX for ged-emacs-devel@m.gmane.org; Mon, 27 Jun 2005 04:57:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DmpEs-0006Nc-NT for emacs-devel@gnu.org; Mon, 27 Jun 2005 04:45:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DmpEh-0006Mm-Cf for emacs-devel@gnu.org; Mon, 27 Jun 2005 04:45:04 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dmp67-00060n-US for emacs-devel@gnu.org; Mon, 27 Jun 2005 04:36:09 -0400 Original-Received: from [194.109.24.35] (helo=smtp-vbr15.xs4all.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Dmozf-0005yF-Pk; Mon, 27 Jun 2005 04:29:39 -0400 Original-Received: from pijl (a80-127-67-124.adsl.xs4all.nl [80.127.67.124]) by smtp-vbr15.xs4all.nl (8.13.3/8.13.3) with ESMTP id j5R8P9bZ015423; Mon, 27 Jun 2005 10:25:09 +0200 (CEST) (envelope-from Lute.Kamstra@xs4all.nl) Original-Received: from lute by pijl with local (Exim 3.36 #1 (Debian)) id 1DmovU-0005D4-00; Mon, 27 Jun 2005 10:25:08 +0200 Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Fri, 27 May 2005 10:18:50 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Original-Lines: 17 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:39631 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:39631 Richard Stallman writes: > Of course my method failed to find any major modes that don't run mode > hooks at all. Maybe someone else could try to fix those? > > Perhaps one could find these easily with a Lisp program > that searches for a defun whose start matches "(defun [-a-z]+-mode " > and that does not contain "(run-". I did this. I think I found all and fixed most modes that did not run mode hooks. There are a few exceptions involving special major modes like terminal-mode in lisp/terminal.el where the mode hook is run outside of the major mode function by the caller of the major mode function. I figured that fixing those complex cases is too error-prone so I left them alone. Lute.