From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: eval-after-load as a macro (and eval-next-after-load) Date: Sun, 13 Apr 2003 20:55:31 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <20030413204739.F314.LEKTU@terra.es> References: <20030407185925.BBA2.LEKTU@terra.es> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1050260535 30983 80.91.224.249 (13 Apr 2003 19:02:15 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 13 Apr 2003 19:02:15 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun Apr 13 21:02:13 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 194mk1-00083b-00 for ; Sun, 13 Apr 2003 21:02:13 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 194ml2-00028V-00 for ; Sun, 13 Apr 2003 21:03:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 194mjH-0006YZ-01 for emacs-devel@quimby.gnus.org; Sun, 13 Apr 2003 15:01:27 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 194mij-0005wJ-00 for emacs-devel@gnu.org; Sun, 13 Apr 2003 15:00:53 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 194miY-0005jd-00 for emacs-devel@gnu.org; Sun, 13 Apr 2003 15:00:43 -0400 Original-Received: from smtp.terra.es ([213.4.129.129] helo=tsmtp6.mail.isp) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 194mi5-0005Ok-00; Sun, 13 Apr 2003 15:00:13 -0400 Original-Received: from [80.36.30.211] ([80.36.30.211]) by tsmtp6.mail.isp (terra.es) with ESMTP id HDAPWG01.BTK; Sun, 13 Apr 2003 20:55:28 +0200 Original-To: Richard Stallman , emacs-devel@gnu.org In-Reply-To: X-Mailer: Becky! ver. 2.05.10 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:13209 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:13209 On Mon, 07 Apr 2003 22:31:03 -0400, Richard Stallman wrote: > Does this patch solve that problem? > ! (run-mode-hooks ',hook))))) > ! (if (fboundp 'run-mode-hooks) > ! (run-mode-hooks ',hook) > ! (run-hooks ',hook)))))) With this patch, 21.3 does not fail when loading a HEAD-compiled mode defined with `define-derived-mode'. Still, it does not "work", so to speak. As a simple example: # .emacs contains: (load "font-lock") (global-font-lock-mode 1) (autoload 'test-mode "test-mode") # test-mode.el contains: (define-derived-mode test-mode emacs-lisp-mode "Test Mode" "Test mode derived from emacs-lisp-mode.") # test.el contains: # -*- mode: test-mode -*- Case 1: - compile test-mode.el with 21.3 - start 21.3 - load test.el The comment in test.el is font-locked. Case 2: - compile test-mode.el with HEAD - start 21.3 - load test.el The comment in test.el is not font-locked. /L/e/k/t/u