From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: Re: Problems with outline-minor-mode Date: Mon, 19 Jul 2004 10:17:02 -0600 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <40FBF3FE.8030903@yahoo.com> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1090253844 3755 80.91.224.253 (19 Jul 2004 16:17:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 19 Jul 2004 16:17:24 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 19 18:17:17 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 1BmapI-0006m1-00 for ; Mon, 19 Jul 2004 18:17:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bmarz-0008LH-Gg for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Jul 2004 12:20:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Bmarv-0008KZ-6A for bug-gnu-emacs@gnu.org; Mon, 19 Jul 2004 12:19:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Bmart-0008KN-FT for bug-gnu-emacs@gnu.org; Mon, 19 Jul 2004 12:19:58 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bmart-0008KK-AM for bug-gnu-emacs@gnu.org; Mon, 19 Jul 2004 12:19:57 -0400 Original-Received: from [132.239.1.55] (helo=mailbox3.ucsd.edu) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1BmapA-0004IT-KF for bug-gnu-emacs@gnu.org; Mon, 19 Jul 2004 12:17:08 -0400 Original-Received: from Mail.FU-Berlin.DE (mail.fu-berlin.de [130.133.1.2]) by mailbox3.ucsd.edu (8.13.0.Alpha0/8.13.0.Alpha0) with ESMTP id i6JGH3N9063209 for ; Mon, 19 Jul 2004 09:17:03 -0700 (PDT) Original-Received: by Mail.FU-Berlin.DE (Exim 4.40) from curry.zedat.fu-berlin.de ([160.45.10.36]) for gnu-emacs-bug@moderators.isc.org with esmtp id <1Bmap4-0004ix-Kj>; Mon, 19 Jul 2004 18:17:02 +0200 Original-Received: by Curry.ZEDAT.FU-Berlin.DE (Smail3.2.0.98) from news.uni-berlin.de with bsmtp id ; Mon, 19 Jul 2004 18:17:02 +0200 (MEST) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 29 X-Orig-X-Trace: news.uni-berlin.de MUdi6AUENzwcpyubNrZevAKojku7eqnP3vw1NXlZpRsiI9uuE= User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 X-Accept-Language: en-us X-Spamscanner: mailbox3.ucsd.edu (v1.4 May 20 2004 13:55:33, 2.2/5.0 2.63) X-MailScanner: PASSED (v1.2.8 56082 i6JGH3N9063209 mailbox3.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:8444 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:8444 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