From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#56682: locked narrowing Date: Sat, 20 Aug 2022 20:12:38 +0300 Message-ID: <83zgfydek9.fsf@gnu.org> References: <831qtgff78.fsf@gnu.org> <83zgg4dw4y.fsf@gnu.org> <83r11gdrr4.fsf@gnu.org> <83edxfds7s.fsf@gnu.org> <83r11fc80o.fsf@gnu.org> <83o7wjc6o2.fsf@gnu.org> <83lernc5gu.fsf@gnu.org> <83k076dd7d.fsf@gnu.org> <83czcyd8jf.fsf@gnu.org> <83a682d66r.fsf@gnu.org> <837d36ceno.fsf@gnu.org> <37dd2827f54f8bbda5e3@heytings.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32613"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56682@debbugs.gnu.org, monnier@iro.umontreal.ca, dgutov@yandex.ru To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 20 19:13:30 2022 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 1oPS2M-0008KL-Ct for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 20 Aug 2022 19:13:30 +0200 Original-Received: from localhost ([::1]:36266 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oPS2L-0002Tb-CV for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 20 Aug 2022 13:13:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56532) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oPS1v-0002TS-B9 for bug-gnu-emacs@gnu.org; Sat, 20 Aug 2022 13:13:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43695) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oPS1u-0000xE-SY for bug-gnu-emacs@gnu.org; Sat, 20 Aug 2022 13:13:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oPS1u-0005UV-DP for bug-gnu-emacs@gnu.org; Sat, 20 Aug 2022 13:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 20 Aug 2022 17:13:02 +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.166101557121089 (code B ref 56682); Sat, 20 Aug 2022 17:13:02 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 20 Aug 2022 17:12:51 +0000 Original-Received: from localhost ([127.0.0.1]:33444 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oPS1j-0005U5-E3 for submit@debbugs.gnu.org; Sat, 20 Aug 2022 13:12:51 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41556) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oPS1e-0005Tp-FW for 56682@debbugs.gnu.org; Sat, 20 Aug 2022 13:12:50 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:46710) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oPS1Y-0000vj-HT; Sat, 20 Aug 2022 13:12:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=CNGq4j5FBgHxA2XwDDUkF8z/ml6+JO4zaTJzUhmkNa0=; b=Dg7yE2ah6egg Ew9G/M8s2ZEKsdxwC7efyc+5lEXe/3kZd31QTaH1QdDz2Oy0ACbHXIUZBk9WZef7G1v1yjAc1hEX3 Bjb3THMkT9qd/j5uHjTIqcDbjO0faiRHUvL17LpKRSdNr52AjPOdREkRLes8J1LT3Mw2Qu1/O/z9s uDNQr+X3XK7yWb9EXEz9HTQbQOCIkFcD34gUfC251zbZjM8PX6ur+QG4q67LxVHhziB2X0Zn5LPZf 9/C3qZPz7aOKUAqO2ZiOzuey2qIjW7U1gIeBBVm+nvunMNqie6CY1gzxIc5CyS6vgTXH2ZhlNzBXm eheIdH4DT9/HHqx2DsiZXg==; Original-Received: from [87.69.77.57] (port=4934 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oPS1X-0008C3-7S; Sat, 20 Aug 2022 13:12:39 -0400 In-Reply-To: <37dd2827f54f8bbda5e3@heytings.org> (message from Gregory Heytings on Sat, 20 Aug 2022 16:20:57 +0000) 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" Xref: news.gmane.io gmane.emacs.bugs:240261 Archived-At: > Date: Sat, 20 Aug 2022 16:20:57 +0000 > From: Gregory Heytings > cc: Stefan Monnier , 56682@debbugs.gnu.org, > dgutov@yandex.ru > > > I pushed a (hopefully) improved version of the the locked narrowing > feature in the feature/improved-locked-narrowing branch. It is now > possible: > > 1. to unlock a locked narrowing, > > 2. to use narrow-to-region and widen within the bounds of a locked > narrowing, > > 3. to enter and leave a locked narrowing within a locked narrowing, and > > 4. to use that feature in Lisp code (either directly or with a helper > macro). > > As far as I understand, given that it is possible to unlock a locked > narrowing, adding the possibility to choose how the bounds of the locked > narrowings are computed has become unnecessary. > > Comments/feedback welcome. Thanks. The problem with narrowing around the calls to pre- and post-command hooks (see https://debbugs.gnu.org/cgi/bugreport.cgi?bug=57207#107) still exists, AFAICT, and needs to be resolved.