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: [SUSPECTED SPAM] Re: [Emacs-diffs] scratch/widen-less a4ba846: Replace prog-widen with consolidating widen calls Date: Thu, 14 Dec 2017 16:17:10 +0200 Message-ID: <7e4799f9-b640-f363-5ecc-3b83eeada292@yandex.ru> References: <20171129233237.27462.23351@vcs0.savannah.gnu.org> <83o9nexy48.fsf@gnu.org> <83d13uxug5.fsf@gnu.org> <41e3f343-816f-d2db-6575-6ef43d54957f@yandex.ru> <838tecuqjb.fsf@gnu.org> <83609etizl.fsf@gnu.org> <83wp1ts123.fsf@gnu.org> <1e8587a7-c98b-5183-3cfd-8e1034443f44@yandex.ru> <83shchrwia.fsf@gnu.org> <83lgi9ruo8.fsf@gnu.org> <01c15d4e-566b-3b7f-c4e6-6f199ba5bcc3@yandex.ru> <89c4a839-a124-a1a8-5cf9-583baf2b4dd6@yandex.ru> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1513261080 10195 195.159.176.226 (14 Dec 2017 14:18:00 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 14 Dec 2017 14:18:00 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:58.0) Gecko/20100101 Thunderbird/58.0 Cc: Eli Zaretskii , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 14 15:17:53 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 1ePUKe-0002EX-5P for ged-emacs-devel@m.gmane.org; Thu, 14 Dec 2017 15:17:52 +0100 Original-Received: from localhost ([::1]:41204 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePUKl-0003az-9G for ged-emacs-devel@m.gmane.org; Thu, 14 Dec 2017 09:17:59 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33780) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePUKe-0003ah-Ir for emacs-devel@gnu.org; Thu, 14 Dec 2017 09:17:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ePUKZ-0005Qn-HO for emacs-devel@gnu.org; Thu, 14 Dec 2017 09:17:52 -0500 Original-Received: from mail-lf0-x242.google.com ([2a00:1450:4010:c07::242]:44964) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ePUKZ-0005PV-9O; Thu, 14 Dec 2017 09:17:47 -0500 Original-Received: by mail-lf0-x242.google.com with SMTP id x204so6836526lfa.11; Thu, 14 Dec 2017 06:17:47 -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=jSkq9g74IfRPnBtpDYV322Ksvl/T/zLOjRh0kC20WNg=; b=CmT2HpYUhL6saoM63JmEZGO5gn5LulOO+2XCXtRv6VuohI28f9FyGIjVpydJEzxvVV nxWbEItPmimlvvgwnIgI5Orm1earEZEaU2kn4okD/OW64SXlpd2uRM2ejsG2SP0uDE9k 7kpsr4C35H/Y5PiYqojUI6ZLl5lLqdECvGywxzoW69m1QwifGc/NXzoiNsDr8Z46Ul+7 3oikIclxYWTfLDVatUsI+y5Tf26o2H4CGGA8iQIev6TDGNC2bZgPvmqK8FQGQQlHxT6O EKAY7zzhji9yPb6qV1CVuE4x6QoXoSM2qbmRRIc2V30AbHtJ2W5/hSq8jq3SJ3yUXq8R R4gQ== 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=jSkq9g74IfRPnBtpDYV322Ksvl/T/zLOjRh0kC20WNg=; b=ccL3TpwcxxuH9bnNzUIu78rg+h1UCgP1CL++l9EDoxeiJC8sLUyi4aSYN6rgmMj0uT xpvASJOU/f4YQjkEUr+FoapYNQZ73wh8WShAHS1QU5t6xbiRL4zoO1nKkwzCanfmrlwr xD3GMQJG5dRmhd56U8p2zNyrDH3BZXC3HCtkpPk9T8g8TNCadPLGPxdR3wBeDmw+p00i MQOMmu1FQIa0rB+u+cqoPxscQIR2iAddhi0BUUgOVOYKsBFyDNyo/TFpsvZNTPmd5dBd meKd1UhOZSZBylyKYrv0Bb/Ht8Cra4r8ih4Dsoy04syXnuCz/l6kigI2rNHlQRiUxwJW Kjpw== X-Gm-Message-State: AKGB3mLoDTOKQmT4RhhHLZcgPXmUH+OMlydatsxU8N3REMA0fvnticAz P/E4tvZcUm11KpEDnUEcSQpZPQWY X-Google-Smtp-Source: ACJfBovR/qo/aVthvVYyRUQpzARvwpuxfZNtCmpOhlO4+xKjKglAKVWg71VuRP1pyAD8f1T0jQDp7A== X-Received: by 10.46.14.9 with SMTP id 9mr4184851ljo.148.1513261065356; Thu, 14 Dec 2017 06:17:45 -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 t80sm844406lfe.26.2017.12.14.06.17.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Dec 2017 06:17:43 -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:4010:c07::242 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:221051 Archived-At: On 12/14/17 4:01 PM, Stefan Monnier wrote: > font-lock has always widened (except when font-lock-dont-widen is set, > which AFAICT is only the case in rmail.el), so that's probably why no > major mode widens (CC mode probably widens during font-lock because it > uses functions which are also used in other circumstances where they > need to widen). > > So I don't think we need to make any changes on that front. So, nothing to add to the manual? Code changes would only be needed in CC Mode, of course. >> - Similar info for syntax-propertize-function, though no violators have been >> observed so far. > > Since there are no current violators, we can fix this part of the doc > when we fix the corresponding code. OK. The recent change in spss cache also depends on synax-propertize-function not calling widen, BTW. >> What is not included, and maybe should wait until Emacs 27: >> - Similar consolidations of 'widen' calls for add-log-current-defun, >> eldoc-print-current-symbol-info, beginning-of-defun-function and others. And >> accompanying documentation (again, where should it go?). > > Maybe some of the doc should be in the narrowing section, where we can > document the contexts where the narrowing is "guaranteed" > (e.g. font-lock and indentation). Hmm. Currently, that page doesn't exactly describe when one should call 'widen', and when shouldn't. Also, the piece of documentation I'm thinking about will probably need to reference, again, "Some major modes need to support embedded regions of text whose syntax belongs to a different major mode. Examples include “literate programming” source files that combine documentation and snippets of source code..."; maybe that introduction should leave the Indentation Controlled by Major Mode section, and get a section of its own. So we can refer to it from several places, at least. Or maybe put all mixed-major-mode considerations in it together.