From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#57009: Obscure doc string of new variable syntax-wholeline-max Date: Sat, 06 Aug 2022 14:56:24 +0200 Message-ID: <877d3l5y4n.fsf@gnus.org> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1264"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Stefan Monnier , 57009@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 06 14:57:11 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 1oKJMc-00005z-Vh for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 06 Aug 2022 14:57:10 +0200 Original-Received: from localhost ([::1]:45014 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oKJMb-0007Ud-FY for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 06 Aug 2022 08:57:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56964) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oKJMU-0007UF-Ki for bug-gnu-emacs@gnu.org; Sat, 06 Aug 2022 08:57:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43249) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oKJMU-0004if-CT for bug-gnu-emacs@gnu.org; Sat, 06 Aug 2022 08:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oKJMU-00017U-7a for bug-gnu-emacs@gnu.org; Sat, 06 Aug 2022 08:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 Aug 2022 12:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57009 X-GNU-PR-Package: emacs Original-Received: via spool by 57009-submit@debbugs.gnu.org id=B57009.16597905994262 (code B ref 57009); Sat, 06 Aug 2022 12:57:02 +0000 Original-Received: (at 57009) by debbugs.gnu.org; 6 Aug 2022 12:56:39 +0000 Original-Received: from localhost ([127.0.0.1]:32998 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oKJM6-00016g-E6 for submit@debbugs.gnu.org; Sat, 06 Aug 2022 08:56:38 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:46752) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oKJM4-00016T-0A for 57009@debbugs.gnu.org; Sat, 06 Aug 2022 08:56:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=a0Seo0oJcD3Oy67oGNcws5E0RXv0PtpSWgeqV6dW0ZU=; b=YBI0j+96loeX1hHBLVGcQWwnHI CUPe8Sq6/wvv21kUhYECPF9VWSxkcNhgxQd5fPrFPlE7JcmTXCK3SCnKgQqe9k/WFbDKv5bgXAayZ PjGvCoRZcJlsAXKKTbk0MdeqhOi7XmYXWQOi/jZkItxdNiu7u6sXDFxvh5sunJWf5FuI=; Original-Received: from 2.151.51.97.tmi.telenormobil.no ([2.151.51.97] helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oKJLt-00043W-Kc; Sat, 06 Aug 2022 14:56:28 +0200 In-Reply-To: (Alan Mackenzie's message of "Fri, 5 Aug 2022 21:35:59 +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:238981 Archived-At: Alan Mackenzie writes: > Maximum line length for syntax operations. > If lines are longer than that, syntax operations will treat them as chunks > of this size. Misfontification may then occur. > This is a tradeoff between correctly applying the syntax rules, > and avoiding major slowdown on pathologically long lines. > > Probably introduced at or before Emacs version 29.1. > > .. There are several bugs here: > (i) It is not clear what is meant by "syntax operations". These should > be listed and if necessary, explained. You mean mention syntax-ppss? > (ii) It is not clear what it means for a "syntax operation" to treat a > line "as a chunk". This should be explained. It's saying that it's processing the line chunk-wise. I think that's pretty clear? > (iii) "Misfontification" may well occur, but what about other bad effects > of ignoring correct syntax? Don't they deserve a mention? Do they? > (iv) There is no mention of a mechanism to disable this "chunking" > effect, whatever it might be. If there is one, it should be > documented, if there's not, this should be stated. That seems self-evident -- you increase the size? There doesn't really seem to be much to alter here to me, but perhaps others have other opinions; adding Stefan to the CCs.