---------------------------- revision 1.21 locked by: mac; date: 2002/04/04 00:53:43; author: mac; state: Exp; lines: +19 -118 1) Eliminate some unused functions 2) reduce nested calls to save-excursion, as this seems to cause exceeding of macspecpdl-size 3) include code to set max-specpdl-size to at minimum 3000 ---------------------------- revision 1.20 date: 2002/02/07 01:04:27; author: mac; state: Exp; lines: +261 -141 1) Miscellaneous comment manipulation clean up 2) Turn off highlighting method names. The regexp is too large for font lock to handle easily ---------------------------- revision 1.19 date: 2001/12/10 05:05:28; author: mac; state: Exp; lines: +223 -38 1) Added auto-endcomments ( all '};' get a comment like '}; // struct foo' if the }; closes a struct foo { opener, and so on. 2) Make ';' electric, automatically inserting a newline, and if it is a '};' insert an end comment ---------------------------- revision 1.18 date: 2001/12/06 17:16:25; author: mac; state: Exp; lines: +81 -72 Reorganized what is a function and what is a keyword for font lock,, based on input from Scott Frazer ---------------------------- revision 1.17 date: 2001/12/05 17:15:16; author: mac; state: Exp; lines: +16 -16 Fixes for compatibility for GNU emacs and XEmacs ---------------------------- revision 1.16 date: 2001/10/13 05:54:19; author: mac; state: Exp; lines: +321 -422 More changes in indent code. Massive simplification, and deletion of unneeded code. Saddly because specman has two line comments, we can not use the builtin re-search routines as they will get caought in comments. Things are a bit slower because of that, but the language is what the language is. Added customizations (you can line up () and [] lists either as continued lines, or as lists;) More to be done, but synching up here and now. ---------------------------- revision 1.15 date: 2000/06/15 20:03:33; author: mac; state: Exp; lines: +17 -10 Better wrapping of sn-scan-lists ---------------------------- revision 1.14 date: 2000/05/05 23:18:03; author: yaron; state: Exp; lines: +94 -17 Various fixes ---------------------------- revision 1.13 date: 2000/05/05 19:02:50; author: mac; state: Exp; lines: +2 -2 Fix for specman-mode/6478 (-- comments were not properly highlighted) ---------------------------- revision 1.12 date: 2000/05/04 23:55:46; author: mac; state: Exp; lines: +23 -24 It seems that func-menu is not ubiquitous; (e.g. it is not a standard part of FSF emacs); hence only add support if available. ---------------------------- revision 1.11 date: 2000/05/04 22:43:09; author: mac; state: Exp; lines: +146 -167 Added FUME support; and reworked imenu support to not require the latest and greatest technology. ---------------------------- revision 1.10 date: 2000/05/03 16:30:09; author: mac; state: Exp; lines: +273 -196 The joy of 'e'. Due to the interesting sematics of the language, I have learned more about imenu, so that I could recognize more of the many ways one could code a method. This change is, hence a re-write of the imenu functionality. Please continue with feedback. ---------------------------- revision 1.9 date: 2000/05/02 19:31:57; author: mac; state: Exp; lines: +6 -1 more hacks for GNU ---------------------------- revision 1.8 date: 2000/05/02 19:25:42; author: mac; state: Exp; lines: +67 -49 * Various changes to make work also on GNU emacs ---------------------------- revision 1.7 date: 2000/04/30 14:54:00; author: mac; state: Exp; lines: +226 -103 * Notice some folks haven't installed regexp-opt, and provide a inferior replacement. * Fix specman-index to recognize definitions that extend across multiple lines. * Fix indent code to work better, expecially as new code is entered. ---- Still to do: eliminate unused indent code. Look at context sensitive highlighting (Specman has no reserved words, and font-lock is not a context sensitive package...) ---------------------------- revision 1.6 date: 2000/04/24 16:32:03; author: mac; state: Exp; lines: +336 -54 * Enhanced indent mode - simpler, more orthgonal - uses emacs's built in list "() [] {}" walkers - indents items with in a list according to the list they are in: extend sys { trunc_ba2cla(ba:ByteAddr):CacheLineAddr is { result = ba[:CacheLineOffsetBits].as_a(CacheLineAddr); }; // Hello rand ( min:int, max:in ) : int is inline { gen result keeping { it >= min && it <= max }; }; }; * Added Specman-Index: A quick jump in the menu bar to the definition of every struct, unit, variable and method defined in the file. Pull down the menu bar, and see the items; select one and you a jumped to that position in the buffer. * Enhanced fon lock coloring to color methods in function-name face * Added a Specman menu item to allow move beginning/end of specification more to be done here... comments Header comment { Insert a standard 'header comment' to define project name, copyright and the like } Comment/uncomment region Toggle hiding text in '> <' regions Insert multi line comment compile more to be done here... submit bug report THIS IS YOUR JOB ! :-) Customize Specman Mode Buffer pops up where you can set configuration knobs to your pleasure. Please suggest more styles! Customize Specman Fonts And Colors Here is where you can choose pink italic for your function names! ---------------------------- revision 1.5 date: 2000/04/12 15:31:00; author: mac; state: Exp; lines: +15 -15 Fix specman-mode-map definition ---------------------------- revision 1.4 date: 2000/03/31 02:18:06; author: mac; state: Exp; lines: +267 -21 1) Added the ability to toggle the display of comments 2) Added better mode documentation 3) Started a menu definition ---------------------------- revision 1.3 date: 2000/03/23 02:05:51; author: mac; state: Exp; lines: +61 -3 Added bug reporter, auto version number ---------------------------- revision 1.2 date: 2000/03/23 01:58:14; author: mac; state: Exp; lines: +877 -882 - Use font lock more completely - Indent more efficiently - don't modify the file if indenting changes nothing - rename all functions to start with 'specman-' as they are global - make work with FSF emacs - delete what appear to be private 'my-' functions ---------------------------- revision 1.1 date: 2000/02/10 23:24:05; author: mac; state: Exp; Initial revision =============================================================================