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#57804: An infinite loop in a `fontify-region' function causes Emacs to hang indefinitely Date: Fri, 16 Sep 2022 09:31:47 +0300 Message-ID: <83o7vf4yp8.fsf@gnu.org> References: <87pmfx6h7y.fsf@gnus.org> <2b58b8f5429a6e3aecda@heytings.org> <834jx85tyv.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14835"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gregory@heytings.org, 57804@debbugs.gnu.org, larsi@gnus.org To: Paul Pogonyshev Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 16 08:33:13 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 1oZ4uW-0003gf-OP for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 16 Sep 2022 08:33:12 +0200 Original-Received: from localhost ([::1]:42054 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oZ4uV-0005Pg-Ml for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 16 Sep 2022 02:33:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59630) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZ4uM-0005PQ-U7 for bug-gnu-emacs@gnu.org; Fri, 16 Sep 2022 02:33:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42214) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oZ4uM-0000Mc-LV for bug-gnu-emacs@gnu.org; Fri, 16 Sep 2022 02:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oZ4uM-0001tZ-6A for bug-gnu-emacs@gnu.org; Fri, 16 Sep 2022 02:33: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: Fri, 16 Sep 2022 06:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57804 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: wontfix Original-Received: via spool by 57804-submit@debbugs.gnu.org id=B57804.16633099277199 (code B ref 57804); Fri, 16 Sep 2022 06:33:02 +0000 Original-Received: (at 57804) by debbugs.gnu.org; 16 Sep 2022 06:32:07 +0000 Original-Received: from localhost ([127.0.0.1]:41290 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZ4tS-0001s2-Na for submit@debbugs.gnu.org; Fri, 16 Sep 2022 02:32:07 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:53282) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZ4tP-0001rX-5q for 57804@debbugs.gnu.org; Fri, 16 Sep 2022 02:32:05 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:41764) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZ4tJ-0000Bc-2a; Fri, 16 Sep 2022 02:31:57 -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=4Bc0vXV4zzqNLFQdAHbrG/NWAlLuPEToQHRdMokrlVA=; b=E9z4+9cMhnEi d3H7DLwdyS6DL3+VxlTmIMD85ouQs+G09pbu8UibQza+QjS60K05oUvwYLZUkGIGCL1MBOodH16I2 fmwOY4YhDXVLMKv6V+lFd2p3fmzWbwxLSf1wnszvtnzOMYywrrEcLOl44hH6LwmrgsjYGkIkLwcao eQ+KgJIv7pz7//BPa27DZ6ICj0nQOZ42jYDVVCff7G7H5Q5BjXSvDA7oYoSfVvVdFAPi5VEd3XQ8c VhwplUUCHeecO2aXtXZzWDk/nH1zx6YQsYOsI8z9C8LQZReTt2gzlSbQAFxrtewkOoEQKivlhgVsK eAidepHfcJcyixAPFbxm/A==; Original-Received: from [87.69.77.57] (port=4578 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 1oZ4tG-0000ne-MO; Fri, 16 Sep 2022 02:31:55 -0400 In-Reply-To: (message from Paul Pogonyshev on Thu, 15 Sep 2022 22:40:24 +0200) 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:242697 Archived-At: > From: Paul Pogonyshev > Date: Thu, 15 Sep 2022 22:40:24 +0200 > Cc: Eli Zaretskii , 57804@debbugs.gnu.org, Lars Ingebrigtsen > > It is impossible to correctly fontify log buffers if you are > restricted to semi-arbitrary parts of it: you need to at least see > where the current entry starts, even if it for whatever reason > includes a line with 100 K characters. In buffers with very long lines, fontifications are supposed and requested to simplify their act so as not to need access to arbitrary portions of the buffer outside the restriction. If such simplification is for some reason impossible or impractical, then the code called from fontification-functions should at least be amended not to produce infloops when its calls to 'widen' don't widen. This is all part of solving a long-standing problem in Emacs with becoming completely unresponsive when displaying buffers with very long lines. It is understood and accepted that in some cases this will come at a price of less accurate fontifications or minor glitches in other features. > > It isn't for me personally, no. It is important for Emacs users. > > How about letting Emacs users decide for themselves? The users already can decide for themselves: they can set the long-line-threshold variable to larger values or even to nil. > Let Logview > behave against your recommendations. And then, when the users discover > how crappy and unresponsive it is, as a result, compared to everything > else, they will just uninstall the package and use something better. We expect package developers to cooperate with our effort of making Emacs responsive and reasonably functional in buffers with very long lines.