From: Lars Ingebrigtsen <larsi@gnus.org>
To: Alan Mackenzie <acm@muc.de>
Cc: 55798@debbugs.gnu.org
Subject: bug#55798: font-lock-fontify-syntactically-region uses point without initializing it.
Date: Sun, 05 Jun 2022 16:23:35 +0200 [thread overview]
Message-ID: <87fskj2nq0.fsf@gnus.org> (raw)
In-Reply-To: <Ypuv1oRGCf1nf+hy@ACM> (Alan Mackenzie's message of "Sat, 4 Jun 2022 19:17:42 +0000")
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?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2022-06-05 14:23 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 [this message]
2022-06-05 18:46 ` Alan Mackenzie
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fskj2nq0.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=55798@debbugs.gnu.org \
--cc=acm@muc.de \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.