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 17:43:13 +0200 Message-ID: <85ekd5fo8e.fsf@lola.goethe.zz> References: <87zmvu6ba2.fsf@xs4all.nl> <85ll7e68ei.fsf@lola.goethe.zz> <854qe2ihhi.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 1114018743 15046 80.91.229.2 (20 Apr 2005 17:39:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 20 Apr 2005 17:39:03 +0000 (UTC) Cc: Stefan Monnier , 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 19:39:00 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DOJ9Q-00070o-2c for ged-emacs-devel@m.gmane.org; Wed, 20 Apr 2005 19:38:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DOJDx-0002lK-Vg for ged-emacs-devel@m.gmane.org; Wed, 20 Apr 2005 13:42:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DOJDp-0002ii-GO for emacs-devel@gnu.org; Wed, 20 Apr 2005 13:42:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DOJDn-0002gN-S6 for emacs-devel@gnu.org; Wed, 20 Apr 2005 13:42:45 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DOJDn-0001jq-Ng for emacs-devel@gnu.org; Wed, 20 Apr 2005 13:42:43 -0400 Original-Received: from [151.189.21.48] (helo=mail-in-08.arcor-online.net) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1DOJEJ-0004Ue-MR; Wed, 20 Apr 2005 13:43:16 -0400 Original-Received: from lola.goethe.zz (i53879BBD.versanet.de [83.135.155.189]) by mail-in-08.arcor-online.net (Postfix) with ESMTP id 8E5A672D34; Wed, 20 Apr 2005 19:40:39 +0200 (CEST) Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 028621CE0B2D; Wed, 20 Apr 2005 17:43:13 +0200 (CEST) Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Wed, 20 Apr 2005 10:57:23 -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:36177 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36177 Richard Stallman writes: > Any objection to removing those aliases? > These names belong to AUCTeX and are just wrong in tex-mode.el. > > I don't see any reason to consider them "wrong", or to think they > "belong" to anything other than tex-mode.el. To put a bit more perspective on this: they serve no purpose within Emacs or tex-mode.el, are referenced nowhere and documented nowhere. The only conceivable way they could be called unwittingly by a user is if a TeX file from somebody else contained a "mode: TeX" or "mode: LaTeX" specification. However, not even this case applies since mode specs in local variables are downcased before use. Now it also is the case that all the prefixes for variables and functions in tex-mode.el are lowercase. In contrast, all of the prefixes for variables and functions in AUCTeX are mixed case. This is especially true for hook variables and everything else pertaining to modes, with the sole exception of the setting of major-mode itself (which is indicated by lower case mode names). I have grepped through the Emacs tree right now for "TeX-". The only locations where it is found is when there is an explicit reference to AUCTeX functions, and in the doc string for "define-derived-mode" which is, in my opinion, misguided at least. Then there some occurences in add-log-tex-like-modes that allow major-mode to be "LaTeX-mode" or "TeX-mode", presumably because they want to accommodate AUCTeX. AUCTeX itself never sets major-mode to a mixed spelled symbol, so this courtesy is, while appreciated, wasted. The only unavoidable symbol clashes that exist are the major mode invocation functions: obviously the user has to make the choice whether he prefers AUCTeX or tex-mode for editing TeX and LaTeX files, and this preference has to be reflected in the meaning of tex-mode and latex-mode, since those are what gets invoked for TeX and LaTeX files. Now while the conflicts for tex-mode and latex-mode are a necessary consequence of AUCTeX being an alternative implementation of TeX modes, there is no fathomable reason to have this conflict for TeX-mode and LaTeX-mode as well. All of the hook variables and internals of AUCTeX are carefully designed to work with _those_ spellings in order to allow a parallel installation with tex-mode.el, and there really is no conceivable reason I can see for the aliases in tex-mode.el. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum