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:19:57 +0200 Message-ID: <8564yhcl2a.fsf@lola.goethe.zz> References: <87zmvu6ba2.fsf@xs4all.nl> <85ll7e68ei.fsf@lola.goethe.zz> <854qe2ihhi.fsf@lola.goethe.zz> <87d5spxzml.fsf-monnier+emacs@gnu.org> <85acntfnlb.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 1114026920 10089 80.91.229.2 (20 Apr 2005 19:55:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 20 Apr 2005 19:55:20 +0000 (UTC) Cc: rms@gnu.org, Lute.Kamstra.lists@xs4all.nl, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 20 21:55:17 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DOLGt-00020h-37 for ged-emacs-devel@m.gmane.org; Wed, 20 Apr 2005 21:54:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DOLLS-0007TA-K5 for ged-emacs-devel@m.gmane.org; Wed, 20 Apr 2005 15:58:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DOLL6-0007PA-3Q for emacs-devel@gnu.org; Wed, 20 Apr 2005 15:58:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DOLL4-0007OX-QS for emacs-devel@gnu.org; Wed, 20 Apr 2005 15:58:23 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DOLL4-0005iK-LB for emacs-devel@gnu.org; Wed, 20 Apr 2005 15:58:22 -0400 Original-Received: from [151.189.21.43] (helo=mail-in-03.arcor-online.net) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1DOL34-000477-Js; Wed, 20 Apr 2005 15:39:46 -0400 Original-Received: from lola.goethe.zz (i53879BBD.versanet.de [83.135.155.189]) by mail-in-03.arcor-online.net (Postfix) with ESMTP id E2B9C164F54; Wed, 20 Apr 2005 21:37:18 +0200 (CEST) Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id E785C1C1E222; Wed, 20 Apr 2005 21:19:57 +0200 (CEST) Original-To: Stefan Monnier In-Reply-To: (Stefan Monnier's message of "Wed, 20 Apr 2005 14:37:18 -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:36191 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36191 Stefan Monnier writes: >> The whole separation has been maintained rather meticulously. For > > Actually, it seems to still use lowercase for the "main" major mode > functions (like latex-mode, ...), which I think is wrong. I explained already why nothing else makes sense. AUCTeX makes extensive use of mode cookies in local variables, and those are only obeyed in the lowercase version. The choice of AUCTeX vs tex-mode is a user preference and should not be embedded into files. I am still thinking about whether to keep the current scheme which has tex-mode as the main function and TeX-mode as an alias into it, or switch that around. The problem with a switch is that "autoload" will not replace aliases, and so I can't replace the Emacs default scheme by just specifying new autoloads. > If you followed my auctex-override approach (where all of auctex, > except for this auctex-override file, defines only mixed-case > functions and variables), then it would be possible to have both > auctex and tex-mode loaded and in use in the vary same Emacs, as is > the case with perl-mode and cperl-mode. You don't have the same problems with Perl as with TeX/LaTeX, namely that the same file ending ".tex" is used for incompatible major modes TeX and LaTeX, and so it becomes a good idea to specify the major mode in local file variables. Anyway, I am not interested in continuing this discussion. AUCTeX has to deal with aliases in existing Emacs versions, however imprudent, anyway. If you are concerned about or interested in how it is going to do that, the right forum would be auctex-devel@gnu.org. While I agree with your original assessment that the presence of those aliases within tex-mode.el does more harm than good, we have to deal with it anyway. Removing them is no requirement, but just a breath of sanity. There is far more important work to get done in AUCTeX development than to fuss around about such details. As long as we don't have the luxury of more than a single person offering to do any particular task, there is no point in wasting that single person's time on defending his decisions. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum