From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#56682: feature/improved-locked-narrowing 9dee6df39c: Reworked locked narrowing. Date: Tue, 31 Jan 2023 01:29:52 +0200 Message-ID: <860ea0a7-a093-d6ca-ecf7-3e7c4a9e0834@yandex.ru> References: <166939872890.18950.12581667269687468681@vcs2.savannah.gnu.org> <20221125175209.51166C004B6@vcs2.savannah.gnu.org> <6c9d91cffc1bfd801530@heytings.org> <6c9d91cffc394613f58a@heytings.org> <83eds0ksev.fsf@gnu.org> <8aadf0ddd54c85c8144a@heytings.org> <831qnhg3d9.fsf@gnu.org> <9757fbea37611e9c44b9@heytings.org> <83cz6yacxt.fsf@gnu.org> <6943e04e30e5a02a52e6@heytings.org> <838rhk5fy1.fsf@gnu.org> <6943e04e30a40824e107@heytings.org> <83k0143q37.fsf@gnu.org> <012b781c-d4dd-0ec5-4c15-a997879690e9@yandex.ru> <83v8kn3kya.fsf@gnu.org> <880256a0-4d91-76d7-1237-4866a3652803@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18192"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Cc: 56682@debbugs.gnu.org, Eli Zaretskii , gregory@heytings.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 31 00:31:22 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pMdcP-0004ax-Rw for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 31 Jan 2023 00:31:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pMdcB-000160-Mc; Mon, 30 Jan 2023 18:31:07 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pMdc6-00014D-HH for bug-gnu-emacs@gnu.org; Mon, 30 Jan 2023 18:31:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pMdc6-0008T5-9h for bug-gnu-emacs@gnu.org; Mon, 30 Jan 2023 18:31:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pMdc5-0002OY-Nz for bug-gnu-emacs@gnu.org; Mon, 30 Jan 2023 18:31:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Jan 2023 23:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56682 X-GNU-PR-Package: emacs Original-Received: via spool by 56682-submit@debbugs.gnu.org id=B56682.16751214039067 (code B ref 56682); Mon, 30 Jan 2023 23:31:01 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 30 Jan 2023 23:30:03 +0000 Original-Received: from localhost ([127.0.0.1]:50883 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pMdb9-0002M9-0U for submit@debbugs.gnu.org; Mon, 30 Jan 2023 18:30:03 -0500 Original-Received: from mail-wm1-f46.google.com ([209.85.128.46]:46775) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pMdb6-0002L9-P6 for 56682@debbugs.gnu.org; Mon, 30 Jan 2023 18:30:01 -0500 Original-Received: by mail-wm1-f46.google.com with SMTP id m5-20020a05600c4f4500b003db03b2559eso9389596wmq.5 for <56682@debbugs.gnu.org>; Mon, 30 Jan 2023 15:30:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=riI6abcqdCFTNT8LlTZZKwxLWEwzH4RSrd0Tr6+8wEo=; b=QZFK6TlvH5rhQ7PazrBzDugoAIuo2B5oPe9ouRpQAItPFAQSGsIvMhfCwuWc3Mk6tr nARDz9AkOxr8Zaj5BL7lF+ePG8BwsqLs4enJbrT4bDY8bgU5Y4AP/F5X7IFjL/k7Ce+M qZ/8Sh2H7NOfEiZouxfn+4T2vzhnvGEhl/DGb1Yg7WGUYQYjomftSkcDHP97cwV7KDAK lgwI/wx2A8AgIkz18ZpRaAzt7tqC+2hLB9QW5b2hCfB4bNK+a/5iTam9m9WgquJcgW70 lt0r1glHznwlu79qk2F+Hf5OfOoM5AhJaciAyjaORH5mSo36QqEpdTVSARapNMHLsNcV bzsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=riI6abcqdCFTNT8LlTZZKwxLWEwzH4RSrd0Tr6+8wEo=; b=bD+GJReLOJOmBCPTUuqb5xfyyQ9aG6/njBNXrRTd98yT9AOlYo0fqpeWjEmIB8Ft/Y ehflV1vSJmcNgTqfV90OzbviAhz2DLVmcs5vPJ7/izIskQ3ebhJrY0lOACg2dhrEqW87 /Gt6Ly9DtkeO2zwKsVa6M+cm46YpLahMep4pXtfC9VKGE/rJT2D3/b/M3dEGcAXOi5Qb Ux9KSIGQCn6kDUwrP1PNQc4R3IjRgsdsQBTej9/b2y+NGN7D8COL7GoF6+8we81fTRJ0 Ta/+5xG8f7s4MfOUWntRQSyXrGqTkKnGmr/HuHfZiyUjEgJsFFHHy9zbUDH6qD7GhW3T U3WQ== X-Gm-Message-State: AFqh2kpqml0W62VbeKeSbf4y5K6ciYfLxyhKyejjp49mn4A9FbcvwKbo 8ClkZy9Zs0ynspru0UHmtnM= X-Google-Smtp-Source: AMrXdXvZUGjes0nktWl2BsA4hWi84rG7r605m5wCsC2R4eeNYYKGUGqVg+IluutK0mVyzFgfVgFx8Q== X-Received: by 2002:a05:600c:c07:b0:3da:ff60:f5c9 with SMTP id fm7-20020a05600c0c0700b003daff60f5c9mr50452812wmb.40.1675121394867; Mon, 30 Jan 2023 15:29:54 -0800 (PST) Original-Received: from [192.168.0.2] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id m29-20020a05600c3b1d00b003dc51c48f0bsm7274712wms.19.2023.01.30.15.29.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 30 Jan 2023 15:29:54 -0800 (PST) Content-Language: en-US In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:254492 Archived-At: On 30/01/2023 23:49, Stefan Monnier wrote: >> Also note that previously, I'd never have suggested that redisplay code >> changes the value of font-lock-dont-widen. > It would be ugly for redisplay code to mess with font-lock data like > `font-lock-dont-widen`. Instead, it should let-bind its own variable to > indicate that the long-lines code has currently installed a narrowing, > and `font-lock.el` can decide whether to pay attention to that var. That does sound better, but either way, the net effect would (probably) be that by default font-lock obeys the added narrowing, but can escape it for special purposes with no trouble.