From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Richard M. Stallman" Newsgroups: gmane.emacs.devel Subject: Re: org-mode and mode hooks. Date: Tue, 28 Jun 2005 00:16:53 -0400 Message-ID: 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> <87r7eodx5n.fsf@xs4all.nl> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1119933587 21442 80.91.229.2 (28 Jun 2005 04:39:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 28 Jun 2005 04:39:47 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 28 06:39:29 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dn7qd-00085y-VE for ged-emacs-devel@m.gmane.org; Tue, 28 Jun 2005 06:37:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dn7yP-0005nN-Uk for ged-emacs-devel@m.gmane.org; Tue, 28 Jun 2005 00:45:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Dn7sG-0002ew-Df for emacs-devel@gnu.org; Tue, 28 Jun 2005 00:39:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Dn7sF-0002e6-5k for emacs-devel@gnu.org; Tue, 28 Jun 2005 00:39:03 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dn7pH-0001DS-Bh for emacs-devel@gnu.org; Tue, 28 Jun 2005 00:35:59 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Dn7cZ-0004VG-CS for emacs-devel@gnu.org; Tue, 28 Jun 2005 00:22:51 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1Dn7Wn-0000gL-5W; Tue, 28 Jun 2005 00:16:53 -0400 Original-To: Lute Kamstra In-reply-to: <87r7eodx5n.fsf@xs4all.nl> (message from Lute Kamstra on Mon, 27 Jun 2005 10:25:08 +0200) 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:39740 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:39740 > 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. Thanks. 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. Ok.