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:28:50 +0200 Message-ID: <87ll4wdwzh.fsf@xs4all.nl> References: <87y8a3mnz8.fsf@xs4all.nl> <87ll63weye.fsf-monnier+emacs@gnu.org> <200505251624.j4PGOBF24551@raven.dms.auburn.edu> <87hdgql1nd.fsf@xs4all.nl> <87sm092ivl.fsf@jurta.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1119862448 18494 80.91.229.2 (27 Jun 2005 08:54:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 27 Jun 2005 08:54:08 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 27 10:54:06 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DmpNG-0003dt-3s for ged-emacs-devel@m.gmane.org; Mon, 27 Jun 2005 10:53:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DmpUr-0003QQ-K3 for ged-emacs-devel@m.gmane.org; Mon, 27 Jun 2005 05:01:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DmpL1-0006of-Fd for emacs-devel@gnu.org; Mon, 27 Jun 2005 04:51:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Dmp61-00064m-PC for emacs-devel@gnu.org; Mon, 27 Jun 2005 04:36:05 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dmp42-00060n-Fz for emacs-devel@gnu.org; Mon, 27 Jun 2005 04:34:00 -0400 Original-Received: from [194.109.24.27] (helo=smtp-vbr7.xs4all.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Dmp3G-0006JJ-4F; Mon, 27 Jun 2005 04:33:10 -0400 Original-Received: from pijl (a80-127-67-124.adsl.xs4all.nl [80.127.67.124]) by smtp-vbr7.xs4all.nl (8.13.3/8.13.3) with ESMTP id j5R8Sp0t030023; Mon, 27 Jun 2005 10:28:51 +0200 (CEST) (envelope-from Lute.Kamstra@xs4all.nl) Original-Received: from lute by pijl with local (Exim 3.36 #1 (Debian)) id 1Dmoz4-0005D8-00; Mon, 27 Jun 2005 10:28:50 +0200 Original-To: Juri Linkov In-Reply-To: <87sm092ivl.fsf@jurta.org> (Juri Linkov's message of "Fri, 27 May 2005 11:07:07 +0300") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Original-Lines: 14 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:39632 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:39632 Juri Linkov writes: >> We also need to find other modes that are effectively "derived" and >> ought to use delay-mode-hooks. I think one could write a Lisp >> program that would search for a match for "([-a-z]+-mode " within a >> defun that starts with "(defun [-a-z]+-mode ". > > For searching in Lisp structures I use the following piece of code > (not a separate package yet): Thanks Juri! I used your code to find "manually defined" derived modes. I think I found and fixed most of them. Lute.