From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.bugs Subject: bug#64391: buffer narrowing slowdown regression in emacs 29 Date: Fri, 07 Jul 2023 12:42:28 +0000 Message-ID: References: <87r0psb51z.fsf@ust.hk> <0AD15A09-F669-48C0-AF5C-971D52F5BF8E@gmail.com> <83v8f3q1ff.fsf@gnu.org> <50A46AAC-2089-45CB-A355-CCB2B4EA8D76@gmail.com> <5995c9ed6a0b39c3070c@heytings.org> <83a5wak1tr.fsf@gnu.org> <26cee506f708f3c6cfe1@heytings.org> <26cee506f70bbc9de58b@heytings.org> <83h6qghpdc.fsf@gnu.org> <26cee506f77e9c87e325@heytings.org> <06A8380F-08A6-464E-9946-02F8498031EC@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40532"; mail-complaints-to="usenet@ciao.gmane.io" Cc: acohen@ust.hk, 64391@debbugs.gnu.org, eliz@gnu.org, monnier@iro.umontreal.ca To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 07 14:43:21 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 1qHkns-000AEj-Cf for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 07 Jul 2023 14:43:16 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qHknh-0002Hw-HT; Fri, 07 Jul 2023 08:43:05 -0400 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 1qHknf-0002Ev-8Z for bug-gnu-emacs@gnu.org; Fri, 07 Jul 2023 08:43:03 -0400 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 1qHkne-0000hc-Oy for bug-gnu-emacs@gnu.org; Fri, 07 Jul 2023 08:43:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qHkne-0003Kf-Ag; Fri, 07 Jul 2023 08:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Fri, 07 Jul 2023 12:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64391 X-GNU-PR-Package: emacs,gnus X-Debbugs-Original-Cc: acohen@ust.hk, 64391@debbugs.gnu.org, Eli Zaretskii , monnier@iro.umontreal.ca, bugs@gnus.org Original-Received: via spool by 64391-submit@debbugs.gnu.org id=B64391.168873375312775 (code B ref 64391); Fri, 07 Jul 2023 12:43:02 +0000 Original-Received: (at 64391) by debbugs.gnu.org; 7 Jul 2023 12:42:33 +0000 Original-Received: from localhost ([127.0.0.1]:42726 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qHknB-0003Jy-2K for submit@debbugs.gnu.org; Fri, 07 Jul 2023 08:42:33 -0400 Original-Received: from heytings.org ([95.142.160.155]:44518) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qHkn8-0003Jo-04 for 64391@debbugs.gnu.org; Fri, 07 Jul 2023 08:42:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20220101; t=1688733749; bh=lZG5obM2A8vbI4Hto9jfBiM9LHONndLCUD2HrNHRjYM=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=sE72XE676Ao8h6frC3xxvwcq95sOLzuAmcmBDSk6v0hbqqfN4CL6P77IJ/lTPTc5f f/AE9BvG1k+43NXFnzod04Xramrx7SPUE4paPyj3BwkfGRGHOTFXFKezVVBMSu1Nfu cOlP7diaBbWQYBfOICULMfu7asZO+Y07zwqIrtZV6fM6fPKiS05E+dUaT6Vy8QBfks wVdaKckAym+zn/xAlx35kX6igFuj1FpjCgLzFqz7UqyWndkNxQjNiSSJnqMVidWRxo 6+bXUdfGjq8uAZsDK6+n+udLO9xsijhSIuR6TUEjxQj9d2Dna2Nv7iJPAx17Eht/aQ AKbWTf4CSV+Qw== In-Reply-To: <06A8380F-08A6-464E-9946-02F8498031EC@gmail.com> 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:264721 Archived-At: >> Yes. In fact now that we have a separate function for the labeled >> case, we can remove the funcall in both cases. Patch attached. > > Thank you, but are we sure that save-restriction would be used for > labelled restrictions in the future? Maybe we should just start with the > unlabelled case. > I'm sorry, I don't understand your question. The only way (except by using internal functions) to enter a labeled restriction is to use the with-restriction special form with its optional label argument. That form has a save-restriction since day one. >>> The documentation should also make it clear that `nil` is not a valid >>> label. >> >> Is that not already clear in the docstring, which says "in which LABEL >> is a symbol"? > > Well, nil is a symbol. > Indeed, but I'd say it's clear enough from the context that "symbol" means a quoted symbol here.