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: Mon, 4 Dec 2017 23:52:26 +0200 Message-ID: <57382399-5efa-655f-e374-fbe1ef9d89aa@yandex.ru> References: <20171129233237.27462.23351@vcs0.savannah.gnu.org> <20171129233238.504B5204F1@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> 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 1512424425 30918 195.159.176.226 (4 Dec 2017 21:53:45 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 4 Dec 2017 21:53:45 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Thunderbird/57.0 Cc: emacs-devel@gnu.org To: Eli Zaretskii , Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 04 22:53:42 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 1eLygF-0007gz-L2 for ged-emacs-devel@m.gmane.org; Mon, 04 Dec 2017 22:53:39 +0100 Original-Received: from localhost ([::1]:45416 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eLygM-0006YS-Vl for ged-emacs-devel@m.gmane.org; Mon, 04 Dec 2017 16:53:47 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59033) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eLyfB-0005Df-KT for emacs-devel@gnu.org; Mon, 04 Dec 2017 16:52:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eLyf8-0006K7-J3 for emacs-devel@gnu.org; Mon, 04 Dec 2017 16:52:33 -0500 Original-Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]:36408) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eLyf8-0006Jm-Bn; Mon, 04 Dec 2017 16:52:30 -0500 Original-Received: by mail-wm0-x243.google.com with SMTP id b76so17022297wmg.1; Mon, 04 Dec 2017 13:52:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=Ea6tBCgFa5sHaJc7irlvaY8axfbTAfp0QE6QF01ErTM=; b=TKo8YLiJeFmfqfFIPfVHPATCOb55hU+yGsmVOyvi7PFZ3qCjTOP2ySuOl1JBPgpAcF lLDYoYGfqM3YiJrwaYG8Pwh324bym1RYp8bTiI/qYinpQoR68OEHqsDffhMW2gjercF7 Tjt5XO0eypIDycc2rGZN2pwZqWkqN5a6j5yYZZh1ougTE3lHn8T6ASRuWbsk5+VbNyfU DKuxzYdL0XqmT2zCNxtOhAr36/C1raBNk3gQPf3WNa7o0UAubrPqCWfUyyj309nac7lJ Y2OPX7PoGsxfUR3yuqR9XGzLoOPXq4bD0K03fIjUFj3S0BMr8K9VYENsYY1BuKkMm/jR UPmA== 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:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Ea6tBCgFa5sHaJc7irlvaY8axfbTAfp0QE6QF01ErTM=; b=CGGG3JbyQ9gAlGz21ysv4D2rOy+ZBkGd1TW2afcD3j/6++RVlcd2jnitsQCVSiG84e qtHFqIN7BwJ+Y+MuX1CxAq1TJnju7fn1rJ2eV0BCIJhaZTWf8SZC7UIUmCEYmlbqrX2P oAZivrAqdT/Zmwt1JgzYBwRZqk2Prm9j9CU7Jlzy+AvoC7TpRrEY4yG9BrcGuPLc9tcO Jr7TgD8Iv2ueIvhEJMvaEUap4gT4gZs/cDkWy3xzVYA6uFTcVlmadND5bND6l3bpFO6i B+ggaIfcwdFhIkW2guYxqEGkgydjK/4zmxY2UcfTCpQ45LzYyFOAeRYKGKU24MTC4Bpe bn0Q== X-Gm-Message-State: AKGB3mLRF/xOA0aeTbRl5H/dcWkW4Sf3MI2jypOg0hbU0m9mJngfPYk/ ULCho1VfUwVPFs2SkcU9kUOU9mHp X-Google-Smtp-Source: AGs4zMba2jssa48dC4tG0a92ioIXicLbdwubPJPF9foZIRZG4VEeVU4dpWvv+Sbvq+l+3LTNMqIGAA== X-Received: by 10.28.159.15 with SMTP id i15mr9274251wme.58.1512424349018; Mon, 04 Dec 2017 13:52:29 -0800 (PST) Original-Received: from [192.168.1.3] ([185.105.174.193]) by smtp.googlemail.com with ESMTPSA id g68sm9174176wmc.22.2017.12.04.13.52.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Dec 2017 13:52:28 -0800 (PST) In-Reply-To: <83efoaxv0c.fsf@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::243 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:220722 Archived-At: On 12/4/17 7:28 PM, Eli Zaretskii wrote: >> The widening is done in indent-according-to-mode and brings into view >> the whole multi-mode buffer, indeed. Then MMM's indent-line-function is >> called, which narrows the buffer to the relevant chunk and then calls >> the submode's indent-line-function which hence only sees the part of the >> buffer it needs. > > Ah, so this assumes that MMM is active in the buffer? If so, can we > widen only if MMM is indeed active? Doing so will I believe minimize > (or even eliminate) the effects on existing behaviors when MMM is not > used. That widening is for correctness when working during an interactive narrowing. MMM mode being enabled or not is irrelevant (it's not the beneficiary).