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: Fri, 1 Dec 2017 21:38:23 +0000 Message-ID: <64ff5649-2a54-a519-ae89-f8c43eb7ccf2@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> <87bmjit9yw.fsf@galago> 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 1512164328 9933 195.159.176.226 (1 Dec 2017 21:38:48 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 1 Dec 2017 21:38:48 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Thunderbird/57.0 Cc: Alan Mackenzie , Tom Tromey , emacs-devel@gnu.org To: Vitalie Spinu , Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 01 22:38:43 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 1eKt17-0002EP-P4 for ged-emacs-devel@m.gmane.org; Fri, 01 Dec 2017 22:38:41 +0100 Original-Received: from localhost ([::1]:33156 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eKt1E-0000qv-Tx for ged-emacs-devel@m.gmane.org; Fri, 01 Dec 2017 16:38:48 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58874) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eKt0z-0000pK-41 for emacs-devel@gnu.org; Fri, 01 Dec 2017 16:38:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eKt0u-0007Fq-43 for emacs-devel@gnu.org; Fri, 01 Dec 2017 16:38:33 -0500 Original-Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]:43879) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eKt0t-0007Ex-TW for emacs-devel@gnu.org; Fri, 01 Dec 2017 16:38:28 -0500 Original-Received: by mail-wm0-x235.google.com with SMTP id n138so5837228wmg.2 for ; Fri, 01 Dec 2017 13:38:27 -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=H223ixsJtHrp8i1ZIxKkqv6Z2hQvoH4p4cs36YqHv4A=; b=FtgWMwIyHnCXKWGiBrOxpRgXTSGL/TnY9uO0gkPR+ZJnV7lhazFCiWjx12tzSCZxpy b7mZaY8VIcl/IdusuA4dF1QuWnJEr/Ya0rnPUiybpjZG4PzuhpPdHSD0aYwjLQe2ectQ wZXYZqa/2xN0EeeqOeABZbbJZEbqohlfPm5p+giZM0glkqwwbWJ6jXa/Jd+l5Mgb8UBt 6nX9s/rSe2X0qyosrbTDyeKnwUCvo9qxs0fk2yFTnNlvIrymm6J5vx4eQQsyZX+1IqKF 6FOX+gsnrwt++WbjCaCZxQooZqjATkeqZRpy4CRHyDUnKU9aM+7A/vxRWfbq1VomlKr4 8dtA== 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=H223ixsJtHrp8i1ZIxKkqv6Z2hQvoH4p4cs36YqHv4A=; b=YOJOUUKJ0FCpMy8K77Y6PxFbVtyNXFROodE4janyvmQuBfGX2dizQmPatJgHz6+ELp AmtlQfkknItwE8ZDakMZYFup816ervfnCy8U4fgIJ6mZjOc3fDuVGT2WQFoX4Ydn7ZgA GP+suYqcz6Qe0qADxzc/cX2f3m8XO2kV4wbqiUUgKtAoVm4EmcJxxSe6d7pUSNmk/ApF x/mrAkMMydx+HA1w8mS/Q5QCCZi0OUpJJYM86PCQpoL8pLaUGe/2GRbbwI60gT1EWCgl VeeltvTthnk0m6BcWyaGVQHB4syN6TYjIX5mP//OLWa2ymjXeSSRG21YeHHhWffx/MmP p3yg== X-Gm-Message-State: AKGB3mJbvyKS8QR9h/ta8JVQoKudKpjzgEnwFSS71AQF7Cois1HGbXFu xCsBRWd8pjhmF8lrJrxrCO4= X-Google-Smtp-Source: AGs4zMZDb6LFJ8Uy0H/wFk4/iLlibHV1KnYFQLaPoS89uLskG7IyBjnZhHKF+QiADvmBc/DK5ot1gQ== X-Received: by 10.28.5.201 with SMTP id 192mr2141544wmf.142.1512164306798; Fri, 01 Dec 2017 13:38:26 -0800 (PST) Original-Received: from [192.168.1.38] (89-160-235-67.du.xdsl.is. [89.160.235.67]) by smtp.googlemail.com with ESMTPSA id v18sm8162296wrv.37.2017.12.01.13.38.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Dec 2017 13:38:25 -0800 (PST) In-Reply-To: <87bmjit9yw.fsf@galago> 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::235 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:220596 Archived-At: On 12/1/17 9:27 PM, Vitalie Spinu wrote: > > Please correct me if I am wrong but the current patch requires all modes to use > `prog-widen` and reserve `widen` to the interactive use, right? If so, this is > the opposite of the older idea of adding `hard-limits` for widening which only > multi-modes should use. Quite the opposite: the patch under discussion, in scratch/widen-less, removes prog-widen altogether. > I have proposed a patch for `set-widen-limits` 1.5 years ago which still lives > in scratch/hard-narrow branch. It turned to be a pretty straightforward feat and > worked without requiring any changes of the excising elisp code. > > The lengthy discussion started here: > > https://lists.gnu.org/archive/html/emacs-devel/2016-04/msg00629.html > > Somewhere along the way we decided in favor of adding an extra `hard` argument > to `narrow` instead of having a new `set-widen-limits` function. That turned to > be impossible as it required backward-incompatible changes to the byte-code. I > run out of steam by then and the whole idea died :( If that was the only difficulty, having set-widen-limits a separate function would have been a better choice back then (I wasn't aware, FWIW). The new proposal is a bit simpler, OTOH.