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: Selecting mumamo modes Date: Thu, 25 Sep 2008 13:46:15 -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> <48D79A25.7050000@gmail.com> <48D8BD92.5080403@gmail.com> <48D925EA.3030703@gmail.com> <48D95601.8010703@gmail.com> <48D95FE7.7040807@gmail.com> <48DAB149.9060408@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 1222365113 20387 80.91.229.12 (25 Sep 2008 17:51:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Sep 2008 17:51:53 +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 Thu Sep 25 19:52:49 2008 connect(): Connection refused 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 1Kiv19-0004w1-VL for ged-emacs-devel@m.gmane.org; Thu, 25 Sep 2008 19:52:44 +0200 Original-Received: from localhost ([127.0.0.1]:50037 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kiv07-0003PZ-Qe for ged-emacs-devel@m.gmane.org; Thu, 25 Sep 2008 13:51:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kiuwx-0002By-Iz for emacs-devel@gnu.org; Thu, 25 Sep 2008 13:48:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kiuww-0002BS-TO for emacs-devel@gnu.org; Thu, 25 Sep 2008 13:48:23 -0400 Original-Received: from [199.232.76.173] (port=55519 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kiuww-0002BM-QY for emacs-devel@gnu.org; Thu, 25 Sep 2008 13:48:22 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:45349) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kiuww-0004Ro-VF for emacs-devel@gnu.org; Thu, 25 Sep 2008 13:48:23 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1Kiuut-0004Or-Rw; Thu, 25 Sep 2008 13:46:15 -0400 In-reply-to: <48DAB149.9060408@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:104153 Archived-At: Here's an idea. Suppose that `normal-mode' sees that a file specifies a major mode of the form `A+B'. If there is no function `A+B-mode', it could create one using mumamo, based on `A-mode' and `B-mode', and then call it. That is safe because it only lets a file call `A-mode' and `B-mode', which files can already do individually. Naturally the feature should handle cases of more than two modes in a similar way.