From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vitalie Spinu Newsgroups: gmane.emacs.devel Subject: Re: A vision for multiple major modes [was: Re: [Emacs-diffs] widen-limits c331b66:] Date: Wed, 23 Mar 2016 22:58:44 +0100 Message-ID: <871t70onzf.fsf@gmail.com> References: <20160322022539.16038.77264@vcs.savannah.gnu.org> <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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1458770338 8709 80.91.229.3 (23 Mar 2016 21:58:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Mar 2016 21:58:58 +0000 (UTC) Cc: 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 Wed Mar 23 22:58:57 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 1aiqno-0007uC-1z for ged-emacs-devel@m.gmane.org; Wed, 23 Mar 2016 22:58:56 +0100 Original-Received: from localhost ([::1]:46324 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aiqnn-00027n-Gx for ged-emacs-devel@m.gmane.org; Wed, 23 Mar 2016 17:58:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41393) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aiqnj-00027c-Gi for emacs-devel@gnu.org; Wed, 23 Mar 2016 17:58:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aiqni-0001m9-OH for emacs-devel@gnu.org; Wed, 23 Mar 2016 17:58:51 -0400 Original-Received: from mail-wm0-x22c.google.com ([2a00:1450:400c:c09::22c]:36260) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aiqne-0001lk-Ri; Wed, 23 Mar 2016 17:58:46 -0400 Original-Received: by mail-wm0-x22c.google.com with SMTP id r129so154227938wmr.1; Wed, 23 Mar 2016 14:58:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=zWI5zyrrWQKiJ9yHR2RZXbWBrqInuqw9ZjNpP1f2eN4=; b=oKgGIAj1c8dMKJRjFw2JrxfzumcdbAeK6HbbM4YbFH10kzdJHttrwGjf9d57FA+DQ8 P2OaBF7LTJ6ZujBKp5VZVEabF4uhOed5/OMhC1QqU4NPkWt8U9r/06lpgb69clb6T24v osjwHwMYpFJ2Ol0Y9hJrAJspn97BgfVPEc9HhXHG3+hsG6HhKUCgsByOlQRzX9+tQDtH tJWVfaBi5b9KqtgjYDhPWeeZZq8e0/otWixLmH61RddzhWCiGbivi4IM6eXbpIsPJRNL wLM7enRfcVzAocngYXAxs9qc/rctD6yB139/wbMFkrXx/5UoAEpG5UAL5ahI/6rPuT6P UTSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=zWI5zyrrWQKiJ9yHR2RZXbWBrqInuqw9ZjNpP1f2eN4=; b=g0mUXBdUiyhRgK705DX7dkcpaw50cg/mBbzPw+6odHwEFEUyJnIUxtLc8VHEGi3sXz lS3kLD0+CQT8c0wVTNnnL2WsEgBTMaPsDtRm8yUt8fFdahbCypAmWWmOmwySHdHxjeFo CbIkR1UeDonZWi6OrbC+lXOuOxQ+SzAK2iecI6RrDAV+Lv6dCkzOfc1S5beNEbJ4DloS IwxJ6BnE5xDpVEaNn0n79y6kIsAVzTxJEtH6V4A40rxkY22nJSFCh3H5CEVJWCVjMqT3 TkqRu/gYZT23UswXzUWqVN84UbD8f7gFYvsg15QuX8dHn4yL20VbcH72bQVSlOIZ2HGS Qt+w== X-Gm-Message-State: AD7BkJJ08eHSFOeZwf7xDx9oheZEBbTvDQdCFv/VhYG1uz6PgVHZNwdzd/CW8fq53osibA== X-Received: by 10.194.84.171 with SMTP id a11mr5617706wjz.91.1458770326094; Wed, 23 Mar 2016 14:58:46 -0700 (PDT) Original-Received: from localhost ([143.176.214.220]) by smtp.gmail.com with ESMTPSA id u3sm24038256wmg.15.2016.03.23.14.58.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Mar 2016 14:58:44 -0700 (PDT) In-Reply-To: <20160323211605.GA5324@acm.fritz.box> (Alan Mackenzie's message of "Wed, 23 Mar 2016 21:16:05 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.92 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::22c 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:202150 Archived-At: > To transcend the "unwanted widen" problem, there will be a very special > variable `restrict-to-island' or `restrict-to-span', A second type of narrowing. That is what Stefan was insisting upon and that's what I will provide next patch for. > Although the above vision implies a lot of development work, there is > nothing there which is beyond our abilities to implement readily. It > would give us a true multi major mode capability, yet the impact on > individual major modes would be minimal. A lot of development work is already happening in various generic multi-mode engines. It's hard, but feasible and stuff mostly works without changing any of the existing code. Making parse-partial-sexp understand islands won't give much. You can already do that well enough by advising syntax-ppss. Vitalie