From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Filipp Gunbin Newsgroups: gmane.emacs.devel Subject: Re: A vision for multiple major modes [was: Re: [Emacs-diffs] widen-limits c331b66:] Date: Mon, 28 Mar 2016 16:00:17 +0300 Message-ID: References: <8737riqouj.fsf@gmail.com> <221845e0-b194-433e-bfbc-105272ae5752@default> <87twjyp21k.fsf@gmail.com> <56F242E0.7060004@online.de> <877fgtpfrw.fsf@gmail.com> <20160323211605.GA5324@acm.fritz.box> <20160324183835.GB2721@acm.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1459170054 24151 80.91.229.3 (28 Mar 2016 13:00:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Mar 2016 13:00:54 +0000 (UTC) Cc: Vitalie Spinu , Andreas =?utf-8?Q?R=C3=B6hler?= , emacs-devel@gnu.org, Stefan Monnier , Dmitry Gutov , Eli Zaretskii , Drew Adams To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 28 15:00:43 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1akWme-00017S-RR for ged-emacs-devel@m.gmane.org; Mon, 28 Mar 2016 15:00:41 +0200 Original-Received: from localhost ([::1]:40908 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akWmd-0005EM-Re for ged-emacs-devel@m.gmane.org; Mon, 28 Mar 2016 09:00:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43298) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akWmT-0005AH-If for emacs-devel@gnu.org; Mon, 28 Mar 2016 09:00:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1akWmO-0001zg-K8 for emacs-devel@gnu.org; Mon, 28 Mar 2016 09:00:29 -0400 Original-Received: from out2-smtp.messagingengine.com ([66.111.4.26]:60386) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akWmO-0001z3-Fh for emacs-devel@gnu.org; Mon, 28 Mar 2016 09:00:24 -0400 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id E6FB7216C1 for ; Mon, 28 Mar 2016 09:00:22 -0400 (EDT) Original-Received: from frontend2 ([10.202.2.161]) by compute3.internal (MEProxy); Mon, 28 Mar 2016 09:00:22 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.fm; h=cc :content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=eAhUy DnJP5XLs7uLp/HI++6ZAak=; b=bKzPezF8DhngU7xt+jAkwNWi9W7Sei9d3f8+p vHQYAfyv9NeZxnLvX8IZCKCOoPsg8MWprsTghcGjWOGfi9bfzVkjKFUFk5ctFtqY ATyVbtcPBVtrol1EhLIsUGBaPy0mNCqi2N5snlzk4m4pxdqKYC8D1w2ku2oN4Buo lCgtP4= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=eAhUyDnJP5XLs7uLp/HI++6ZAak=; b=a9SKR E/HuXufityTpGDl7a5k1DOnx8wPYyZguFAasSA6dSdk08Rkp6mVtx4Zncgjh2Z7S qsXW04IR/TeJLuNvAfuVsxGUd2eAK33pROWeKNk2FNkHuAe7MRVzraxHeIGIHboZ mXRcw5dlMiGuGlolSlf7pxu3ZwZPY5sIpiK1SE= X-Sasl-enc: dF1KAe2nHI4I7AdXNLnMYwwxB426uHg+LEGMHT5DvXS3 1459170022 Original-Received: from fgunbin.local (unknown [94.25.218.10]) by mail.messagingengine.com (Postfix) with ESMTPA id 5EC9D680128; Mon, 28 Mar 2016 09:00:21 -0400 (EDT) In-Reply-To: <20160324183835.GB2721@acm.fritz.box> (Alan Mackenzie's message of "Thu, 24 Mar 2016 18:38:35 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (darwin) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.26 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:202317 Archived-At: On 24/03/2016 18:38 +0000, Alan Mackenzie wrote: > They might not. They might. Basically, nobody else really seams > interested in my idea, so it doesn't look like it will happen. Alan, your proposed solution seems very nice to me. Probably the islands could be nested in some way (maybe like bidi rtl and ltr text). For example, if we have HTML with embedded PHP, the whole buffer would be in HTML major mode; top-level PHP code spans will be islands nested beneath top level (nesting level 1) and there could be HTML lines nested inside the PHP ones (say, when PHP cycles over some collection and prints HTML snippet for each element of it) - that would be nesting level 2. That will make usual narrowing more helpful and context-aware. However, the major mode can decide to put all PHP on the level 1 nesting, so the whole buffer would be HTML (nesting 0) interspersed with PHP (nesting 1). Filipp