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

From: Nicolas Richard <[email-masked]>
Date: Wed, 11 Jun 2014 16:14:41 +0200

Stefan Monnier <[email-masked]> writes:
> Maybe hs-hide-all should call (syntax-propertize (point-max)), then.

I forgot to follow up on this bug ; the following indeed worked for me :

--- a/lisp/progmodes/hideshow.el
+++ b/lisp/progmodes/hideshow.el
@@ -789,6 +789,7 @@ If `hs-hide-comments-when-hiding-all' is non-nil, also hide the comments."
      (unless hs-allow-nesting
        (hs-discard-overlays (point-min) (point-max)))
      (goto-char (point-min))
+     (syntax-propertize (point-max))
      (let ((spew (make-progress-reporter "Hiding all blocks..."
                                          (point-min) (point-max)))
            (re (concat "\\("

-- 
Nico.