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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 17608 in the body.
You can then email your comments to 17608 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#17608; Package emacs. (Tue, 27 May 2014 12:14:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Nicolas Richard <theonewiththeevillook <at> yahoo.fr>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 27 May 2014 12:14:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Nicolas Richard <theonewiththeevillook <at> yahoo.fr>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3.91;
 foward-sexp via hideshow triggers scan error -- no error manually
Date: Tue, 27 May 2014 14:12:56 +0200
Hello,

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

However, leaving out "-f forward-sexp" and hitting C-M-f manually once
emacs is loaded makes no error.

My guess is that there is some jit propertization/syntax-class-ization
that has to be done before C-M-f works. Evalling (message "%S"
(buffer-substring 301038 302108)) indeed shows that syntax-table
properties are used in the region. But what should be done to fix it ?

Fwiw, I encountered the problem trying to use hideshow :
emacs -Q /usr/local/bin/latexmk -f cperl-mode -f hs-minor-mode -f hs-hide-all

-- 
Nico.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17608; Package emacs. (Tue, 27 May 2014 13:31:02 GMT) Full text and rfc822 format available.

Message #8 received at 17608 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Nicolas Richard <theonewiththeevillook <at> yahoo.fr>
Cc: 17608 <at> debbugs.gnu.org
Subject: Re: bug#17608: 24.3.91;
 foward-sexp via hideshow triggers scan error -- no error manually
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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17608; Package emacs. (Wed, 11 Jun 2014 14:14:02 GMT) Full text and rfc822 format available.

Message #11 received at 17608 <at> debbugs.gnu.org (full text, mbox):

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: Re: 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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17608; Package emacs. (Thu, 12 Jun 2014 01:15:03 GMT) Full text and rfc822 format available.

Message #14 received at 17608 <at> debbugs.gnu.org (full text, mbox):

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

Thanks, please install into `trunk'.


        Stefan




Reply sent to Nicolas Richard <theonewiththeevillook <at> yahoo.fr>:
You have taken responsibility. (Fri, 13 Jun 2014 20:01:02 GMT) Full text and rfc822 format available.

Notification sent to Nicolas Richard <theonewiththeevillook <at> yahoo.fr>:
bug acknowledged by developer. (Fri, 13 Jun 2014 20:01:02 GMT) Full text and rfc822 format available.

Message #19 received at 17608-done <at> debbugs.gnu.org (full text, mbox):

From: Nicolas Richard <theonewiththeevillook <at> yahoo.fr>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: Nicolas Richard <theonewiththeevillook <at> yahoo.fr>,
 17608-done <at> debbugs.gnu.org
Subject: Re: bug#17608: 24.3.91;
 foward-sexp via hideshow triggers scan error -- no error manually
Date: Fri, 13 Jun 2014 22:00:26 +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 :
>
> Thanks, please install into `trunk'.

In fact you had done that yourself two weeks ago. Closing the bug.

-- 
Nico.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 12 Jul 2014 11:24:04 GMT) Full text and rfc822 format available.

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

Previous Next


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