unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#55798: font-lock-fontify-syntactically-region uses point without initializing it.
@ 2022-06-04 19:17 Alan Mackenzie
  2022-06-05 14:23 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 7+ messages in thread
From: Alan Mackenzie @ 2022-06-04 19:17 UTC (permalink / raw)
  To: 55798

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).





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-06-06 22:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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).