From unknown Tue Aug 19 05:08:24 2025 X-Loop: help-debbugs@gnu.org Subject: bug#55798: font-lock-fontify-syntactically-region uses point without initializing it. Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Jun 2022 19:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 55798 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 55798@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16543702731118 (code B ref -1); Sat, 04 Jun 2022 19:18:02 +0000 Received: (at submit) by debbugs.gnu.org; 4 Jun 2022 19:17:53 +0000 Received: from localhost ([127.0.0.1]:59660 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nxZHV-0000Hx-0p for submit@debbugs.gnu.org; Sat, 04 Jun 2022 15:17:53 -0400 Received: from lists.gnu.org ([209.51.188.17]:34220) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nxZHQ-0000HZ-WF for submit@debbugs.gnu.org; Sat, 04 Jun 2022 15:17:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53810) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nxZHQ-0000nt-LA for bug-gnu-emacs@gnu.org; Sat, 04 Jun 2022 15:17:48 -0400 Received: from colin.muc.de ([193.149.48.1]:38229 helo=mail.muc.de) by eggs.gnu.org with smtp (Exim 4.90_1) (envelope-from ) id 1nxZHO-0008Mx-Ke for bug-gnu-emacs@gnu.org; Sat, 04 Jun 2022 15:17:48 -0400 Received: (qmail 91730 invoked by uid 3782); 4 Jun 2022 19:17:43 -0000 Received: from acm.muc.de (p2e5d52ce.dip0.t-ipconnect.de [46.93.82.206]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 04 Jun 2022 21:17:43 +0200 Received: (qmail 6431 invoked by uid 1000); 4 Jun 2022 19:17:42 -0000 Date: Sat, 4 Jun 2022 19:17:42 +0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Submission-Agent: TMDA/1.3.x (Ph3nix) From: Alan Mackenzie X-Primary-Address: acm@muc.de Received-SPF: pass client-ip=193.149.48.1; envelope-from=acm@muc.de; helo=mail.muc.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.7 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.7 (--) Hello, Emacs. Emacs master branch: * emacs/lisp/font-lock.el (font-lock-fontify-syntactically-region): At line 26 of this function, appears: (setq state (parse-partial-sexp (point) end nil nil state 'syntax-table)) .. However, there is no goto-char or other way of setting point earlier in the function (except in one arm of an `if' form). Neither is point defined to have a defined setting at the entry to the function. This is a bug. -- Alan Mackenzie (Nuremberg, Germany). From unknown Tue Aug 19 05:08:24 2025 X-Loop: help-debbugs@gnu.org Subject: bug#55798: font-lock-fontify-syntactically-region uses point without initializing it. Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 05 Jun 2022 14:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55798 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Alan Mackenzie Cc: 55798@debbugs.gnu.org Received: via spool by 55798-submit@debbugs.gnu.org id=B55798.16544390289376 (code B ref 55798); Sun, 05 Jun 2022 14:24:02 +0000 Received: (at 55798) by debbugs.gnu.org; 5 Jun 2022 14:23:48 +0000 Received: from localhost ([127.0.0.1]:33198 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nxrAS-0002R9-ES for submit@debbugs.gnu.org; Sun, 05 Jun 2022 10:23:48 -0400 Received: from quimby.gnus.org ([95.216.78.240]:57372) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nxrAQ-0002Qr-CC for 55798@debbugs.gnu.org; Sun, 05 Jun 2022 10:23:47 -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:In-Reply-To:Date: References: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=NAECsdBO2yqE3caIO3LJAiwSsS1DmlRUE46oDJVagoM=; b=RjRit+SYYucwSpLRxLR2I2PEKN Mr4BGE/TMXAVXQjd2Uk/4c9Nw2b9oLC0dKxH+rlmLrNPc+SUuxCcH2jWJQQO3T0b+/86xxFG9Kx6u JkWsmuE5jfbkyHEoWhix/fmIHktrC6TrfZ/zLkXETRDHu1RbsB4XLonq1+NMtFBajipA=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nxrAG-0001yk-Ta; Sun, 05 Jun 2022 16:23:39 +0200 From: Lars Ingebrigtsen References: X-Now-Playing: 1CD (2022) - 15 Less's _Illusion_: "(Illusion Suite #2)" Date: Sun, 05 Jun 2022 16:23:35 +0200 In-Reply-To: (Alan Mackenzie's message of "Sat, 4 Jun 2022 19:17:42 +0000") Message-ID: <87fskj2nq0.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Alan Mackenzie writes: > * emacs/lisp/font-lock.el (font-lock-fontify-syntactically-region): At > line 26 of this function, appears: > > (setq state (parse-partial-sexp (point) end nil nil state > 'syntax-table)) > > .. How [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Alan Mackenzie writes: > * emacs/lisp/font-lock.el (font-lock-fontify-syntactically-region): At > line 26 of this function, appears: > > (setq state (parse-partial-sexp (point) end nil nil state > 'syntax-table)) > > .. However, there is no goto-char or other way of setting point earlier > in the function (except in one arm of an `if' form). Neither is point > defined to have a defined setting at the entry to the function. (syntax-ppss start) (called earlier) will skip to start, won't it? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Tue Aug 19 05:08:24 2025 X-Loop: help-debbugs@gnu.org Subject: bug#55798: font-lock-fontify-syntactically-region uses point without initializing it. Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 05 Jun 2022 18:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55798 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Lars Ingebrigtsen Cc: 55798@debbugs.gnu.org Received: via spool by 55798-submit@debbugs.gnu.org id=B55798.16544547784656 (code B ref 55798); Sun, 05 Jun 2022 18:47:02 +0000 Received: (at 55798) by debbugs.gnu.org; 5 Jun 2022 18:46:18 +0000 Received: from localhost ([127.0.0.1]:33438 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nxvGU-0001D2-9K for submit@debbugs.gnu.org; Sun, 05 Jun 2022 14:46:18 -0400 Received: from colin.muc.de ([193.149.48.1]:19728 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1nxvGS-0001Co-7l for 55798@debbugs.gnu.org; Sun, 05 Jun 2022 14:46:17 -0400 Received: (qmail 29516 invoked by uid 3782); 5 Jun 2022 18:46:09 -0000 Received: from acm.muc.de (p2e5d54d1.dip0.t-ipconnect.de [46.93.84.209]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Sun, 05 Jun 2022 20:46:08 +0200 Received: (qmail 8858 invoked by uid 1000); 5 Jun 2022 18:46:04 -0000 Date: Sun, 5 Jun 2022 18:46:04 +0000 Message-ID: References: <87fskj2nq0.fsf@gnus.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87fskj2nq0.fsf@gnus.org> X-Submission-Agent: TMDA/1.3.x (Ph3nix) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello, Lars. On Sun, Jun 05, 2022 at 16:23:35 +0200, Lars Ingebrigtsen wrote: > Alan Mackenzie writes: > > * emacs/lisp/font-lock.el (font-lock-fontify-syntactically-region): At > > line 26 of this function, appears: > > (setq state (parse-partial-sexp (point) end nil nil state > > 'syntax-table)) > > .. However, there is no goto-char or other way of setting point earlier > > in the function (except in one arm of an `if' form). Neither is point > > defined to have a defined setting at the entry to the function. > (syntax-ppss start) (called earlier) will skip to start, won't it? Er, yes, it will. Somehow I didn't know that syntax-ppss did that. Sorry for the false bug report. I'll close it as notabug (assuming you haven't done this already.) > -- > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no -- Alan Mackenzie (Nuremberg, Germany). From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 05 14:51:32 2022 Received: (at control) by debbugs.gnu.org; 5 Jun 2022 18:51:32 +0000 Received: from localhost ([127.0.0.1]:33456 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nxvLY-0001OP-KX for submit@debbugs.gnu.org; Sun, 05 Jun 2022 14:51:32 -0400 Received: from colin.muc.de ([193.149.48.1]:19865 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1nxvLX-0001O8-7O for control@debbugs.gnu.org; Sun, 05 Jun 2022 14:51:31 -0400 Received: (qmail 33640 invoked by uid 3782); 5 Jun 2022 18:51:25 -0000 Received: from acm.muc.de (p2e5d54d1.dip0.t-ipconnect.de [46.93.84.209]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Sun, 05 Jun 2022 20:51:24 +0200 Received: (qmail 9155 invoked by uid 1000); 5 Jun 2022 18:51:20 -0000 Date: Sun, 5 Jun 2022 18:51:20 +0000 To: control@debbugs.gnu.org Subject: Bug #55798 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Submission-Agent: TMDA/1.3.x (Ph3nix) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 55798 notabug close 55798 quit -- Alan Mackenzie (Nuremberg, Germany). From unknown Tue Aug 19 05:08:24 2025 X-Loop: help-debbugs@gnu.org Subject: bug#55798: font-lock-fontify-syntactically-region uses point without initializing it. Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 05 Jun 2022 19:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55798 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug To: Alan Mackenzie Cc: 55798@debbugs.gnu.org, Stefan Monnier Received: via spool by 55798-submit@debbugs.gnu.org id=B55798.165445606415305 (code B ref 55798); Sun, 05 Jun 2022 19:08:02 +0000 Received: (at 55798) by debbugs.gnu.org; 5 Jun 2022 19:07:44 +0000 Received: from localhost ([127.0.0.1]:33484 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nxvbE-0003yn-3y for submit@debbugs.gnu.org; Sun, 05 Jun 2022 15:07:44 -0400 Received: from quimby.gnus.org ([95.216.78.240]:59780) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nxvbB-0003yZ-Hb for 55798@debbugs.gnu.org; Sun, 05 Jun 2022 15:07:43 -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:In-Reply-To:Date: References: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=Z8xMPVRmg5t8BxTY6OGTAUO/yEYUWBvw1eTBZz6vYMw=; b=X8X0tU9KzW5Ish0s0CbV5zOAJ0 qWkowkLFbC7rFNcmqUC1kaPGz1n/ta6bwnW0qLnIax6QImXbUyMHNsuvPSGTyeqawg6Uj0Gmgu76H h65Zyobe8IFiLgsrQO9lInyofZiKGhDGUWxUCcrmyCCvBYwEo0bvQFwYCdF745nTMTr8=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nxvb1-0005GW-Eu; Sun, 05 Jun 2022 21:07:33 +0200 From: Lars Ingebrigtsen References: <87fskj2nq0.fsf@gnus.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAKlBMVEVmV2psX3BSRFZE N0t0cIinm6bFucDXzdL9/f2FeIivhGg9M0YbFRj///8oQUReAAAAAWJLR0QN9rRh9QAAAAd0SU1F B+YGBRMEIPU1r0gAAAGkSURBVDjLbZOxUsJAEIYvZijoIANFOhA7G+TKNOpgDzMGsHckPADKC5hc CQXM0CmP4JX3CL6Uu3e5vTthi8yQL7v/7r8LY20dyXUYnLFIgxa9GnAdjLF2Cx4RfcoJMA0G3Psc wT0zEfMw2AOBfv6WJ+fgqrERQpTbM5AWAmNtc9g4PXbGu/FxJkxMbbvf++d0l+azTQ1sCvtirajN or0FVgUARmQrUa0adJcE1nGtocG+IPCZZA44CSGqiQGnHpIn4YARYacfsG50uADwOQyBQvCLwM8Q AfA0xKsPukEG98DmrJTUoOGBFY6umLHsxk0OniiZXQLoibKgv/DAY6YIDOcOlNtMUSm/rWrrlfJr gb2ZK3UIfCeNplug1pAG6PE+KKW0XY2ahXif9A7eHDXoLl9iry+YnNt20bCmBWgizYGgoIvLAmAn WccyzOjP69vNJGRwA0bwHzMAW9Irsl71OnlhrOWYwc80KpAGDSXNavWuFrZZeAXgf7u4WBicE7CT wzaUAZgIfdMOV7EBysQd7bZM8Lc0QHp3VU1vHQiOGm4XSv0BSHWVK7bkJDAAAAAldEVYdGRhdGU6 Y3JlYXRlADIwMjItMDYtMDVUMTk6MDQ6MzIrMDA6MDDPKCRZAAAAJXRFWHRkYXRlOm1vZGlmeQAy MDIyLTA2LTA1VDE5OjA0OjMyKzAwOjAwvnWc5QAAAABJRU5ErkJggg== X-Now-Playing: 50 Foot Wave's _Power + Light_: "Medicine Rush" Date: Sun, 05 Jun 2022 21:07:30 +0200 In-Reply-To: (Alan Mackenzie's message of "Sun, 5 Jun 2022 18:46:04 +0000") Message-ID: <87bkv7yln1.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Alan Mackenzie writes: > Er, yes, it will. Somehow I didn't know that syntax-ppss did that. The doc string doesn't mention point movements at all, and perhaps it should? Hm... reading the code now, and I'm not quite sure whether it's guaranteed to do so or not, really, so perhaps there is a [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Alan Mackenzie writes: > Er, yes, it will. Somehow I didn't know that syntax-ppss did that. The doc string doesn't mention point movements at all, and perhaps it should? Hm... reading the code now, and I'm not quite sure whether it's guaranteed to do so or not, really, so perhaps there is a bug here in some cases. I've added Stefan to the CCs; perhaps he has a comment here. > Sorry for the false bug report. I'll close it as notabug (assuming you > haven't done this already.) No, haven't done so. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Tue Aug 19 05:08:24 2025 X-Loop: help-debbugs@gnu.org Subject: bug#55798: font-lock-fontify-syntactically-region uses point without initializing it. Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 05 Jun 2022 20:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55798 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug To: Lars Ingebrigtsen Cc: Alan Mackenzie , 55798@debbugs.gnu.org Received: via spool by 55798-submit@debbugs.gnu.org id=B55798.16544610767752 (code B ref 55798); Sun, 05 Jun 2022 20:32:01 +0000 Received: (at 55798) by debbugs.gnu.org; 5 Jun 2022 20:31:16 +0000 Received: from localhost ([127.0.0.1]:33601 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nxwu4-00020y-73 for submit@debbugs.gnu.org; Sun, 05 Jun 2022 16:31:16 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:7430) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nxwu2-00020l-P2 for 55798@debbugs.gnu.org; Sun, 05 Jun 2022 16:31:15 -0400 Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 37747807CB; Sun, 5 Jun 2022 16:31:09 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id DB06D80677; Sun, 5 Jun 2022 16:31:07 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1654461067; bh=Hi0kwbZJwiHboWmzCWTjd3woDxNHAbSI521G0+uKmBs=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=n6oIXAjnpk5MVceDApGYcAfd1ap368RXAIZZm46lGmuiOkPCzQ7oMfqNhf62M+uCN 6Rs9gI1K/TnuANjatSLiZI8NCQmNvaHY71eN2+HaksnyQsIEGCPkmd8ngbwE6tEQIj 0zW2wkAQRZvC9c/mCWvjzmTVGmhtVhFrHdILQqB+rIDglh3MHkH0aapv/Ksr9yyl7h 2FLSnWg8GdbY+InfWQiUKgOj+TVSCmxWgKGHw7rOXNdp7voZ2/KOdiEOrKYhbpWU0a XbSeoPNyC+pYQNhAe2PC4Ny7v2N8Q8o4yFLUkzUhwzAZ69EZteqmIt4/zzELVu7gF+ DPvyuiCJixFNg== Received: from pastel (unknown [45.72.221.51]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 9C3351201E0; Sun, 5 Jun 2022 16:31:07 -0400 (EDT) From: Stefan Monnier Message-ID: References: <87fskj2nq0.fsf@gnus.org> <87bkv7yln1.fsf@gnus.org> Date: Sun, 05 Jun 2022 16:31:06 -0400 In-Reply-To: <87bkv7yln1.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 05 Jun 2022 21:07:30 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.057 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain T_SCC_BODY_TEXT_LINE -0.01 - X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Lars Ingebrigtsen [2022-06-05 21:07:30] wrote: > Alan Mackenzie writes: >> Er, yes, it will. Somehow I didn't know that syntax-ppss did that. > The doc string doesn't mention point movements at all, and perhaps it > should? Doesn't it say: Point is at POS when this function returns. ? Stefan From unknown Tue Aug 19 05:08:24 2025 X-Loop: help-debbugs@gnu.org Subject: bug#55798: font-lock-fontify-syntactically-region uses point without initializing it. Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 05 Jun 2022 20:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55798 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug To: Stefan Monnier Cc: Alan Mackenzie , 55798@debbugs.gnu.org Received: via spool by 55798-submit@debbugs.gnu.org id=B55798.16544613068108 (code B ref 55798); Sun, 05 Jun 2022 20:36:01 +0000 Received: (at 55798) by debbugs.gnu.org; 5 Jun 2022 20:35:06 +0000 Received: from localhost ([127.0.0.1]:33609 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nxwxm-00026h-21 for submit@debbugs.gnu.org; Sun, 05 Jun 2022 16:35:06 -0400 Received: from quimby.gnus.org ([95.216.78.240]:60384) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nxwxk-000268-Ll for 55798@debbugs.gnu.org; Sun, 05 Jun 2022 16:35:05 -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:In-Reply-To:Date: References: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=5uHqI4uKVb3bEASZXQcQV4Z8NFnX0yQ2gbXdvR+W4Uc=; b=cPBZHZRSK4h3vzPEYDjaB7cHbd ZWD9w3s9T9x39grf3AG8+iBGvAcUEC56YZrBwdjjX2y9spjx5SZgFyOwspwgcj4UjFaM2G4rqev1/ itK+Du1f6MO01Z+zBGa8ABl4MNL0Dt63TuD7pM87GnscH9Y0PUz61pkFYpVxmjaIhkI4=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nxwxb-0006JT-7c; Sun, 05 Jun 2022 22:34:57 +0200 From: Lars Ingebrigtsen References: <87fskj2nq0.fsf@gnus.org> <87bkv7yln1.fsf@gnus.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEUmIyBCPjvb2NWC fnxaVlP///8D7NzBAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+YGBRQfBGVPloYAAAFbSURBVDjLxZJh bsMwCIVBywHMxgmcHGCNfYBSc/8zDezUsdto2r9RVVX5DLxnAxhzbJFV1EOgBj5iB3QNkhIF6IEl 9hIhog50j2NJA8t9mYCXWLPl2z5AvdWabXIFd5YExKcq5bU2Kxl0ULXxTjZFAmQXxynWKatmQFcZ 6o+pKmmPJcUtnEobUH2sJHo7U82lTSs5IN/G0whkPenLhpGcWcKjK6uD45owcB/mALwCUcMyXKSp NxGWV9ZJGnFzi+S+wwQomD+XGF4qiOr1eQmegFmFWKjmazwtstm3b7DjXivHs1cgyAp2shY8RxgQ A/IEw3B/OlUwhqO/CiSpXwaeirGuWdE63J2EXqBtAQ8wjHBiPuq6jdbtv7Dt87SHHTmcL8rTbf11 zpOWtmwCr31Y057f0q0m5Yv8aPa3wKuMXB793OgC2NPtG73nP2J79Cls02DJfgF/kPbf8QN9MkfQ q5Pp+wAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMi0wNi0wNVQyMDozMTowNCswMDowMKZIlPYAAAAl dEVYdGRhdGU6bW9kaWZ5ADIwMjItMDYtMDVUMjA6MzE6MDQrMDA6MDDXFSxKAAAAAElFTkSuQmCC X-Now-Playing: Nils Petter =?UTF-8?Q?Molv=C3=A6r's?= _Solid Ether_: "Ligotage" Date: Sun, 05 Jun 2022 22:34:54 +0200 In-Reply-To: (Stefan Monnier's message of "Sun, 05 Jun 2022 16:31:06 -0400") Message-ID: <87fski26j5.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Stefan Monnier writes: > Doesn't it say: > > Point is at POS when this function returns. > > ? Oh, I interpreted that as meaning... er... not a lot. I think I'll tweak the doc string. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Stefan Monnier writes: > Doesn't it say: > > Point is at POS when this function returns. > > ? Oh, I interpreted that as meaning... er... not a lot. I think I'll tweak the doc string. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Tue Aug 19 05:08:24 2025 X-Loop: help-debbugs@gnu.org Subject: bug#55798: font-lock-fontify-syntactically-region uses point without initializing it. Resent-From: Richard Stallman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 Jun 2022 22:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55798 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug To: Stefan Monnier Cc: acm@muc.de, larsi@gnus.org, 55798@debbugs.gnu.org Reply-To: rms@gnu.org Received: via spool by 55798-submit@debbugs.gnu.org id=B55798.165455370231937 (code B ref 55798); Mon, 06 Jun 2022 22:16:01 +0000 Received: (at 55798) by debbugs.gnu.org; 6 Jun 2022 22:15:02 +0000 Received: from localhost ([127.0.0.1]:37040 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nyL00-0008IT-Mw for submit@debbugs.gnu.org; Mon, 06 Jun 2022 18:15:02 -0400 Received: from eggs.gnu.org ([209.51.188.92]:41052) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nyKzv-0008Hl-BC for 55798@debbugs.gnu.org; Mon, 06 Jun 2022 18:14:58 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:48420) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nyKzp-0003k6-Es; Mon, 06 Jun 2022 18:14:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=L5sQRFIc6goG/ZZhL1AvWCREAyHIAFuWQp1T1m6LpMM=; b=P6+a7wXAhOaI fkOK54ikUT2iilFPbQ3Hr4XQCtQZSgMll79VAwC9Zbzp5m4nWYl+ZaohV8eDclTBNtBKyc5ahqgSf Nmlia39878drxIQPDUez95KP1PGrfP0XGCTB0eVMbsl03fzN9IMFo6mwIat6gNn3OwJUTdhqVSqH6 Th2jHj/bU6QJxNBNFRsbw9SOQKACE3UmC5fHZr+guSY/++qVrkHZ8uToICHmyImGIs9f3KVojA/np LUOua1NbkLJfnZoDXLpPiLYTKlc0T6dEH6rQOt6E5+q/EnR+Sxcltu8TIg36ERBtVU6CztF8apvrn fXLf47kHIXSWl9Xq/Et6XA==; Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1nyKzo-0000M8-Vb; Mon, 06 Jun 2022 18:14:48 -0400 Content-Type: text/plain; charset=Utf-8 From: Richard Stallman In-Reply-To: (bug-gnu-emacs@gnu.org) References: <87fskj2nq0.fsf@gnus.org> <87bkv7yln1.fsf@gnus.org> Message-Id: Date: Mon, 06 Jun 2022 18:14:48 -0400 X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > Point is at POS when this function returns. That way of saying it could be confusing because it doesn't describe an action. It sounds like a coincidence. Would this be clearer? This function finishes by moving point to POS. -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)