From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Removing prog-indentation-context Date: Tue, 29 Mar 2016 00:37:20 +0300 Message-ID: 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> <56F293E7.2000703@online.de> <87a8lpnusg.fsf@gmail.com> <83r3f12oo5.fsf@gnu.org> <56F2D156.9040401@online.de> <83k2kt2i51.fsf@gnu.org> <56F2E643.4060903@online.de> <592bbafa-76ae-49d9-b5cd-644b3619a0d8@default> <87poukn8pl.fsf@gmail.com> <837fgs35q3.fsf@gnu.org> <8337rf3m4u.fsf@gnu.org> <877fgqef3r.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1459201067 6434 80.91.229.3 (28 Mar 2016 21:37:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Mar 2016 21:37:47 +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 Mon Mar 28 23:37:42 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 1akeqz-00063O-Mf for ged-emacs-devel@m.gmane.org; Mon, 28 Mar 2016 23:37:41 +0200 Original-Received: from localhost ([::1]:43003 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akeqy-0003ou-Rc for ged-emacs-devel@m.gmane.org; Mon, 28 Mar 2016 17:37:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37114) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akeql-0003op-KJ for emacs-devel@gnu.org; Mon, 28 Mar 2016 17:37:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1akeqi-00017m-Ei for emacs-devel@gnu.org; Mon, 28 Mar 2016 17:37:27 -0400 Original-Received: from mail-wm0-x233.google.com ([2a00:1450:400c:c09::233]:34942) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akeqi-00017d-7g for emacs-devel@gnu.org; Mon, 28 Mar 2016 17:37:24 -0400 Original-Received: by mail-wm0-x233.google.com with SMTP id 191so28821494wmq.0 for ; Mon, 28 Mar 2016 14:37:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=ThH2rwkVDBwQyMMLbWoQXuq9ylt7BTQ6DK0Up9abjZ0=; b=ldTOrtN+xydwEwgsf9M+SLRF0WSZjbLRFuhNlx53fao8adJsElFs98GLkQPEa4hwU9 P51A2gPEjB2PlQG2TkP3rF5PvzGNLwoWp0dw5bXGCucNICgUXJQ5MzzgGAbSJgmrANns cAZ5tdbJvaiVuR4XJro0d7i9shLS4PmrcOYEWqa52zmiyCYWpLg+bfDkUEYy7JnDAKVk I0EzscCqAnjEtydD4/G06oTXPqH3YStauAWzoevfWU4sRnbXhVWXEtV5QTb20t0iUklf h4yxawxnHr5DIFGeE64JYgJyZ7rHt8/8EA02w3VXZN2ud8WYa/RR4Gthcchrtj4cz01l mARQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:to:references:cc:from:message-id :date:user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=ThH2rwkVDBwQyMMLbWoQXuq9ylt7BTQ6DK0Up9abjZ0=; b=LA/Mw6QKeGxTSzXVMFgKw8GKKjFSLqHIBmKgMGNMJ8giC9cdgAi4LgsqdB0OlWp43p 2DNn5kgGhrtw6fm3L7I0/3n8hKkm65+559Qz6etgzjTnUCVNfJiJOI1bVlY9lt8rBppx A/xJk1OqEPPyhVdQMyeZ6sHACV58UvD7caFf1ffTCMlpphGdJlHwDJj1CKBrcY7vq1KW dKfgq5fYWU4Iajsj4VC1FciluCwUQB9QTOmDDsya2e19vuGtxCLl28p8/Lb+9VXVsHGR BXP/0ID7DXRt+11VomAYNtpABtZXPpQ3yJpimKbSfbhF0RdZdRGJiRf9FPHvY9Xf4uUy FUcA== X-Gm-Message-State: AD7BkJJiDm/XO5TpSPX7n6NknKNR5RDcXRF3w1y7Mx53cxpVENr7AdgPLUwT9g38m+52uQ== X-Received: by 10.28.90.68 with SMTP id o65mr12203285wmb.70.1459201043552; Mon, 28 Mar 2016 14:37:23 -0700 (PDT) Original-Received: from [192.168.1.2] ([185.105.175.24]) by smtp.googlemail.com with ESMTPSA id jv7sm26413814wjb.36.2016.03.28.14.37.21 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 28 Mar 2016 14:37:22 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0 In-Reply-To: <877fgqef3r.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::233 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:202365 Archived-At: On 03/25/2016 05:45 PM, Vitalie Spinu wrote: > I think the third element of prog-indentation-context is unlikely to be used by > major-modes anyways. Firstly due to inherent complexity of the concept, secondly > due to undefined, multi-mode specific, semantics of what to do with those > spans/chunks. I concur. > In any case, multi-mode engines can ignore prog-indentation-context. My bet is > that they will always do so, at least because there is no reliable way to > identify modes which use it and modes which don't. prog-indent-function would indeed be a better alternative to prog-first-column, not least because of being able to easily identify modes that support it. prog-widen, though, would be a decent fallback, if none of the hard-widen or "islands" discussions reaches a satisfying conclusion. In that case, we'd be saddled with (font-lock|syntax-ppss)-dont-widen, but since there's nothing a multi-mode can do when a submode widens (is there?), it would just behave the same and hope that all major modes either don't use widen at all, or switch to prog-widen.