From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: Default for editing XML files Date: Thu, 24 Sep 2009 23:14:47 +0200 Message-ID: References: <87ws45qavl.fsf@stupidchicken.com> <87eiq4jdgh.fsf@stupidchicken.com> <8763bc2fei.fsf@mail.jurta.org> <87d45kt0a4.fsf@stupidchicken.com> <87ab0mr5vq.fsf@mail.jurta.org> <87k4zotit8.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1253826929 26174 80.91.229.12 (24 Sep 2009 21:15:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Sep 2009 21:15:29 +0000 (UTC) Cc: Chong Yidong , Stefan Monnier , emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 24 23:15:21 2009 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 1Mqveq-0004lQ-64 for ged-emacs-devel@m.gmane.org; Thu, 24 Sep 2009 23:15:20 +0200 Original-Received: from localhost ([127.0.0.1]:57263 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mqvep-00030E-78 for ged-emacs-devel@m.gmane.org; Thu, 24 Sep 2009 17:15:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mqvek-0002zk-73 for emacs-devel@gnu.org; Thu, 24 Sep 2009 17:15:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mqvef-0002yY-OJ for emacs-devel@gnu.org; Thu, 24 Sep 2009 17:15:13 -0400 Original-Received: from [199.232.76.173] (port=48267 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mqvef-0002yS-H1 for emacs-devel@gnu.org; Thu, 24 Sep 2009 17:15:09 -0400 Original-Received: from mail-yw0-f194.google.com ([209.85.211.194]:42589) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mqvef-0005CJ-7p for emacs-devel@gnu.org; Thu, 24 Sep 2009 17:15:09 -0400 Original-Received: by ywh32 with SMTP id 32so2267887ywh.14 for ; Thu, 24 Sep 2009 14:15:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=Yu533na+iNVAk95HCeUWD/j22Pp3JP9TCK0qlyQazoE=; b=V/JN1yx1R0HK/GMBFE7TX8o/GRhhcKUEEsqXCiiJXfM/UCH3HODufvJ0/JDFDkAAQA DVGRRI+nUkhzTkGJBU83RQjY5uuhyJCmb1MwX/4olpn0TX33pXKwxFptNRQyDG5ml9fe YcCTyReXuGSgTeqeEZMTbMn4SEptbMTvMrqlw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=kmoUuiGBZfyPwWJ/MqEilxMEP2F95/MqK64db+8wavUpBAzKHsG1n0QS1Vgx2X3KFZ SkB7w+MehR4J3/uaSELPCBY0E8LzaBoEqyOHYpfNHbO2RFRV2K/i8OQeqYiPqG63bTMD nz/mxLL/pcAIPBD5DpnRAe6UqQIpYYUpP33bw= Original-Received: by 10.100.56.26 with SMTP id e26mr4772980ana.162.1253826907310; Thu, 24 Sep 2009 14:15:07 -0700 (PDT) In-Reply-To: <87k4zotit8.fsf@mail.jurta.org> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:115594 Archived-At: On Thu, Sep 24, 2009 at 10:57 PM, Juri Linkov wrote: > One easy way is the Customization UI, another is adding menu entries to > the mode menu. =C2=A0Designing a general mechanism to select a mode among= st > multiple implementations would be even better e.g. to switch `perl-mode' > between `perl-mode' and `cperl-mode', `js-mode' between `js2-mode' and > `espresso-mode', etc. As I have mentioned before I have a library majmodpri.el in nXhtml that sorts major modes according to user given priorities to them. This is just distributed with nXhtml because I need a mechanism for this there. If you want to edit a html file you may have a long list of major and multi major modes to choose from. Also please consider that if multi major modes are used then it is perhaps not possible to use the same major modes in chunks as you normally do for a whole buffer.