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: Tue, 5 Dec 2017 12:55:33 +0200 Message-ID: <43ec332a-4de5-d3ce-1bc2-60b081447f77@yandex.ru> References: <20171129233237.27462.23351@vcs0.savannah.gnu.org> <5d668ce5-1482-a3d4-c01b-7d996a532567@yandex.ru> <20171130214621.GA22157@ACM> <27985594-3bb4-ce88-8928-2ccfeac13eae@yandex.ru> <20171201154913.GB3840@ACM> <1e542021-e389-cca4-6acd-349efddb2652@yandex.ru> <20171201223529.GG3840@ACM> <4a94ec5c-efdd-50f1-ff4d-277f5f45c2df@yandex.ru> <83lgil1qme.fsf@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> 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 1512471388 29717 195.159.176.226 (5 Dec 2017 10:56:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 5 Dec 2017 10:56:28 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:58.0) Gecko/20100101 Thunderbird/58.0 To: Eli Zaretskii , emacs-devel@gnu.org, Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 05 11:56:24 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 1eMAti-0007Sp-JW for ged-emacs-devel@m.gmane.org; Tue, 05 Dec 2017 11:56:22 +0100 Original-Received: from localhost ([::1]:47835 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eMAtp-000676-W6 for ged-emacs-devel@m.gmane.org; Tue, 05 Dec 2017 05:56:30 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59122) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eMAt3-0005xq-Gd for emacs-devel@gnu.org; Tue, 05 Dec 2017 05:55:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eMAsz-0008J1-Kk for emacs-devel@gnu.org; Tue, 05 Dec 2017 05:55:41 -0500 Original-Received: from mail-wr0-x236.google.com ([2a00:1450:400c:c0c::236]:35850) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eMAsz-0008Im-Do; Tue, 05 Dec 2017 05:55:37 -0500 Original-Received: by mail-wr0-x236.google.com with SMTP id v105so20508104wrc.3; Tue, 05 Dec 2017 02:55:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=lE5r8iPqoIdeYztfmUYDX4Mec3Yjrk9aQf0gTDIQeUM=; b=cY+kW+DpPTtM0qzEONlYfKwOO2te3W0b7yTEocWiGtDALzBbfyKEH2PSzmWR274WG3 FH5zXJZwk51V8/Z7vvxY8JL1bBKqgmtO32G8oJkHmXcgpFiZk0GZHf9VdzTOEF+73nqg udwlkmIX7iOy2CNCq8akSJaZAJzxdjuoqH7RwwdxKeyknFgfZaO7+Dt6uCZDfqs0JpYa MrXiNDuOTC856J2kiA+8WZT9S9UwtkcJDKvGrz5LzoM5dEuMfbZKDQlUMYYkw4bpgkkU sWaMm7+1jJdaiCIlDCvyVwYb0ponW7OpFhc2wn6rgOC2Mq04EGdSHvvbL3+fLhMfN73g EyCw== 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:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=lE5r8iPqoIdeYztfmUYDX4Mec3Yjrk9aQf0gTDIQeUM=; b=dZRLfy7eoSZQLvOwPtrtd7VNE7Ca9XRo+fAFrEJ1zBh/y2GUZUkyvUrrzsrCS89I1z KCritSGtu2Os+pROJzn21mX5p4BFI3lPHgCGMzOkIh3o5bgFTqXyYCeGSf7BNh/4dJZT nRLwk53JSbFqSVjkXrK65odCucYZs5l0CDoO1ySEb1+9vzLTStFQvVM7eTytK3bfKYoQ JGb4PuEKVxaeOF/lfsmjvPPdpCE/XcpXafC6D9v2r3+1WmZEYZcbSOWdr8s7ekgTRTmV Ooti8+LL3YdGatbFP7O/uLq6++VxVy8XvT5dWfuhzOdOhInRTBMjCjDWHiVm8rJzLd8q do1Q== X-Gm-Message-State: AJaThX6T5sqHy9Uh2oT25OQ3SZaLUqturj82Hzm2h6OQDC2oxL0rkWeD n9hs7iKfKyYJXn9OdaMuSrM= X-Google-Smtp-Source: AGs4zMZudPnsdcDnsP0Scq8RE/xooE2RvBtPJhgA3N64w684zRqsW84Vg2gpMHQZcTiaLrQpcPl7ow== X-Received: by 10.223.171.91 with SMTP id r27mr14945563wrc.98.1512471336246; Tue, 05 Dec 2017 02:55:36 -0800 (PST) Original-Received: from [192.168.1.3] ([185.105.174.193]) by smtp.googlemail.com with ESMTPSA id q89sm18180623wrb.95.2017.12.05.02.55.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Dec 2017 02:55:35 -0800 (PST) In-Reply-To: Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::236 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:220738 Archived-At: On 12/5/17 7:33 AM, Eli Zaretskii wrote: > And btw, I'm not really convinced the unconditional widening is a good idea in general, even on master. I could probably agree that in most cases it is TRT, but why would we _force_ all modes to indent with restrictions lifted? No exceptions? Not even a fire escape for some specialized mode with weird needs and requirements? I'm not sure. It certainly should be discussed, regardless of the MMM issues. After indent-for-tab-command calls widen, indent-line-function is called. And it can apply all the narrowing it wants (inside save-restriction), it just shouldn't call 'widen'.