bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#55798: font-lock-fontify-syntactically-region uses point without ini


From: Alan Mackenzie
Subject: bug#55798: font-lock-fontify-syntactically-region uses point without initializing it.
Date: Sat, 4 Jun 2022 19:17:42 +0000

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]