unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: 55798@debbugs.gnu.org
Subject: bug#55798: font-lock-fontify-syntactically-region uses point without initializing it.
Date: Sat, 4 Jun 2022 19:17:42 +0000	[thread overview]
Message-ID: <Ypuv1oRGCf1nf+hy@ACM> (raw)

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	other threads:[~2022-06-04 19:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-04 19:17 Alan Mackenzie [this message]
2022-06-05 14:23 ` bug#55798: font-lock-fontify-syntactically-region uses point without initializing it 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

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=Ypuv1oRGCf1nf+hy@ACM \
    --to=acm@muc.de \
    --cc=55798@debbugs.gnu.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).