From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Filipp Gunbin Newsgroups: gmane.emacs.bugs Subject: bug#46274: 28.0.50; Inconsistent doc for syntax-propertize-function Date: Wed, 03 Feb 2021 23:04:26 +0300 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25179"; mail-complaints-to="usenet@ciao.gmane.io" To: 46274@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 03 21:05:56 2021 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 1l7OPS-0006OE-Ok for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 03 Feb 2021 21:05:55 +0100 Original-Received: from localhost ([::1]:48892 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l7OPR-0006XC-Mi for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 03 Feb 2021 15:05:53 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55212) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7OOd-0006VG-MQ for bug-gnu-emacs@gnu.org; Wed, 03 Feb 2021 15:05:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55618) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l7OOc-0002gG-Nj for bug-gnu-emacs@gnu.org; Wed, 03 Feb 2021 15:05:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l7OOc-0002yU-Ja for bug-gnu-emacs@gnu.org; Wed, 03 Feb 2021 15:05:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Filipp Gunbin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 03 Feb 2021 20:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46274 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.161238269611416 (code B ref -1); Wed, 03 Feb 2021 20:05:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Feb 2021 20:04:56 +0000 Original-Received: from localhost ([127.0.0.1]:38931 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l7OOV-0002y4-Hc for submit@debbugs.gnu.org; Wed, 03 Feb 2021 15:04:55 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:42552) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l7OOF-0002xS-K3 for submit@debbugs.gnu.org; Wed, 03 Feb 2021 15:04:54 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55096) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7OOD-0006HI-LB for bug-gnu-emacs@gnu.org; Wed, 03 Feb 2021 15:04:39 -0500 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:41801) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7OO9-0002T5-FT for bug-gnu-emacs@gnu.org; Wed, 03 Feb 2021 15:04:37 -0500 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 9ED555C010D for ; Wed, 3 Feb 2021 15:04:28 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Wed, 03 Feb 2021 15:04:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= from:to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=fm2; bh=KW3HL7ifOwEJBxAGuvLeUnIIL9 39+wTNf9JcL/qVV8w=; b=JgBhyLhn0RquXjXetpGSv+QT5tYYs6qZ/nEfSWkaAv p+JbSJxHB8wSOTmqBy6oZtkzS4yxFkkrKn7DeV+lmBOaYF7tXrLI87HdL2sueCsx ePdMHO4yUwC9PDf7l3P/nJ52QveYtOLW65GW8HEN+bA66dGdcgzzvTKyHZutLxW7 UDYiBvyXqTnlqsmpMSalkTcegYIslBFS5QQcCYzKjVAqmwV8fYOj/Z8lhgAL2qbo 4fTsOgbLppO215OLy7oMhEzzCDb5dPdEuXpRO3rd8v40PnmijtARS0rsn357KEtv UDglUBGtI8LK2e1TJUBBAcFBtDekF/BtLpT69B8+ScBg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=KW3HL7 ifOwEJBxAGuvLeUnIIL939+wTNf9JcL/qVV8w=; b=OW/Odls7iqG6SF++MnM1kV I08em58txQNGhrnrg1xbUDqyLGtS0bjG5CBPgg9pfIGHil3cUsnYNqE8gkzg/eCK CpHmipVcCGuFAYZKIk8cqTPP5nx9G1i3acMs/7q/wNs+uht20O68iRCBSj/lwENi UolFzQJ6Z7BztvA+FscHp/Y6TXDcstOvJIdo5Mt4ONDnR12xYornfbmOYxAfL0R9 7lCZXfVwdzUe0h34VCcEiF9G853odp317waZq5VUjnX0+v8XPqwAwnH0eCxK1ORy hUvveG4zgtNxhElHV6K5BSdDdx53UqcTjYU8MrWOIp/D8PslWXqnnVMNziE9vFMw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrgedvgddufedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkgggtgfesthhqredttd dtjeenucfhrhhomhephfhilhhiphhpucfiuhhnsghinhcuoehfghhunhgsihhnsehfrghs thhmrghilhdrfhhmqeenucggtffrrghtthgvrhhnpeeiieeugeduuefhlefgjeehieefje ejgfeileejueefhfdthfeivefhvefgffegvdenucfkphepkeegrddvtdegrdduleefrddu tdeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepfh hguhhnsghinhesfhgrshhtmhgrihhlrdhfmh X-ME-Proxy: Original-Received: from fgunbin.local (unknown [84.204.193.106]) by mail.messagingengine.com (Postfix) with ESMTPA id 2144224005C for ; Wed, 3 Feb 2021 15:04:28 -0500 (EST) Mail-Followup-To: bug-gnu-emacs@gnu.org Received-SPF: pass client-ip=66.111.4.27; envelope-from=fgunbin@fastmail.fm; helo=out3-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:199238 Archived-At: C-h v syntax-propertize-function contains this text: --8<---------------cut here---------------start------------->8--- The specified function may call `syntax-ppss' on any position before END, but if it calls `syntax-ppss' on some position and later modifies the buffer on some earlier position, then it is its responsibility to call `syntax-ppss-flush-cache' to flush the now obsolete ppss info from the cache. --8<---------------cut here---------------end--------------->8--- But (info "(elisp) Syntax Properties") has a different view: --8<---------------cut here---------------start------------->8--- It is allowed to call =E2=80=98syntax-ppss=E2=80=99 on any position before = END. However, it should not call =E2=80=98syntax-ppss-flush-cache=E2=80=99; so, = it is not allowed to call =E2=80=98syntax-ppss=E2=80=99 on some position and later mo= dify the buffer at an earlier position. --8<---------------cut here---------------end--------------->8--- Which is the right one? Thanks. In GNU Emacs 28.0.50 (build 1, x86_64-apple-darwin20.2.0, NS appkit-2022.20= Version 11.1 (Build 20C69)) of 2021-02-03 built on fgunbin.local Repository revision: 20e48b6fd6cade60e468140a66127d326abfb8ff Repository branch: master System Description: macOS 11.1