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: Problems with outline-minor-mode Date: Sun, 18 Jul 2004 15:15:35 +0200 (MEST) Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: sea.gmane.org 1090156565 10197 80.91.224.253 (18 Jul 2004 13:16:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 18 Jul 2004 13:16:05 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 18 15:15:57 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 1BmBWG-0005qh-00 for ; Sun, 18 Jul 2004 15:15:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BmBYt-0007Lg-IC for geb-bug-gnu-emacs@m.gmane.org; Sun, 18 Jul 2004 09:18:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BmBYr-0007Lb-Oi for bug-gnu-emacs@gnu.org; Sun, 18 Jul 2004 09:18:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BmBYq-0007LP-8d for bug-gnu-emacs@gnu.org; Sun, 18 Jul 2004 09:18:37 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BmBYq-0007LM-5c for bug-gnu-emacs@gnu.org; Sun, 18 Jul 2004 09:18:36 -0400 Original-Received: from [134.76.10.26] (helo=mailer.gwdg.de) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1BmBVy-0006cM-M7 for bug-gnu-emacs@gnu.org; Sun, 18 Jul 2004 09:15:39 -0400 Original-Received: from gwdu70.gwdg.de ([134.76.8.20]) by mailer.gwdg.de with esmtp (Exim 4.34) id 1BmBVw-0002f2-Ay for bug-gnu-emacs@gnu.org; Sun, 18 Jul 2004 15:15:37 +0200 Original-Received: from localhost by gwdu70.gwdg.de (8.11.1/1.1.29.3/08Jul03-0334PM) id i6IDFa00000024403; Sun, 18 Jul 2004 15:15:36 +0200 (MEST) X-Authentication-Warning: gwdu70.gwdg.de: lfinsto1 owned process doing -bs Original-To: bug-gnu-emacs@gnu.org X-Virus-Scanned: (clean) by exiscan+sophie 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:8432 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:8432 Hello, The headings below are interpreted correctly in plain-tex-mode + outline-minor-mode but incorrectly in c-mode + outline-minor-mode and c++-mode + outline-minor-mode. Does anyone have an explanation for this? I've tried this using: GNU Emacs 21.3.1 (i386-pc-linux-gnu, X toolkit) of 2003-10-31 on raven, modified by Debian. and GNU Emacs 21.2.1 (i586-suse-linux, X toolkit, Xaw3d scroll bars) of 2002-10-16 on D186 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. 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've written a mode for use with CWEB, but I've had to derive it from c-mode rather than c++-mode for this reason. Strangely enough, the headings work in my cweb-mode using GNU Emacs 21.2.1. Are the Emacs developers working on a CWEB-mode? In Don Knuth's _Digital Typesetting_ there's a photo caption that says so. I'd like to release the mode I've written as part of GNU 3DLDF, but if there's going to be an official CWEB mode this probably wouldn't be a good idea, or I'd have to change its name. Thanks for your help. Laurence Finston GNU 3DLDF maintainer http://www.gnu.org/software/3dldf/LDF.html **************************************************************** (progn (plain-tex-mode) (outline-minor-mode t) (setq outline-regexp "/[ *$]+") ) (progn (c-mode) (outline-minor-mode t) (setq outline-regexp "/[ *$]+") ) (progn (plain-tex-mode) (outline-minor-mode t) (setq outline-regexp "/[ *$]+") ) ;; Headings. /* $ */ /* $$ */ /* $$ */ /* $$$ */ /* $$ */ /* $ */ /* $$ */ /* $$$ */ /* $$$ */ /* $$$$ */ /* $$$ */