all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Trace Format files on AIX
@ 2006-11-27 16:20 Perry Smith
  2006-11-27 20:32 ` Kevin Rodgers
  0 siblings, 1 reply; 3+ messages in thread
From: Perry Smith @ 2006-11-27 16:20 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 717 bytes --]

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?

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.  But more importantly is a syntax check.  I  
have a package called nxml that does this for xml things.  I'm not  
sure if the two concepts are connected or not (I think not actually).

Thanks for your help,
Perry Smith ( pedz@easesoftware.com )
Ease Software, Inc. ( http://www.easesoftware.com )

Low cost SATA Disk Systems for IBMs p5, pSeries, and RS/6000 AIX systems



[-- Attachment #1.2: Type: text/html, Size: 4547 bytes --]

[-- Attachment #2: Type: text/plain, Size: 152 bytes --]

_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Trace Format files on AIX
       [not found] <mailman.1168.1164644441.2155.help-gnu-emacs@gnu.org>
@ 2006-11-27 18:26 ` Robert Thorpe
  0 siblings, 0 replies; 3+ messages in thread
From: Robert Thorpe @ 2006-11-27 18:26 UTC (permalink / raw)


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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Trace Format files on AIX
  2006-11-27 16:20 Trace Format files on AIX Perry Smith
@ 2006-11-27 20:32 ` Kevin Rodgers
  0 siblings, 0 replies; 3+ messages in thread
From: Kevin Rodgers @ 2006-11-27 20:32 UTC (permalink / raw)


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?

C-h f define-generic-mode
C-h f define-derived-mode

> 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.  But more importantly is a syntax check.  I have 
> a package called nxml that does this for xml things.  I'm not sure if 
> the two concepts are connected or not (I think not actually).

-- 
Kevin

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-11-27 20:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-27 16:20 Trace Format files on AIX Perry Smith
2006-11-27 20:32 ` Kevin Rodgers
     [not found] <mailman.1168.1164644441.2155.help-gnu-emacs@gnu.org>
2006-11-27 18:26 ` Robert Thorpe

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.