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 23:33:10 +0200 Message-ID: <85u0m19lrd.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> <8564yhcl2a.fsf@lola.goethe.zz> <85y8bd9ovl.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 1114036207 10302 80.91.229.2 (20 Apr 2005 22:30:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 20 Apr 2005 22:30:07 +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 Thu Apr 21 00:30:04 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DONhR-0000bU-9R for ged-emacs-devel@m.gmane.org; Thu, 21 Apr 2005 00:29:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DONm1-0004Mz-RQ for ged-emacs-devel@m.gmane.org; Wed, 20 Apr 2005 18:34:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DOMvJ-00079L-4r for emacs-devel@gnu.org; Wed, 20 Apr 2005 17:39:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DOMvH-00077M-Pe for emacs-devel@gnu.org; Wed, 20 Apr 2005 17:39:52 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DOMvF-00076d-Dp for emacs-devel@gnu.org; Wed, 20 Apr 2005 17:39:51 -0400 Original-Received: from [151.189.21.45] (helo=mail-in-05.arcor-online.net) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1DOMrV-0003ck-Of; Wed, 20 Apr 2005 17:35:57 -0400 Original-Received: from lola.goethe.zz (i53879BBD.versanet.de [83.135.155.189]) by mail-in-05.arcor-online.net (Postfix) with ESMTP id B6DCC10CD5D; Wed, 20 Apr 2005 23:33:24 +0200 (CEST) Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 43CCB1C1E222; Wed, 20 Apr 2005 23:33:10 +0200 (CEST) Original-To: Stefan Monnier In-Reply-To: (Stefan Monnier's message of "Wed, 20 Apr 2005 16:57:59 -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:36200 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36200 Stefan Monnier writes: >>> I of course understand why it would override them, but not why it >>> would set major-mode to `latex-mode' rather than to `LaTeX-mode'. >>> >>> In my opinion, LaTeX-mode is the AUCTeX major mode, while >>> latex-mode can be either, depending on the user's preference. > >> You are confusing the value of the major-mode variable with the >> invocation. > > No such confusion: I'm quite aware of the difference. I may be > misrepresenting things because looking at the current auctex CVS code > I can't see where LaTeX-mode is defined. > > The variable `major-mode' *should* hold the function corresponding > to this invocation, so you can return to the current major mode by > calling it. There is no point in using both latex-mode and LaTeX-mode to mean something differently. There is a (albeit minor) point to using both plain-tex-mode from tex-mode.el and LaTeX-mode from AUCTeX, though. > It's used for C-h m for example, and probably by other things > (e.g. clone-buffer, maybe mmm-mode, some hacks to "temporarily > switch major mode", ...). > >> The invocation "LaTeX-mode" installs latex-mode with AUCTeX >> keybindings, syntax tables, mode hooks and variables. > > In my opinion, calling LaTeX-mode should install LaTeX-mode. That would mean that pretty much all mode-sensitive functions from AUCTeX would break if you tried using them in a latex-mode started session and vice versa. I don't see the point in providing different function bindings to latex-mode and LaTeX-mode. >> Except that it makes it harder to have unload-feature restore the >> state previous to the loading. > > Yes, but you can't rely on unload-feature restoring the previous > state anyway because it's broken, so it's not like it makes things > worse. I am relying on that part of the behavior that is not broken. If I insisted on using and programming for only systems that are completely unbroken in all respects, I'd not be using a computer. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum