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: Lifting all buffer restrictions in indentation functions Date: Sat, 9 Dec 2017 00:49:09 +0200 Message-ID: <33f36be5-fd79-7a19-718b-b68a798f602f@yandex.ru> References: <83wp1xupqs.fsf@gnu.org> <86609g9738.fsf@stephe-leake.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 1512773364 28286 195.159.176.226 (8 Dec 2017 22:49:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 8 Dec 2017 22:49:24 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:58.0) Gecko/20100101 Thunderbird/58.0 To: Stephen Leake , emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 08 23:49:21 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 1eNRSL-0007Gm-4u for ged-emacs-devel@m.gmane.org; Fri, 08 Dec 2017 23:49:21 +0100 Original-Received: from localhost ([::1]:39326 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eNRSS-0003hL-Gf for ged-emacs-devel@m.gmane.org; Fri, 08 Dec 2017 17:49:28 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42524) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eNRSJ-0003hG-GA for emacs-devel@gnu.org; Fri, 08 Dec 2017 17:49:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eNRSF-0001ww-Ho for emacs-devel@gnu.org; Fri, 08 Dec 2017 17:49:19 -0500 Original-Received: from mail-wm0-x22d.google.com ([2a00:1450:400c:c09::22d]:41893) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eNRSF-0001wN-BM for emacs-devel@gnu.org; Fri, 08 Dec 2017 17:49:15 -0500 Original-Received: by mail-wm0-x22d.google.com with SMTP id g75so5552862wme.0 for ; Fri, 08 Dec 2017 14:49:15 -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=bJxqvLy9zGzvvkutSGtGxHePBUfMErAzVI7L2MSSw2Q=; b=tA0IFPX9E7EIPjrTZaqY1djwMhAfuiJVWOYQ4K+TwSRy9372iVtaH2G1KAeEtLYbGO ozQR1e16AXAmE8Z2NQ9JsbRqkKkPtDsvw/ax7Rh6txHYSAwGgRueH4vtNWMlpfNAXAD4 sgHorXbVtgHColjAwxSzM/quSinqoOVV2fK0mIUJYHca1r59oLXs6kuM9NBLsIdOt2DC 37NsLOHfQpVq3LAypkR4/GN/ratuIsz7iUtUZBnktJKVIYufgZ07QFH6SPt9Ihfr+b1v vKaPwuBqjrD/L+uZl8aLNTFCVazGHkAipOky/uqCJTd72N0nEHrqLHasYKahP9aefOm2 PKGg== 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=bJxqvLy9zGzvvkutSGtGxHePBUfMErAzVI7L2MSSw2Q=; b=CrmtdkE0CULpYd+LukUFy6T7O1iU9GVccLZB+o9x4Y4uLmFSCxUZNRDkolqdyOyLFg 8sVufV9kKX4vYQ/6bD325BlPsj/1tXycU10hHyqOKGkQIHh4sYrrvky/Htf7OYkNQAfB Ewa8MfUDPgSpGdV5JcKShkNx7M+iIUh4A6RQreBvGz/y//Ujths7XVYq0e6hIAYl59bs fQlcvJERJApzg4/bu6XeTF4HwSgUoqVpSMeImpFgdJl3BkPzPK1p40bgK5G7nZNWJOHD kHToEkdjD2yg5gTjGnUGf2gRoit/BNcZ/p+YML4YNqzCJCqZB9eGMqNdeYT27vo6OYPH g4SA== X-Gm-Message-State: AKGB3mJAO9THOVNaXDwTRZJGZhmXo3aXmfBkKY3OR35551LLEKYWylh7 H3srHs5tSrVxtMS63hLcF8coru5d X-Google-Smtp-Source: AGs4zMbNJ3o+Isvljj6/mlOIoFKf+ZodP1sTg3fRtKD4bKYBQIbxNy3ZK++BM8/T2X/2aPQl9//zPw== X-Received: by 10.28.104.6 with SMTP id d6mr4797953wmc.101.1512773353601; Fri, 08 Dec 2017 14:49:13 -0800 (PST) Original-Received: from [192.168.1.3] ([185.105.174.193]) by smtp.googlemail.com with ESMTPSA id f132sm2549550wmf.17.2017.12.08.14.49.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Dec 2017 14:49:12 -0800 (PST) In-Reply-To: <86609g9738.fsf@stephe-leake.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::22d 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:220806 Archived-At: On 12/9/17 12:40 AM, Stephen Leake wrote: > Since MMM needs to change the buffer bounds, why can't it just disregard > the current bounds, instead of relying on the caller to widen first? I does. But it'll have to rely on indent-line-function, subsequently, not calling widen. So some other piece of code that runs earlier, has to call widen instead. That's not for MMM's benefit, but for the common user who narrows interactively.