unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* why can't hiding or showing the block in c++ mode
@ 2006-04-07  0:52 zhihang wang
  0 siblings, 0 replies; 2+ messages in thread
From: zhihang wang @ 2006-04-07  0:52 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 554 bytes --]

when I start hs-minor-mode and use S-mouse-2 to folding the program, an
error occur.
wrong-type-argument stringp nil
the debug information is
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  looking-at(nil)
  hs-inside-comment-p()
  hs-already-hidden-p()
  hs-toggle-hiding()
  hs-mouse-toggle-hiding((S-mouse-2 (#<window 9 on clsAvsSequence.cpp> 171
(10 . 85) 48293437)))
* call-interactively(hs-mouse-toggle-hiding)

But I can't understand the debugger message.
Would anyone help me?


--
Best Regards
zhihang wang

[-- Attachment #1.2: Type: text/html, Size: 817 bytes --]

[-- Attachment #2: Type: text/plain, Size: 152 bytes --]

_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: why can't hiding or showing the block in c++ mode
       [not found] <mailman.148.1144371186.9609.help-gnu-emacs@gnu.org>
@ 2006-04-07 13:45 ` Thien-Thi Nguyen
  0 siblings, 0 replies; 2+ messages in thread
From: Thien-Thi Nguyen @ 2006-04-07 13:45 UTC (permalink / raw)


"zhihang wang" <zhihang.wang@gmail.com> writes:

> when I start hs-minor-mode and use S-mouse-2 to folding the program, an
> error occur.

> wrong-type-argument stringp nil
> the debug information is
> Debugger entered--Lisp error: (wrong-type-argument stringp nil)
>   looking-at(nil)
>   hs-inside-comment-p()
>   hs-already-hidden-p()
>   hs-toggle-hiding()
>   hs-mouse-toggle-hiding((S-mouse-2 (#<window 9 on clsAvsSequence.cpp> 
>     171 (10 . 85) 48293437)))
> * call-interactively(hs-mouse-toggle-hiding)
>  
> But I can't understand the debugger message.
> Would anyone help me?

hideshow sets and uses some buffer-local variables, that are specific to
the major mode of the buffer.  it looks like one of those variables
`hs-c-start-regexp' is not initialized properly.  it should be a string.

i am not able to debug this w/o more information.

please post a recipe for recreating this, starting with the command
"emacs -q --no-site-file".  please also include the version numbers of
the emacs and hideshow.el involved.

you may want to look at the hideshow.el Commentary, in case something
there can be helpful.

thi

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-04-07 13:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-07  0:52 why can't hiding or showing the block in c++ mode zhihang wang
     [not found] <mailman.148.1144371186.9609.help-gnu-emacs@gnu.org>
2006-04-07 13:45 ` Thien-Thi Nguyen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).