Subject: bug#17608: 24.3.91; foward-sexp via hideshow triggers scan error -- no error manually

From: Stefan Monnier <[email-masked]>
Date: Tue, 27 May 2014 09:29:58 -0400

> emacs -Q /usr/local/bin/latexmk -f cperl-mode --eval '(goto-char 301038)' -f forward-sexp
> makes a scan error (unbalanced parenthese)

You probably want to call (syntax-propertize (point-max)) before calling
forward-sexp.

> emacs -Q /usr/local/bin/latexmk -f cperl-mode -f hs-minor-mode -f hs-hide-all

Maybe hs-hide-all should call (syntax-propertize (point-max)), then.

        Stefan