From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.help Subject: Re: awk-scripting Date: Thu, 19 Jun 2003 22:40:57 +0000 Organization: muc.de e.V. -- private internet access Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <5lllvx99c7.fsf@rum.cs.yale.edu> NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1056062530 18841 80.91.224.249 (19 Jun 2003 22:42:10 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 19 Jun 2003 22:42:10 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 20 00:42:04 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19T86W-0004tL-00 for ; Fri, 20 Jun 2003 00:42:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19T85c-0002ls-Hi for gnu-help-gnu-emacs@m.gmane.org; Thu, 19 Jun 2003 18:41:08 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!nntp.cs.ubc.ca!freenix!wanadoo.fr!proxad.net!newsfeed.stueberl.de!news.space.net!news.muc.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 34 Original-NNTP-Posting-Host: acm.muc.de Original-X-Trace: marvin.muc.de 1056062354 66840 193.149.49.134 (19 Jun 2003 22:39:14 GMT) Original-X-Complaints-To: news-admin@muc.de Original-NNTP-Posting-Date: 19 Jun 2003 22:39:14 GMT User-Agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (Linux/2.0.35 (i686)) Original-Xref: shelby.stanford.edu gnu.emacs.help:114596 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:11088 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11088 Stefan Monnier wrote on 19 Jun 2003 15:05:28 -0400: >> Is there anybody being able to tell me what I am doing wrong? > Nothing, it's just not implemented in your version of Emacs. > There is some indentation support but it's seriously broken (it think > that awk is just like C, so it works a little better if you make > your awk code look like C by placing semi-colons at end of commands). > The Emacs-CVS code has improved support for awk-mode right now > and the soon-to-be-merged CC-mode-5.30 will provide a complete > rewrite of awk-mode with proper indentation support. CC-Mode-5.30 was released this afternoon. It does indeed contain proper indentation support for AWK, but requires a reasonably recent Emacs, either Emacs 20.1 (or later) [or XEmacs 21.4 (or later)]. Font locking is implemented, and is switched on just like for any other mode. CC-Mode-5.30 is available as a tarball from . And _PLEASE_ read the file README on how to get the new awk-mode properly installed in place of the old. [And just in case anybody's wondering, Dr. Jurzitza's post was genuine. His timing was purely coincidental. :-] > Stefan -- Alan Mackenzie (Munich, Germany) Email: aacm@muuc.dee; to decode, wherever there is a repeated letter (like "aa"), remove half of them (leaving, say, "a").