🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #88040

Re: cc-mode should be able to "learn" the style of a file

#88040
From: Barry A. Warsaw
Date: Tue, 16 Aug 1994 20:23
17 lines
1491 bytes
>>>>> "JIK" == Jonathan I Kamens <jik@cam.ov.com> writes:

    JIK> What I'd like is for there to be some function that I can
    JIK> run, either in a hook or by hand, when I load a C file into
    JIK> Emacs, to get Emacs to automatically realize what formatting
    JIK> parameters it should use when editing the file.

I have some very, very preliminary attempts at this.  You're right,
its difficult or impossible to get exactly right, but you can come
close (since indentation is info-lossy).

Its not really usable right now, and its not something I personally
plan to spending much time on, but if anybody wants to inherit the
code, let me know.

-Barry
Technical Details
Message-ID: <9408162021.AA00307@anthem.nlm.nih.gov>
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!redstone.interpath.net!ddsw1!panix!MathWorks.Com!yeshua.marcam.com!usc!math.ohio-state.edu!cis.ohio-state.edu!anthem.nlm.nih.gov!warsaw
References: <199408161543.LAA12827@gza-client1.aktis.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,215d624fa498417d
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1994-08-16 14:34:17 PST
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!redstone.interpath.net!ddsw1!panix!MathWorks.Com!yeshua.marcam.com!usc!math.ohio-state.edu!cis.ohio-state.edu!anthem.nlm.nih.gov!warsaw
From: warsaw@anthem.nlm.nih.gov (Barry A. Warsaw)
Newsgroups: gnu.emacs.bug
Subject: Re: cc-mode should be able to "learn" the style of a file
Date: 16 Aug 1994 16:23:11 -0400
Organization: GNUs Not Usenet
Lines: 17
Sender: daemon@cis.ohio-state.edu
Approved: bug-gnu-emacs@prep.ai.mit.edu
Distribution: gnu
Message-ID: <9408162021.AA00307@anthem.nlm.nih.gov>
References: <199408161543.LAA12827@gza-client1.aktis.com>
Reply-To: cc-mode-help@anthem.nlm.nih.gov