From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Removing unloaded functions from auto-mode-alist. Date: Wed, 20 Apr 2005 21:00:59 +0200 Message-ID: <85acntclxw.fsf@lola.goethe.zz> References: <87zmvu6ba2.fsf@xs4all.nl> <85ll7e68ei.fsf@lola.goethe.zz> <854qe2ihhi.fsf@lola.goethe.zz> <8764yi4awh.fsf@xs4all.nl> <85k6mygxiw.fsf@lola.goethe.zz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1114023496 31102 80.91.229.2 (20 Apr 2005 18:58:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 20 Apr 2005 18:58:16 +0000 (UTC) Cc: Lute Kamstra , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 20 20:58:13 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DOKOQ-0002Pt-UM for ged-emacs-devel@m.gmane.org; Wed, 20 Apr 2005 20:57:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DOKSz-0001A0-HO for ged-emacs-devel@m.gmane.org; Wed, 20 Apr 2005 15:02:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DOKSm-00019l-1k for emacs-devel@gnu.org; Wed, 20 Apr 2005 15:02:16 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DOKSk-00019Z-6c for emacs-devel@gnu.org; Wed, 20 Apr 2005 15:02:15 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DOKSk-0000dz-47 for emacs-devel@gnu.org; Wed, 20 Apr 2005 15:02:14 -0400 Original-Received: from [151.189.21.41] (helo=mail-in-01.arcor-online.net) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1DOKU4-0001mb-8a for emacs-devel@gnu.org; Wed, 20 Apr 2005 15:03:36 -0400 Original-Received: from lola.goethe.zz (i53879BBD.versanet.de [83.135.155.189]) by mail-in-01.arcor-online.net (Postfix) with ESMTP id B50991CF2F; Wed, 20 Apr 2005 21:00:16 +0200 (CEST) Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 29C071C1E222; Wed, 20 Apr 2005 21:00:59 +0200 (CEST) Original-To: Stefan Monnier In-Reply-To: (Stefan Monnier's message of "Wed, 20 Apr 2005 14:41:16 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:36184 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36184 Stefan Monnier writes: >>>> In the mean time, you can use an auctex-override-unload-hook to >>>> re-install the autoloads. >>> Don't you mean auctex-unload-hook? >> Probably. > > No. I was talking about a new file auctex-override.el which > provides the feature auctex-override and whose unloading runs thus > the auctex-override-unload-hook. This file would be the only one > fiddling with non-mixed-case functions and variables. That's pretty much useless. An installation of AUCTeX that does not occupy the function cells of tex-mode and latex-mode and other lowercase names is essentially dead as it won't get invoked on file names and mode line cookies. And if tex-mode.el is loaded after AUCTeX files, it will even wipe out the native TeX-mode and LaTeX-mode definitions of AUCTeX. So auctex.el without auctex-override.el would be a waste of time. In the rare case that you want a mixture of TeX modes, you can just require auctex (which only sets up autoloads and aliases) and then overwrite the autoloads/aliases you don't want, letting them refer to tex-mode.el again. But to get something even close to working, you'll need to do the equivalent of (flet (LaTeX-mode) (require 'tex-mode)) so that tex-mode does not permanently remove AUCTeX's LaTeX-mode. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum