From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] scratch/widen-less a4ba846: Replace prog-widen with consolidating widen calls Date: Sun, 10 Dec 2017 22:04:43 +0200 Message-ID: <837etutkmc.fsf@gnu.org> References: <20171129233237.27462.23351@vcs0.savannah.gnu.org> <83d13x1j2s.fsf@gnu.org> <34abea95-c7f7-e8fa-8407-8c2fd2a4cfe1@yandex.ru> <83y3mkzw1n.fsf@gnu.org> <83mv2zzv7z.fsf@gnu.org> <83r2saxyj1.fsf@gnu.org> <83efoaxv0c.fsf@gnu.org> <57382399-5efa-655f-e374-fbe1ef9d89aa@yandex.ru> <27732BB8-B3B7-4489-963E-A09333026A8E@gnu.org> <43ec332a-4de5-d3ce-1bc2-60b081447f77@yandex.ru> <6A58664C-42E7-48E4-BB90-0488FED4A7FD@gnu.org> <75360721-62e7-37aa-f623-4b7eac8d4fbe@yandex.ru> <6bfba3e0-10db-b1fd-0ecc-3eb9771b4443@yandex.ru> <97EC48DB-DA8E-45BD-9ACF-D0B978408F8C@gnu.org> <2c37e1ea-69cd-2125-486b-71ea76f23bd0@yandex.ru> <83y3mduq8y.fsf@gnu.org> <83wp1vuctz.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1512936325 23045 195.159.176.226 (10 Dec 2017 20:05:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 10 Dec 2017 20:05:25 +0000 (UTC) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 10 21:05:21 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 1eO7qh-0005l2-HI for ged-emacs-devel@m.gmane.org; Sun, 10 Dec 2017 21:05:19 +0100 Original-Received: from localhost ([::1]:49589 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eO7qo-0006T9-QO for ged-emacs-devel@m.gmane.org; Sun, 10 Dec 2017 15:05:26 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42162) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eO7qX-0006Oz-RV for emacs-devel@gnu.org; Sun, 10 Dec 2017 15:05:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eO7qU-0005bx-IL for emacs-devel@gnu.org; Sun, 10 Dec 2017 15:05:09 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52688) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eO7qU-0005br-Eo; Sun, 10 Dec 2017 15:05:06 -0500 Original-Received: from [176.228.60.248] (port=3312 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eO7qS-000383-Q8; Sun, 10 Dec 2017 15:05:06 -0500 In-reply-to: (message from Dmitry Gutov on Sun, 10 Dec 2017 21:59:45 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:220856 Archived-At: > Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org > From: Dmitry Gutov > Date: Sun, 10 Dec 2017 21:59:45 +0200 > > On 12/9/17 5:43 PM, Eli Zaretskii wrote: > > > If a particular indent-line-function needs to widen, then yes, it will > > need to do that by itself, and if that gets in the way of MMM, then > > the widening will have to be conditional. > > That sounds surprisingly more complex than the whole solution that I'm > proposing. I'm surprised that you think this to be so much more complex. But in any case, this is the subject of a separate thread now, so I suggest to discuss there, to avoid people who are interested missing this. > > (I thought that prog-widen and prog-indentation-context were a means > > to solve this, isn't that so?) > > It was one of the goals, but that approach comes with certain inherent, > as well as certain incidental, drawbacks. It looks sufficiently lightweight to me, so I hope the drawbacks are not unbearable.