🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.help
Article #189019

Re: Folding Editor Implementation anyone?

#189019
From: Per Abrahamsen
Date: Sun, 05 May 1991 23:48
26 lines
1280 bytes
This might be considered cheat, but here is the end of one of my C
files. 

---------------------
/* @@ usage */

static void usage()
{
    (void) fprintf(stderr,
		   "Usage: %s [ -t timeout | -b | -s | - | + | name ] ...\n",
		   program);
    exit(2);
}

/* @@ emacs customization */

/* Local Variables: */
/* mode: c */
/* outline-regexp: "/\\* @+ " */
/* eval: (outline-minor-mode 1) */
/* End: */

----------------------

Using a comment convention is much more flexible than any reg-exp.
Technical Details
Message-ID: <ABRAHAM.91May6004855@galilei.iesd.auc.dk>
Path: arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!samsung!think.com!rpi!uupsi!sunic!dkuug!iesd!iesd.auc.dk!abraham
References: <1991May3.012525.30674@m.cs.uiuc.edu> <9105031742.AA10122@sendai.cygnus.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 103b8b,e6c02e2e33ae4173
X-Google-Attributes: gid103b8b,public
X-Google-ArrivalTime: 1991-05-06 00:12:34 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!samsung!think.com!rpi!uupsi!sunic!dkuug!iesd!iesd.auc.dk!abraham
From: abraham@iesd.auc.dk (Per Abrahamsen)
Newsgroups: gnu.emacs.help
Subject: Re: Folding Editor Implementation anyone?
Message-ID: <ABRAHAM.91May6004855@galilei.iesd.auc.dk>
Date: 5 May 91 23:48:55 GMT
References: <1991May3.012525.30674@m.cs.uiuc.edu>
 <9105031742.AA10122@sendai.cygnus.com>
Sender: news@iesd.auc.dk
Followup-To: gnu.emacs.help
Organization: HUGIN Expert A/S
Lines: 26
In-reply-to: rich@CYGNUS.COM's message of 3 May 91 17:42:38 GMT