From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#55798: font-lock-fontify-syntactically-region uses point without initializing it. 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 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29833"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 55798@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 05 20:47:27 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 1nxvHb-0007Yp-7C for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 05 Jun 2022 20:47:27 +0200 Original-Received: from localhost ([::1]:37006 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nxvHZ-0006cq-S4 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 05 Jun 2022 14:47:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35898) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nxvHD-0006G0-75 for bug-gnu-emacs@gnu.org; Sun, 05 Jun 2022 14:47:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39542) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nxvHC-0003yc-V8 for bug-gnu-emacs@gnu.org; Sun, 05 Jun 2022 14:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nxvHC-0001E9-Ts for bug-gnu-emacs@gnu.org; Sun, 05 Jun 2022 14:47:02 -0400 X-Loop: help-debbugs@gnu.org 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 Original-Received: via spool by 55798-submit@debbugs.gnu.org id=B55798.16544547784656 (code B ref 55798); Sun, 05 Jun 2022 18:47:02 +0000 Original-Received: (at 55798) by debbugs.gnu.org; 5 Jun 2022 18:46:18 +0000 Original-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 Original-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 Original-Received: (qmail 29516 invoked by uid 3782); 5 Jun 2022 18:46:09 -0000 Original-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 Original-Received: (qmail 8858 invoked by uid 1000); 5 Jun 2022 18:46:04 -0000 Content-Disposition: inline In-Reply-To: <87fskj2nq0.fsf@gnus.org> X-Submission-Agent: TMDA/1.3.x (Ph3nix) X-Primary-Address: acm@muc.de 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:233739 Archived-At: 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).