From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tom Tromey Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] scratch/widen-less a4ba846: Replace prog-widen with consolidating widen calls Date: Thu, 30 Nov 2017 08:31:12 -0700 Message-ID: <878ten7phb.fsf@tromey.com> References: <20171129233237.27462.23351@vcs0.savannah.gnu.org> <20171129233238.504B5204F1@vcs0.savannah.gnu.org> <5d668ce5-1482-a3d4-c01b-7d996a532567@yandex.ru> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1512056244 15711 195.159.176.226 (30 Nov 2017 15:37:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 30 Nov 2017 15:37:24 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) Cc: Tom Tromey , Stefan Monnier , Vitalie Spinu , emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 30 16:37:19 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eKQtp-0003dH-NA for ged-emacs-devel@m.gmane.org; Thu, 30 Nov 2017 16:37:18 +0100 Original-Received: from localhost ([::1]:48884 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eKQtv-0007vi-IL for ged-emacs-devel@m.gmane.org; Thu, 30 Nov 2017 10:37:23 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45235) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eKQrR-0006Rw-RK for emacs-devel@gnu.org; Thu, 30 Nov 2017 10:34:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eKQrN-0000Pz-Ql for emacs-devel@gnu.org; Thu, 30 Nov 2017 10:34:49 -0500 Original-Received: from gateway31.websitewelcome.com ([192.185.144.91]:24006) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eKQrN-0000F4-Hs for emacs-devel@gnu.org; Thu, 30 Nov 2017 10:34:45 -0500 Original-Received: from cm15.websitewelcome.com (cm15.websitewelcome.com [100.42.49.9]) by gateway31.websitewelcome.com (Postfix) with ESMTP id 2EA71AC4F89 for ; Thu, 30 Nov 2017 09:31:14 -0600 (CST) Original-Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id KQnyeB1iZ5b6TKQnyeL1NP; Thu, 30 Nov 2017 09:31:14 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Auhr6VfcZ0uBxRmujxoHsRUcMbFWXX2wSzSvqHP7lsU=; b=ZZLeP/cRzNMs+YNx5leRxaBD/t OWPflz1GRquGqNMIR6W/Tzui7c1faQFkeBn8+UFvgHdogSN5g7Nsod6l8ujyfQLqeafioOs9kDm52 gfYdzV77lIOQyFXUV6F13i2Yx; Original-Received: from 71-218-90-63.hlrn.qwest.net ([71.218.90.63]:38892 helo=pokyo) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1eKQnx-000Yos-QR; Thu, 30 Nov 2017 09:31:13 -0600 X-Attribution: Tom In-Reply-To: (Dmitry Gutov's message of "Thu, 30 Nov 2017 10:58:47 +0000") X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 71.218.90.63 X-Source-L: No X-Exim-ID: 1eKQnx-000Yos-QR X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 71-218-90-63.hlrn.qwest.net (pokyo) [71.218.90.63]:38892 X-Source-Auth: tom+tromey.com X-Email-Count: 4 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 192.185.144.91 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:220552 Archived-At: >>>>> "Dmitry" == Dmitry Gutov writes: Dmitry> And, it's kind of funny, mhtml-indent-line which we've reviewed and Dmitry> added recently, uses narrow-to-region too. :-) While disregarding the Dmitry> second element of prog-indentation-context (which it set to the value Dmitry> "widen all you want"). Which works well enough because SMIE doesn't Dmitry> widen, and I've removed the `widen' call from js-mode indentation code Dmitry> 3.5 years ago. Yes, IIRC mhtml-mode narrows so that a sub-mode won't try to examine parts of the buffer that have a different syntax. Whether you consider this ugly or not is perhaps related to your stance on the whole widening issue. My view, though, is that there is a problem here intrinsic to multi-modes: something has to tell the sub-modes about the relevant boundaries in some way; so if the narrowing/widening stuff is changed, something new will have to be invented here. Tom