From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Laurence Finston Newsgroups: gmane.emacs.bugs Subject: Re: Problems with outline-minor-mode Date: Mon, 19 Jul 2004 18:30:46 +0200 (MEST) Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <40FBF3FE.8030903@yahoo.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: sea.gmane.org 1090254722 6199 80.91.224.253 (19 Jul 2004 16:32:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 19 Jul 2004 16:32:02 +0000 (UTC) Cc: gnu-emacs-bug@moderators.isc.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 19 18:31:49 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Bmb3N-0007wH-00 for ; Mon, 19 Jul 2004 18:31:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bmb63-0002Sw-Vv for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Jul 2004 12:34:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Bmb5z-0002Nz-VP for bug-gnu-emacs@gnu.org; Mon, 19 Jul 2004 12:34:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Bmb5w-0002Ly-F1 for bug-gnu-emacs@gnu.org; Mon, 19 Jul 2004 12:34:30 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bmb5w-0002LJ-7Q for bug-gnu-emacs@gnu.org; Mon, 19 Jul 2004 12:34:28 -0400 Original-Received: from [132.239.1.54] (helo=mailbox2.ucsd.edu) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1Bmb2u-0006Tv-6d for bug-gnu-emacs@gnu.org; Mon, 19 Jul 2004 12:31:20 -0400 Original-Received: from mailer.gwdg.de (mailer.gwdg.de [134.76.10.26]) by mailbox2.ucsd.edu (8.13.0.Alpha0/8.13.0.Alpha0) with ESMTP id i6JGV5nF091838 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Mon, 19 Jul 2004 09:31:07 -0700 (PDT) Original-Received: from gwdu71.gwdg.de ([134.76.8.21]) by mailer.gwdg.de with esmtp (Exim 4.34) id 1Bmb2V-0005GX-0u; Mon, 19 Jul 2004 18:31:05 +0200 Original-Received: from localhost by gwdu71.gwdg.de (8.11.1/1.1.29.3/16Jun03-0924AM) id i6JGUss0000055560; Mon, 19 Jul 2004 18:30:54 +0200 (MEST) X-Authentication-Warning: gwdu71.gwdg.de: lfinsto1 owned process doing -bs Original-Newsgroups: gnu.emacs.bug Original-To: Kevin Rodgers In-Reply-To: <40FBF3FE.8030903@yahoo.com> X-Virus-Scanned: (clean) by exiscan+sophie X-Spamscanner: mailbox2.ucsd.edu (v1.4 May 20 2004 13:55:33, 0.0/5.0 2.63) X-MailScanner: PASSED (v1.2.8 88751 i6JGV5nF091838 mailbox2.ucsd.edu) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:8445 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:8445 Thanks. I'll give it a try. Laurence On Mon, 19 Jul 2004, Kevin Rodgers wrote: > Laurence Finston wrote: > > I'd like `/*\s-' to be recognized as a prefix, followed by a variable > > number of dollar signs indicating the level of the heading. However, > > the whitespace characters are always counted in determining the > > heading level, so that `/* $$ */' and `/* $ */' are equivalent. > > You could define your own outline-level function: > > (defun lfinsto1-outline-level () > "Return the number of `$' characters matched at point by `outline-regexp'." > (save-excursion > (looking-at outline-regexp) > (car (read-from-string (count-matches "\\$" > (match-beginning 0) (match-end 0)))))) > > (set (make-local-variable 'outline-level) > 'lfinsto1-outline-level) > > > I've also tried to get the regular expression \s-*\*/ to be recognized > > as the `outline-heading-end-regexp', but it hasn't worked, so that > > `/* $' followed by whitespace and `\n' is a valid heading. > > (I haven't tried this with GNU Emacs 21.2.1) > > I would just leave outline-heading-end-regexp to its default value "\n", > or maybe prepend " *\*/" to it. > > -- > Kevin Rodgers > > > > _______________________________________________ > Bug-gnu-emacs mailing list > Bug-gnu-emacs@gnu.org > http://lists.gnu.org/mailman/listinfo/bug-gnu-emacs >