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: Wed, 6 Dec 2017 15:36:16 +0200 Message-ID: <2c37e1ea-69cd-2125-486b-71ea76f23bd0@yandex.ru> References: <20171129233237.27462.23351@vcs0.savannah.gnu.org> <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> <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> 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 1512577116 15631 195.159.176.226 (6 Dec 2017 16:18:36 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 6 Dec 2017 16:18:36 +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 Wed Dec 06 17:18:32 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 1eMcOU-0001Nn-BM for ged-emacs-devel@m.gmane.org; Wed, 06 Dec 2017 17:17:58 +0100 Original-Received: from localhost ([::1]:55704 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eMZt6-0006tC-Ey for ged-emacs-devel@m.gmane.org; Wed, 06 Dec 2017 08:37:24 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44658) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eMZs9-0006qD-5Z for emacs-devel@gnu.org; Wed, 06 Dec 2017 08:36:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eMZs6-0000uD-2R for emacs-devel@gnu.org; Wed, 06 Dec 2017 08:36:25 -0500 Original-Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]:44508) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eMZs5-0000sW-RP; Wed, 06 Dec 2017 08:36:21 -0500 Original-Received: by mail-wm0-x234.google.com with SMTP id t8so7232544wmc.3; Wed, 06 Dec 2017 05:36:21 -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=j3ASab353UwnIIU3oDqsRyw59KrWDXTR1NJ3ExnS9/M=; b=KdL+r1Mc6UYtCu5e9kRv7S9ljH8b6p6u3vF2Cy64TnX6UXn4PZXSf9iAr5dC2YSYzM 3XXcf1priMy1rV6jUfbwL5jUbuHQh8XVpjMeIk1+4WWLTQpJ7MNQ1FE58tcktu1XbMb/ my2cL8KMkdgVxY4EQALzWBGBpK1NRjdc5Tf/8qifzqNS/bXEtWBnZkZrOU7BOhUdcdpr hyxgyxnVKi2Hwup8xiIZ1d6AN98VGOYCkVKfHWUPyzhvWWRDuxi1O2K1z0ltXUVhUynO mrUd4drS5+L1wdA9qngMO31/zTRx5dDr7ZUcS/Ahk4PK5tdMGilZ5ND0VuTBX0lZpVIC /olA== 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=j3ASab353UwnIIU3oDqsRyw59KrWDXTR1NJ3ExnS9/M=; b=ivHNvnRZ8sQ6pzHw/ldjP3HMnVB8HphWNSJ4PO8cBXx2Zp7STxiHBjMkEgocSZAidT GqbrARu3uow4raUjetCNj8wyQYJalqjLIX0O922+KejMaMU8cvcVkFswtMHXdiohc4Wi l+q5PVYFwT3LrYXGh86c2bZpJOOq+MRukXbqX7ttwzy4wToI3x2ozkao331DpH6AWhjd OTCRvWqppeODw4elYdd1MGdjjV1TsiJ0WDGxgXbg60s3lInggXJy60gvcWmAubIXF0Nl XZpJ7LHLsHdn0vNNTBxi3gQrW6QIK8RYEvEXwyCHCbYcRvWMbmlryYs0ZgARA+INdk4s M4UQ== X-Gm-Message-State: AKGB3mKz0iaAohclI8sMiQpsb+/psu22JaplC4B+Z+Fgjgg13zVJzFml TBVlHDAr9UfoxXGSBWMCkFY= X-Google-Smtp-Source: AGs4zMYEpHCPiWAR/yp8rTfVU94U9J1SCjddH3sTD2CnhxN0ZWNd9JNhIbCWAGBQd/1cGys39FALww== X-Received: by 10.28.133.4 with SMTP id h4mr9025656wmd.35.1512567380450; Wed, 06 Dec 2017 05:36:20 -0800 (PST) Original-Received: from [192.168.0.133] (static-nbl2-118.cytanet.com.cy. [212.31.107.118]) by smtp.googlemail.com with ESMTPSA id m50sm3208492wrm.12.2017.12.06.05.36.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Dec 2017 05:36:18 -0800 (PST) In-Reply-To: <97EC48DB-DA8E-45BD-9ACF-D0B978408F8C@gnu.org> 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::234 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:220757 Archived-At: On 12/6/17 11:28 AM, Eli Zaretskii wrote: > My point is that this aspect of the design should be discussed before we make the code changes. Let's go ahead and discuss it then? Short overview: - We have indentation functions that widen (some major modes), and indentation function that don't (where the authors didn't bother, or, in one place, where I personally removed it, from js-mode, after a MMM-related discussion). - IME, whenever the question of narrowing comes up, it's usually from a user who wants command X to (save-restriction (widen) ...) before doing what it always did. Never to avoid calling widen, which makes sense from a perspective of a user who uses interactive narrowing. Hence, it seems to make sense that indent-for-tab-command should always operate of a widened buffer. Your turn. > (I think this aspect is separate from the rest of MMM related discussions.) Not exactly separate. My proposal hinges on it somewhat. In particular, on the idea that all major modes should be treated the same in this respect.