From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Hansen Newsgroups: gmane.emacs.help Subject: Re: how to let hs-minor-mode hide a block ended by "end"? Date: Sun, 24 Sep 2006 12:59:40 +0200 Organization: disorganized Message-ID: <87wt7t8r8j.fsf@robotron.kosmorama> References: <1159088942.952292.38940@d34g2000cwd.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1159096140 32526 80.91.229.2 (24 Sep 2006 11:09:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 24 Sep 2006 11:09:00 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Sep 24 13:08:57 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GRRqm-00020m-VI for geh-help-gnu-emacs@m.gmane.org; Sun, 24 Sep 2006 13:08:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GRRqm-0006cG-FA for geh-help-gnu-emacs@m.gmane.org; Sun, 24 Sep 2006 07:08:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GRRqb-0006bp-OO for help-gnu-emacs@gnu.org; Sun, 24 Sep 2006 07:08:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GRRqZ-0006bD-Vh for help-gnu-emacs@gnu.org; Sun, 24 Sep 2006 07:08:33 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GRRqZ-0006b9-SG for help-gnu-emacs@gnu.org; Sun, 24 Sep 2006 07:08:31 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GRRuk-0001ul-FF for help-gnu-emacs@gnu.org; Sun, 24 Sep 2006 07:12:50 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GRRqP-0001vs-OQ for help-gnu-emacs@gnu.org; Sun, 24 Sep 2006 13:08:21 +0200 Original-Received: from e178062150.adsl.alicedsl.de ([85.178.62.150]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 24 Sep 2006 13:08:21 +0200 Original-Received: from david.hansen by e178062150.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 24 Sep 2006 13:08:21 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-To: help-gnu-emacs@gnu.org Original-Lines: 18 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: e178062150.adsl.alicedsl.de Mail-Copies-To: nobody User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:mTTMPmqDbquBgvNnzFeScmi02Bk= 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:37585 Archived-At: On 24 Sep 2006 02:09:03 -0700 tsongchong@gmail.com wrote: > Hi, > > I'm using LUA programming language, which begins a code block with "do" > and ends it with "end" > > It seems that, by default, hs-minor-mode can only hide code blocks > surrounded by braces "{}" or like. > > how can i make it to hide code between "do" and "end"? C-h v hs-special-modes-alist RET You'll have to write a `FORWARD-SEXP-FUNC' that takes care of nested blocks. David