From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Andreas_R=c3=b6hler?= Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] widen-limits c331b66: Implement buffer-widen-limits functionality Date: Wed, 23 Mar 2016 19:53:55 +0100 Message-ID: <56F2E643.4060903@online.de> 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1458759174 25566 80.91.229.3 (23 Mar 2016 18:52:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Mar 2016 18:52:54 +0000 (UTC) Cc: spinuvit@gmail.com, Drew Adams , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 23 19:52:45 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 1ainta-0005xQ-QY for ged-emacs-devel@m.gmane.org; Wed, 23 Mar 2016 19:52:42 +0100 Original-Received: from localhost ([::1]:45471 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aintX-0002mo-49 for ged-emacs-devel@m.gmane.org; Wed, 23 Mar 2016 14:52:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38046) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aintJ-0002le-3d for emacs-devel@gnu.org; Wed, 23 Mar 2016 14:52:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aintI-0003Q5-5O for emacs-devel@gnu.org; Wed, 23 Mar 2016 14:52:25 -0400 Original-Received: from mout.kundenserver.de ([217.72.192.75]:58135) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aintD-0003Ob-QK; Wed, 23 Mar 2016 14:52:20 -0400 Original-Received: from [192.168.178.35] ([77.12.167.38]) by mrelayeu.kundenserver.de (mreue102) with ESMTPSA (Nemesis) id 0LqlQA-1a4XNu2G5i-00eJdQ; Wed, 23 Mar 2016 19:52:12 +0100 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Icedove/38.5.0 In-Reply-To: <83k2kt2i51.fsf@gnu.org> X-Provags-ID: V03:K0:64WdDFtVMC+9OjiEepQ3JyDVmOo/xUPxuz1IYOKlyy40mrYvy2C TnAgfQcnUR4Dh/tRywp4KQ9s+KuiV85RluV4GsT0IDEh+g/7bniOFjOgrKXlzyeiFEGAmBy XV77DEQLNwH704QQqoBIRNLliAwn0/+K9RN+tFlxasUBwd4wJ2Oax+Kwwt+Q8CRwM69Gnq6 wjgBV/jcaS6Gf3BxsnmRA== X-UI-Out-Filterresults: notjunk:1;V01:K0:4FlB7TNWD0I=:HG8D6IWxeZ73bzoJzOTUP0 O2haymd46YSEe6rdwdiisVQ8YRDci8rGnlubC6Z+2BDfqj1vIoIt2Lsg3JigOEJ5rIAf/gdwV 12lH9jTP82FdNfbIELHx+yeLaen2iRfw0KmgC8ZvbyPm3R+2OPttwa1Sztl6uooACmbqE9cj+ fEz0CKWK4fZ9P2yj4FoZve85ZdivqXP3m3AzRdsiGaHoMgOp0LFB320RW2TuXxIdkFnOartXv L6xZjIpnn8tia6wz/HptzEYT0C4YJvsoXUQHE3+AA8sMyXasaJ2Mjze2eyGggbiinDm7W1dqT 62yFoELthtj0IH1ZvYMc2GR4BVkpCcZwWK+lgVQIi0MV++izfYaAiM8DyujYG+lrH34eTIaRe TEXRSat4yqD9S4VXMBSvytYhCetXWs4R0Ty2BBeYNWmixewrW3XkoSRgTNXJb840oxZn7rGEw UWVTkmyj+c3WjUj6cn5cOOWxC9Hxww4jGL7xcBTOBsNk4dl2zB4fz0LUW7nhuldQhTrbe7TaE aEvfcHA+saGcqw6NsmVPo1M3kq1uo8u2U8cIGPrkuuQHTRur8vlSOLN80Kt6J457jIUGg68nZ aPs6gskEflTwviUrO/E4gke8wfARUUa6/JEVgHKt6ThFWxft+FM6/AG5G/htOnXLh69cxCbcs I8IaPW49dKXhSX0RpM6D+fnLt9gMRH3Up5F6aTPfMwV/tEfmaOQToUtFCQZU594xPphJCe8Dd o5AME+O4oRcPJLMv X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 217.72.192.75 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:202144 Archived-At: On 23.03.2016 18:55, Eli Zaretskii wrote: >> Cc: emacs-devel@gnu.org >> From: Andreas Röhler >> Date: Wed, 23 Mar 2016 18:24:38 +0100 >> >>> Isn't prog-widen the solution to those issues? >> Hi Eli, >> >> doku of prog-widen says >> >> "This variable enables the major mode of the >> main language to use the indentation engine of the sub-mode" >> >> This also doesn't sound right. > Please read the description in the ELisp manual instead. So let's read this (prog-widen): " ... to remove any restrictions imposed by the mode’s indentation engine and restore the restrictions recorded in ‘prog-indentation-context’. This prevents the indentation engine of a sub-mode from inadvertently operating on text outside of the chunk it was supposed to indent, and preserves the restriction imposed by the superior mode. When no superior mode is in effect, this function just calls ‘widen’. " Don't see in which way this should be better. It lays the burden of dealing with the mode in place into prog-mode. IMO wrong place, wrong direction. Expect prog-mode do deliver very basic things common to all programming modes. Not dealing with and fixing special needs there. Modes must meet the specific languages. Prog-mode must not be specific and not provide tools for storing things like indentation-context. Let the modes indent, fontify and jump around like they want - not thwarting their settings seems all needed here.