GNU bug report logs - #17608
24.3.91; foward-sexp via hideshow triggers scan error -- no error manually

Previous Next

Package: emacs;

Reported by: Nicolas Richard <theonewiththeevillook <at> yahoo.fr>

Date: Tue, 27 May 2014 12:14:01 UTC

Severity: normal

Found in version 24.3.91

Done: Nicolas Richard <theonewiththeevillook <at> yahoo.fr>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Nicolas Richard <theonewiththeevillook <at> yahoo.fr>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: Nicolas Richard <theonewiththeevillook <at> yahoo.fr>, 17608 <at> debbugs.gnu.org
Subject: bug#17608: 24.3.91; foward-sexp via hideshow triggers scan error -- no error manually
Date: Wed, 11 Jun 2014 16:14:41 +0200
Stefan Monnier <monnier <at> iro.umontreal.ca> 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.




This bug report was last modified 11 years and 42 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.