From owner-freebsd-questions Sun Dec 3 12:35:57 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id MAA22630 for questions-outgoing; Sun, 3 Dec 1995 12:35:57 -0800 Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id MAA22622 for ; Sun, 3 Dec 1995 12:35:53 -0800 Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id NAA08994; Sun, 3 Dec 1995 13:32:31 -0700 From: Terry Lambert Message-Id: <199512032032.NAA08994@phaeton.artisoft.com> Subject: Re: xemacs To: dwhite@resnet.uoregon.edu Date: Sun, 3 Dec 1995 13:32:31 -0700 (MST) Cc: chuckr@glue.umd.edu, FreeBSD-Questions@FreeBSD.ORG In-Reply-To: from "Doug White" at Dec 2, 95 04:52:24 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 1658 Sender: owner-questions@FreeBSD.ORG Precedence: bulk > I personally like your way, and do so, because I can't figure out how to > make the syntax highlighting stick. It does in html mode, but not in cpp > mode. [ ... Coding style ... ] I've found that coding style is generally a function of the tools you use to manipulate the code. For most UNIX-oids, it's 'vi', 'find', and 'grep', etc. Use of tag-files reduces the utility of some of these tools, making then redundant. Use of things like "cvi" results in some "unnatural" standards that become much easier to use with macro-editing. You can almost pick out which system and what tools a programmer uses by the coding style, unless they are real green and haven't established a style or adopted a standard style for a platform, with minor variations. For instance, you typically see instead of when a programmer uses the ^ regular expression to find a function declaration, either in vi in a single file or using grep over a large number of files. You see { Instead of { or { when a programmer uses the vi "[[" and "]]" commands (without using a "set paragraphs=" command in their .exrc) to find function starts. You see { instead of { When the programmer uses the vi "$%" to match statement scope, since it is less finger motion than "j%", etc., etc.. Not much relevance, I know, but it's an interesting aside. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.