From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Richard M. Stallman" Newsgroups: gmane.emacs.devel Subject: Re: Specifying mode in file variables trouble Date: Mon, 22 Sep 2008 00:39:07 -0400 Message-ID: References: <48D44761.6000809@gmail.com> <87ljxny6n8.fsf@catnip.gol.com> <48D44C79.9020004@gmail.com> <48D63F30.8060102@gmail.com> <48D6E8FB.4070108@gmail.com> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1222058486 2805 80.91.229.12 (22 Sep 2008 04:41:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Sep 2008 04:41:26 +0000 (UTC) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: "Lennart Borgman (gmail)" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 22 06:42:23 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KhdFe-0000fa-La for ged-emacs-devel@m.gmane.org; Mon, 22 Sep 2008 06:42:22 +0200 Original-Received: from localhost ([127.0.0.1]:55877 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KhdEY-00067y-N5 for ged-emacs-devel@m.gmane.org; Mon, 22 Sep 2008 00:41:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KhdEU-00067V-Sm for emacs-devel@gnu.org; Mon, 22 Sep 2008 00:41:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KhdEU-00066N-09 for emacs-devel@gnu.org; Mon, 22 Sep 2008 00:41:10 -0400 Original-Received: from [199.232.76.173] (port=44500 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KhdET-00066F-Ul for emacs-devel@gnu.org; Mon, 22 Sep 2008 00:41:09 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:33099) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KhdET-0005J5-M7 for emacs-devel@gnu.org; Mon, 22 Sep 2008 00:41:09 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1KhdCV-0006Lq-HW; Mon, 22 Sep 2008 00:39:07 -0400 In-reply-to: <48D6E8FB.4070108@gmail.com> (lennart.borgman@gmail.com) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:104026 Archived-At: Maybe, but I think most oftenly that will create name clashes. It will cause name clashes is you choose names of existing major modes, but you can easily avoid using those. Here's what I suggest: If there is a customary name (say, `foo' for a kind of file which mixes a few ordinary major modes, call the command `foo-mode'. Otherwise, if you want a command for the combination of two modes `a' and `b', call it `a-b-mode'. Or we could use `a+b-mode' for such cases. (There are still good reasons to tell that it is a multi major mode. The most difficult thing is support of minor modes turn on/off and finding reasonable structures for that. Time will tell I think.) Let's talk about this problem; maybe I can suggest a general solution for it.