Skip to content

Emacs 25+, scan-sexp with standard syntax table causes infloop in syntax propertize #1315

Closed
@npostavs

Description

@npostavs

This is a minimal example reduced from joaotavora/yasnippet#687.

In a git checkout of lates master (5d58314) emacs -Q -L . -l haskell-autoloads -l synprop-bug.el causes an infinite loop. After hitting C-g, *Messages* contains Error during redisplay: (internal--syntax-propertize 6) signaled (quit). synprop-bug.el contains:

(switch-to-buffer "hh")
(haskell-mode)
(erase-buffer)
(insert "{-# foo #-}")
(with-syntax-table (standard-syntax-table)
  (scan-sexps 5 1))

This doesn't happen in Emacs 24.5, so it may be a bug in Emacs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions