From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] scratch/widen-less a4ba846: Replace prog-widen with consolidating widen calls Date: Thu, 30 Nov 2017 21:28:15 +0000 Message-ID: References: <20171129233237.27462.23351@vcs0.savannah.gnu.org> <20171129233238.504B5204F1@vcs0.savannah.gnu.org> <5d668ce5-1482-a3d4-c01b-7d996a532567@yandex.ru> <878ten7phb.fsf@tromey.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1512150737 4085 195.159.176.226 (1 Dec 2017 17:52:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 1 Dec 2017 17:52:17 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Thunderbird/57.0 Cc: Vitalie Spinu , Stefan Monnier , emacs-devel@gnu.org To: Tom Tromey Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 01 18:52:10 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 1eKpTs-0000cf-Rs for ged-emacs-devel@m.gmane.org; Fri, 01 Dec 2017 18:52:09 +0100 Original-Received: from localhost ([::1]:59218 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eKpTz-00075U-Vo for ged-emacs-devel@m.gmane.org; Fri, 01 Dec 2017 12:52:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44266) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eKo8Z-0002u3-H6 for emacs-devel@gnu.org; Fri, 01 Dec 2017 11:26:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eKo8W-0002P6-AD for emacs-devel@gnu.org; Fri, 01 Dec 2017 11:26:03 -0500 Original-Received: from mail-wm0-x231.google.com ([2a00:1450:400c:c09::231]:34945) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eKo8V-0002Nt-RU for emacs-devel@gnu.org; Fri, 01 Dec 2017 11:26:00 -0500 Original-Received: by mail-wm0-x231.google.com with SMTP id f9so4360088wmh.0 for ; Fri, 01 Dec 2017 08:25:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=jBGgmYoTVoqkvYsdDaTjGR2Qz1g7fOTf5AdJEpxtgvg=; b=sSYuB6iFbWHgCSGfgUrTngcSvvSCemizMVT4ZNMcHCvpepjoCZjLtZMrgaK9CZyxxS lb6lWWKE4UpUE6KxCAWXTST/q4aHT2ZxtIUwPtXHk6QjJ+KgSywizBqg6tliGtj/sXJx FFnQa6Htg3pB0FXcz67ZNFCgBet4SAEH2QR/G4n+PFi8S7UAWIvX6xBhnXbgYPV39KNN qenqj4t5+/e7RuhiNycl/XTVcYtmdtV73kN1BRHtdsnTRdVm+rThJ4q7OsYZ9tQ5v0S5 MN0kKi56UwsJbI2ZEu0IXVj8xlHuCFw//FNydmDPrHBglRg6AUSSnxr/icnXeQ5L+yL2 Fr/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=jBGgmYoTVoqkvYsdDaTjGR2Qz1g7fOTf5AdJEpxtgvg=; b=mndbfzDLas6Zky9YiqCSd2TDjUwtr2/sQoilWKU7B5LUU2HI0Y/HqqEn773Ce4OJZP ZIddAiZ+h6pIh1b825WoL+AiJUP3lmBqiEuhSGjseQtI1xE117PS0TMlwO88G87rT+tD rZOKFe1txrB2IPkeML8x6exhe3mZLYosLLY0vQ1/lQFwQD/7Ww7LVguhPb4H9mI2GF4a tfnfAYMsUlS+KrvSKhuJVX8KT4899w3BCDrWrSJr5kOJTXp14g6UKhvZz0iCZz9yiYu6 mF5Szn1tOE5I846ea8Lvz8Id9eP0fS1nxoKH6oUdQUUdL8FgB9g3p+pcDWkME6W2tATB pcqw== X-Gm-Message-State: AKGB3mIey7iGg/1X2w2S9rltwvCcV9VnJbdFl9QiRlo8zQugosiQVfXe tPv73yky+goSCz9WkOYE/tMxJwp4 X-Google-Smtp-Source: AGs4zMaMnZUJJLTvzzrxVyvFeo9Si2OxKhPPGyy3STXXGojxzTEotO6OW1GMgJ8EUuluWomszVjPMg== X-Received: by 10.28.69.197 with SMTP id l66mr1645833wmi.67.1512077298223; Thu, 30 Nov 2017 13:28:18 -0800 (PST) Original-Received: from [192.168.1.38] (89-160-235-67.du.xdsl.is. [89.160.235.67]) by smtp.googlemail.com with ESMTPSA id p6sm3746183wrd.78.2017.11.30.13.28.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Nov 2017 13:28:17 -0800 (PST) In-Reply-To: <878ten7phb.fsf@tromey.com> Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::231 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:220565 Archived-At: On 11/30/17 3:31 PM, Tom Tromey wrote: > 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; Err, no. Ugly or not is beside the point (I personally prefer this approach, please also take a look at the branch referenced in this thread subject). Thing is, if you're using prog-indentation-context as it's now implemented, you're "supposed to" indicate the narrowing bounds via setting the second element of that list, instead of calling narrow-to-region directly. Of course, that also requires support from the major modes in question. > so if the narrowing/widening stuff is changed, > something new will have to be invented here. See above. The "something new" has a few rough edges, so this discussion is about revisiting those choices.