From: Alan Mackenzie <acm@muc.de>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 55798@debbugs.gnu.org
Subject: bug#55798: font-lock-fontify-syntactically-region uses point without initializing it.
Date: Sun, 5 Jun 2022 18:46:04 +0000 [thread overview]
Message-ID: <Ypz57DuxlztdzF5W@ACM> (raw)
In-Reply-To: <87fskj2nq0.fsf@gnus.org>
Hello, Lars.
On Sun, Jun 05, 2022 at 16:23:35 +0200, Lars Ingebrigtsen wrote:
> Alan Mackenzie <acm@muc.de> 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).
next prev parent reply other threads:[~2022-06-05 18:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-04 19:17 bug#55798: font-lock-fontify-syntactically-region uses point without initializing it Alan Mackenzie
2022-06-05 14:23 ` Lars Ingebrigtsen
2022-06-05 18:46 ` Alan Mackenzie [this message]
2022-06-05 19:07 ` Lars Ingebrigtsen
2022-06-05 20:31 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-05 20:34 ` Lars Ingebrigtsen
2022-06-06 22:14 ` Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Ypz57DuxlztdzF5W@ACM \
--to=acm@muc.de \
--cc=55798@debbugs.gnu.org \
--cc=larsi@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).