From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Newsgroups: gmane.emacs.bugs Subject: bug#56393: Auto narrowing autside of redisplay Date: Tue, 19 Jul 2022 11:17:36 +0200 Message-ID: References: <38c1a31040d2d2bc47ae@heytings.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1703"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) Cc: 56393@debbugs.gnu.org To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 19 11:18:12 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 1oDjMp-00008e-0S for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 19 Jul 2022 11:18:11 +0200 Original-Received: from localhost ([::1]:37056 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oDjMn-0005J6-E4 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 19 Jul 2022 05:18:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38504) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oDjMg-0005Iy-B6 for bug-gnu-emacs@gnu.org; Tue, 19 Jul 2022 05:18:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55048) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oDjMg-0006Di-2W for bug-gnu-emacs@gnu.org; Tue, 19 Jul 2022 05:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oDjMf-0003tt-Qe for bug-gnu-emacs@gnu.org; Tue, 19 Jul 2022 05:18:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Jul 2022 09:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56393 X-GNU-PR-Package: emacs Original-Received: via spool by 56393-submit@debbugs.gnu.org id=B56393.165822226614973 (code B ref 56393); Tue, 19 Jul 2022 09:18:01 +0000 Original-Received: (at 56393) by debbugs.gnu.org; 19 Jul 2022 09:17:46 +0000 Original-Received: from localhost ([127.0.0.1]:52807 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oDjMQ-0003tQ-Dt for submit@debbugs.gnu.org; Tue, 19 Jul 2022 05:17:46 -0400 Original-Received: from mail-ej1-f47.google.com ([209.85.218.47]:38427) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oDjMO-0003t9-0j for 56393@debbugs.gnu.org; Tue, 19 Jul 2022 05:17:45 -0400 Original-Received: by mail-ej1-f47.google.com with SMTP id l23so25998235ejr.5 for <56393@debbugs.gnu.org>; Tue, 19 Jul 2022 02:17:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :user-agent:mime-version; bh=29Sh5Jmv2k6HGkgZGYEnrRa3t1Ef6dLxHvdHg8ONf9E=; b=pelpZGmmBaQ5qZNbfTsjOHQGih2jA7UftpVk5g+CePK0aCGTRtGVhIswetxko1U9VD p1AHk0dmtJvKK/5wFei0e/Tekkfa1MjXwjy42XxxPPn3r2GE/wzrxhBpvd1LSjC3QhHN w5fhtQYTZrDrVmB6TIrO5bbO3l9uAgb0nL+RMtXrFgZ3uDgrSwpZy+YAcLCy7uzFyQDK 4/MJQymgaiOHZudZLAmFSf9b9zFpB42eGOeKo9CalTG0ulxxHO22xbSpsa7QGxPjqT+g MTSSSIPr0jXTICawQZuZzIoGUJ/MKAfnbWTsIXpVUzBkgPPEXFjsH/jvxZ3AcP9+tPmR y3Ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:user-agent:mime-version; bh=29Sh5Jmv2k6HGkgZGYEnrRa3t1Ef6dLxHvdHg8ONf9E=; b=NduNE/NijrP14nngxYKUoiqnf8mzz+3SPj0N8VsNB9pXlXpX5nX/n8i+RW/IA3x1gS NkLY1lNUCfYqVPnrpCdYbmeEm4FI7plzIT/RVoVe67Na+GtjVdqIFWfPE1OTnHu9BaCh VnW803rn43ObGCJ416zC3VC7LiEZ4glQNLbjLkJY5+8rhNb14Rrnu2UkmAizjYEJkrDl PfBs3l30REo5LaJXOhiCanvz2L+Sjsl8OU6tWyA3TXRIH0B5t+10Hj0d+fFXHNeWbwT2 Y25L8+PGZNzdtiWiBA6rHB1qIEg/ZyH00dfPuztqC0wUZO75RNG4ITQO22uw2qjAxvcg Z3ag== X-Gm-Message-State: AJIora+x7XpA+kW1mCUB5RvohEstv8FXumUgHrp/aGo+vJRH7AkHFqZY FKX/WRtbJBLExmklPg+MatDsg8c7Qq4= X-Google-Smtp-Source: AGRyM1vSjnCphJNbEcgO5XCxCH3lg4O1LA3AXaLb6h3l9Qo9wZNDR4z0/xJXWO7ymU3CjQrgvoQ1HA== X-Received: by 2002:a17:907:2da7:b0:72b:53e1:adac with SMTP id gt39-20020a1709072da700b0072b53e1adacmr29301509ejc.357.1658222257704; Tue, 19 Jul 2022 02:17:37 -0700 (PDT) Original-Received: from Mini.fritz.box (pd9e36437.dip0.t-ipconnect.de. [217.227.100.55]) by smtp.gmail.com with ESMTPSA id p24-20020a17090653d800b0072efb6c9697sm5260487ejo.101.2022.07.19.02.17.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Jul 2022 02:17:37 -0700 (PDT) In-Reply-To: (Gregory Heytings's message of "Tue, 19 Jul 2022 08:53:12 +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:237412 Archived-At: Gregory Heytings writes: > If a buffer with long lines is never or not yet displayed, the > specific optimizations do not take place. That was a very important > if not critical improvement, because Emacs may internally use buffers > with long lines, and they should be entirely unaffected by that > change. (For example, the newsrc.eld file used internally by Gnus > contains one such long line; if the same temporary restrictions were > used in that buffer, it is possible that Gnus would not work correctly > anymore.) > > As far as I can tell, iterators are used in such buffers, too, but > they are not fontified. Fontification happens only when necessary, > that is, when the buffer is actually displayed. Okay, I understand the internal buffer argument. But what if it is not such a buffer? Say a large XML or JS file with background fontification. WDYT about marking buffers that don't want auto narrowing? Or the opssite, mark buffers that want it?