all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Robert Thorpe" <rthorpe@realworldtech.com>
Subject: Re: Trace Format files on AIX
Date: 27 Nov 2006 10:26:39 -0800	[thread overview]
Message-ID: <1164651998.920979.116120@j72g2000cwa.googlegroups.com> (raw)
In-Reply-To: <mailman.1168.1164644441.2155.help-gnu-emacs@gnu.org>

Perry Smith wrote:
> Two questions, first the easy one:
>
> Does anyone have a 'font-lock-mode' for the trace format files that
> AIX uses?
>
> Assuming the answer to that is no... Where should I start?

Probably with C-h f generic-mode.

You could also base a mode of a simple one in emacs.
Or maybe this one:-
http://groups.google.com/group/comp.emacs/msg/3c8a54187d038191?dmode=source

> I would like two basic things when I edit a trace format file.  One
> would be to highlight and color various parts of the file like C mode
> does in font-lock-mode.

That's quite easy with Generic mode.

> But more importantly is a syntax check.  I
> have a package called nxml that does this for xml things.

That is not so easy.  Syntax highlighting is done using regexp, this
makes it simple and fast, but not foolproof (except in the case of
something like lisp).  Syntax checking needs to be foolproof, so it
needs parsing.  You could write a simple parser in Emacs.

Or, you could make some regexp that find common mistakes and highlight
them.
See cwarn.el in Emacs for an example of that.

>  I'm not
> sure if the two concepts are connected or not (I think not actually).

They are.  Syntax highlight could be done by parsing in Emacs, but it
isn't.
It is in some Emacs add-on packages.

       reply	other threads:[~2006-11-27 18:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1168.1164644441.2155.help-gnu-emacs@gnu.org>
2006-11-27 18:26 ` Robert Thorpe [this message]
2006-11-27 16:20 Trace Format files on AIX Perry Smith
2006-11-27 20:32 ` Kevin Rodgers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1164651998.920979.116120@j72g2000cwa.googlegroups.com \
    --to=rthorpe@realworldtech.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.