From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: kj Newsgroups: gmane.emacs.help Subject: HideShow, syntax tables, cperl-mode... Date: Thu, 8 Mar 2007 16:02:20 +0000 (UTC) Organization: none Message-ID: NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1173372023 23045 80.91.229.12 (8 Mar 2007 16:40:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 8 Mar 2007 16:40:23 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 08 17:40:15 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HPLf4-0005as-TW for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Mar 2007 17:40:15 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HPLfI-0005iG-D6 for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Mar 2007 11:40:28 -0500 Original-Path: shelby.stanford.edu!newshub.stanford.edu!postnews.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!198.186.194.251.MISMATCH!news-out.readnews.com!transit4.readnews.com!panix!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 52 Original-NNTP-Posting-Host: panix3.panix.com Original-X-Trace: reader2.panix.com 1173369740 9680 166.84.1.3 (8 Mar 2007 16:02:20 GMT) Original-X-Complaints-To: abuse@panix.com Original-NNTP-Posting-Date: Thu, 8 Mar 2007 16:02:20 +0000 (UTC) X-No-Confirm: yes User-Agent: nn/6.7.2 Original-Xref: shelby.stanford.edu gnu.emacs.help:146195 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:41803 Archived-At: Against my better judgement, I'm trying to debug hideshow.el. Specifically, I'm trying to figure out why hs-hide-all fails on relatively simple folding tasks, such as the block in // JavaScript for ( var x in y ) { } or the one in # perl for ( @foo ) { } ...while, at the same time, hs-toggle-hiding has no problem with either. (BTW, during my tests the snippets above were the entire contents of the respective buffers, so there's no intereference by other code.) (In what follows I'll refer to the Perl case, but exactly the same is true *down to every detail* for the JavaScript one. I.e. I don't think the problem, whatever it is, is due to Perl's notoriously unruly syntax.) When I look at the value of hs-block-start-regexp, I see that it is '\s(', and when I then look at the syntax table I see the following line for '(': ( () which means: open, matches ) OK, I don't know much about Emacs/Elisp syntax tables, so the line above makes very little sense to me. More precisely, I don't understand why '(' should be the indicator of the beginning of a block in Perl. The only explanation I can come up with is that the innocent-looking "open" there stands for something more complicated than what it appears, but I can't figure out exactly what that is. Can someone explain to me what the syntax table line above means? (I did attempt the ol' RTFM thing, but I was going blind on the stuff and getting no closer to understanding.) TIA! kj -- NOTE: In my address everything before the first period is backwards; and the last period, and everything after it, should be discarded.