From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: [Emacs-diffs] widen-limits c331b66: Implement buffer-widen-limits functionality Date: Tue, 22 Mar 2016 17:44:34 -0700 (PDT) Message-ID: References: <20160322022539.16038.77264@vcs.savannah.gnu.org> <8737riqouj.fsf@gmail.com> <221845e0-b194-433e-bfbc-105272ae5752@default> <87twjyp21k.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1458693969 12238 80.91.229.3 (23 Mar 2016 00:46:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Mar 2016 00:46:09 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: Vitalie Spinu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 23 01:45: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 1aiWvo-00028f-Ca for ged-emacs-devel@m.gmane.org; Wed, 23 Mar 2016 01:45:52 +0100 Original-Received: from localhost ([::1]:40327 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aiWvn-0003K0-KN for ged-emacs-devel@m.gmane.org; Tue, 22 Mar 2016 20:45:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47117) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aiWuk-0002QD-9K for emacs-devel@gnu.org; Tue, 22 Mar 2016 20:44:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aiWug-0005oa-S7 for emacs-devel@gnu.org; Tue, 22 Mar 2016 20:44:46 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:41955) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aiWug-0005oH-Mg for emacs-devel@gnu.org; Tue, 22 Mar 2016 20:44:42 -0400 Original-Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u2N0ibcC017303 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 23 Mar 2016 00:44:37 GMT Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0021.oracle.com (8.13.8/8.13.8) with ESMTP id u2N0iaiK030441 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Wed, 23 Mar 2016 00:44:37 GMT Original-Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by userv0121.oracle.com (8.13.8/8.13.8) with ESMTP id u2N0iZcq028671; Wed, 23 Mar 2016 00:44:36 GMT In-Reply-To: <87twjyp21k.fsf@gmail.com> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6744.5000 (x86)] X-Source-IP: aserv0021.oracle.com [141.146.126.233] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 141.146.126.69 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:202117 Archived-At: > > Why does "widening" need a separate set of limits? >=20 > Because in multi-modes most of critical operations such as syntax parsing= , > syntax-propertize, font-locking and indentations inside submodes occurs i= n > narrowed regions. That is, sub-mode is placed in a bubble. The problem is > that that buble is easy to escape with widening. These extra limits are > intended to make that escape impossible (at least till the sub-mode start > using those hard limits itself). Thanks for the explanation. I think I see what you are trying to do. I don't see why changing `widen' would be the only, or necessarily the best, way to meet that need (which is essentially to make a sub-mode treat given bounds as if they were the buffer limits). But you answered my question. Thank you.