]> gitweb.michael.orlitzky.com - nagios-mode.git/log
nagios-mode.git
6 months agonagios-mode.el: GPL -> AGPL in the header master
Michael Orlitzky [Mon, 6 May 2024 18:46:47 +0000 (14:46 -0400)]
nagios-mode.el: GPL -> AGPL in the header

6 months agoCOPYING,LICENSE: add these to relicense to AGPL-3.0+
Michael Orlitzky [Mon, 6 May 2024 18:46:12 +0000 (14:46 -0400)]
COPYING,LICENSE: add these to relicense to AGPL-3.0+

2 years agoREADME: minor wording tweak.
Michael Orlitzky [Mon, 14 Nov 2022 19:01:49 +0000 (14:01 -0500)]
README: minor wording tweak.

2 years agoChangeLog: update for v0.4. v0.4
Michael Orlitzky [Mon, 14 Nov 2022 18:49:08 +0000 (13:49 -0500)]
ChangeLog: update for v0.4.

2 years agoREADME: update to mention the automated directive parsing.
Michael Orlitzky [Mon, 14 Nov 2022 13:27:14 +0000 (08:27 -0500)]
README: update to mention the automated directive parsing.

2 years agoutils/parse_directives: new automated parser for directive names.
Michael Orlitzky [Mon, 14 Nov 2022 13:26:15 +0000 (08:26 -0500)]
utils/parse_directives: new automated parser for directive names.

This probably isn't perfect, but it finds all of the directives we
already had (and some new ones), so it doesn't make things worse.

2 years agonagios-mode.el: add some missing directives.
Michael Orlitzky [Mon, 14 Nov 2022 13:19:09 +0000 (08:19 -0500)]
nagios-mode.el: add some missing directives.

2 years agoutils/parse_macros: drop obsolete $OUTFILE variable.
Michael Orlitzky [Mon, 14 Nov 2022 12:56:30 +0000 (07:56 -0500)]
utils/parse_macros: drop obsolete $OUTFILE variable.

2 years agonagios-mode.el: move directives to their own lines for easy diffing.
Michael Orlitzky [Mon, 14 Nov 2022 12:32:28 +0000 (07:32 -0500)]
nagios-mode.el: move directives to their own lines for easy diffing.

2 years agonagios-mode.el: drop obsolete syntax-begin-function definition.
Michael Orlitzky [Mon, 14 Nov 2022 11:49:53 +0000 (06:49 -0500)]
nagios-mode.el: drop obsolete syntax-begin-function definition.

I guess emacs doesn't use this any more? I'm not sure we cared about
it in the first place, so bye. This fixes the warning,

  Warning: `syntax-begin-function' is an obsolete variable (as of
  25.1).

2 years agonagios-mode.el: replace all tabs with spaces, as God intended.
Michael Orlitzky [Sun, 13 Nov 2022 00:39:35 +0000 (19:39 -0500)]
nagios-mode.el: replace all tabs with spaces, as God intended.

2 years agoutils/parse_macros: simplify and posixify.
Michael Orlitzky [Sun, 13 Nov 2022 00:10:19 +0000 (19:10 -0500)]
utils/parse_macros: simplify and posixify.

Update this script to be POSIX compliant, and to run under /bin/sh
instead of /bin/bash. In addition it now prints its output to stdout
rather than a named output file, and creates its temporary file more
sanely and securely.

2 years agonagios-mode.el: add a few new macros.
Michael Orlitzky [Sun, 13 Nov 2022 00:04:57 +0000 (19:04 -0500)]
nagios-mode.el: add a few new macros.

The following were added at some point in the intervening decade, and
have now been added to the list:

  * $HOSTANDSERVICESIMPORTANCE$
  * $HOSTGROUPMEMBERADDRESSES$
  * $HOSTIMPORTANCE$
  * $HOSTINFOURL$
  * $HOSTNOTIFICATIONENABLED$
  * $HOSTNOTIFICATIONPERIOD$
  * $SERVICEIMPORTANCE$
  * $SERVICENOTIFICATIONENABLED$
  * $SERVICENOTIFICATIONPERIOD$

2 years agoutils/parse_object_definitions: make POSIX-compatible.
Michael Orlitzky [Fri, 11 Nov 2022 21:18:15 +0000 (16:18 -0500)]
utils/parse_object_definitions: make POSIX-compatible.

This script now uses an ugly sed script instead of relying on the
non-portable "--only-matching" flag of grep.

2 years agoutils/parse_object_definitions: miscellaneous cleanups.
Michael Orlitzky [Fri, 11 Nov 2022 20:03:13 +0000 (15:03 -0500)]
utils/parse_object_definitions: miscellaneous cleanups.

  1. Use /bin/sh instead of /bin/bash
  2. Use basic (non-extended) regular expressions with grep
  3. Use plain "grep" instead of "grep --extended-regexp --color=never"
  4. Write the result to stdout; drop the second CLI argument

2 years agonagios-mode.el: drop support for hostgroupescalation definitions.
Michael Orlitzky [Fri, 11 Nov 2022 20:00:21 +0000 (15:00 -0500)]
nagios-mode.el: drop support for hostgroupescalation definitions.

These were removed from Nagios at some point.

2 years agoREADME: various prose improvements.
Michael Orlitzky [Fri, 11 Nov 2022 19:48:41 +0000 (14:48 -0500)]
README: various prose improvements.

8 years agoWhitespace fix in the README.
Michael Orlitzky [Tue, 8 Nov 2016 03:37:04 +0000 (22:37 -0500)]
Whitespace fix in the README.

14 years agoUpdated the ChangeLog for v0.3. v0.3
Michael Orlitzky [Sat, 21 Aug 2010 05:16:12 +0000 (01:16 -0400)]
Updated the ChangeLog for v0.3.

14 years agoUpdate char-is-commented to support semicolon comments.
Michael Orlitzky [Sat, 21 Aug 2010 05:04:01 +0000 (01:04 -0400)]
Update char-is-commented to support semicolon comments.

14 years agoUpdate the last three tests for semicolon comments.
Michael Orlitzky [Sat, 21 Aug 2010 05:03:37 +0000 (01:03 -0400)]
Update the last three tests for semicolon comments.

14 years agoWhitespace fixes.
Michael Orlitzky [Sat, 21 Aug 2010 04:01:37 +0000 (00:01 -0400)]
Whitespace fixes.

14 years agoPrefix all functions with "nagios-".
Michael Orlitzky [Sat, 21 Aug 2010 04:00:45 +0000 (00:00 -0400)]
Prefix all functions with "nagios-".

14 years agoAdded three tests for new functionality.
Michael Orlitzky [Sat, 21 Aug 2010 03:53:58 +0000 (23:53 -0400)]
Added three tests for new functionality.

14 years agoUpdated the last-opening-brace, last-closing-brace, and nagios-calculate-indent funct...
Michael Orlitzky [Sat, 21 Aug 2010 03:51:11 +0000 (23:51 -0400)]
Updated the last-opening-brace, last-closing-brace, and nagios-calculate-indent functions to ignore braces which are commented out.

14 years agoFix the brace-on-line function.
Michael Orlitzky [Sat, 21 Aug 2010 03:44:37 +0000 (23:44 -0400)]
Fix the brace-on-line function.

14 years agoFix 9db78f (two commits ago) so that it actually works.
Michael Orlitzky [Sat, 21 Aug 2010 03:41:36 +0000 (23:41 -0400)]
Fix 9db78f (two commits ago) so that it actually works.

14 years agoFix a setq within an if statement.
Michael Orlitzky [Fri, 20 Aug 2010 22:42:43 +0000 (18:42 -0400)]
Fix a setq within an if statement.

14 years agoIf the point is left of indent-column after nagios-indent-to, move it to indent-column.
Michael Orlitzky [Fri, 20 Aug 2010 22:41:45 +0000 (18:41 -0400)]
If the point is left of indent-column after nagios-indent-to, move it to indent-column.

14 years agoFixed a bug in first-char-offset affecting indentation.
Michael Orlitzky [Fri, 20 Aug 2010 22:40:39 +0000 (18:40 -0400)]
Fixed a bug in first-char-offset affecting indentation.

14 years agoAdd a newline.
Michael Orlitzky [Fri, 20 Aug 2010 22:39:44 +0000 (18:39 -0400)]
Add a newline.

14 years agoRename pos-offset to point-offset.
Michael Orlitzky [Fri, 20 Aug 2010 22:39:20 +0000 (18:39 -0400)]
Rename pos-offset to point-offset.

14 years agoMake nagios-indent-line interactive.
Michael Orlitzky [Fri, 20 Aug 2010 22:38:54 +0000 (18:38 -0400)]
Make nagios-indent-line interactive.

14 years agoClean up the nagios-calculate-indent function. Gets rid of compiler warnings.
Michael Orlitzky [Fri, 20 Aug 2010 22:16:02 +0000 (18:16 -0400)]
Clean up the nagios-calculate-indent function. Gets rid of compiler warnings.

14 years agoClean up the nagios-indent-to function and eliminate a bunch of byte-compiler warnings.
Michael Orlitzky [Fri, 20 Aug 2010 22:05:11 +0000 (18:05 -0400)]
Clean up the nagios-indent-to function and eliminate a bunch of byte-compiler warnings.

14 years agoEliminate the last use of regexp-alt-raw and the function itself.
Michael Orlitzky [Fri, 20 Aug 2010 21:23:44 +0000 (17:23 -0400)]
Eliminate the last use of regexp-alt-raw and the function itself.

14 years agoSimplify the nagios-in-block function and eliminate some byte-compiler warnings as...
Michael Orlitzky [Fri, 20 Aug 2010 20:54:12 +0000 (16:54 -0400)]
Simplify the nagios-in-block function and eliminate some byte-compiler warnings as a side-effect.

14 years agoRemove the slashes from around the macro definitions, and use regexp-opt instead...
Michael Orlitzky [Fri, 20 Aug 2010 20:40:40 +0000 (16:40 -0400)]
Remove the slashes from around the macro definitions, and use regexp-opt instead of the custom regexp-alt-raw to parse them.

14 years agoUpdated the ChangeLog for v0.2. v0.2
Michael Orlitzky [Thu, 19 Aug 2010 03:44:56 +0000 (23:44 -0400)]
Updated the ChangeLog for v0.2.

14 years agoReplace kill-region with delete-region in the indentation function, fixing the annoyi...
Michael Orlitzky [Thu, 19 Aug 2010 03:36:25 +0000 (23:36 -0400)]
Replace kill-region with delete-region in the indentation function, fixing the annoying yank bug.

14 years agoAdded a ChangeLog. v0.1
Michael Orlitzky [Sun, 18 Apr 2010 04:25:17 +0000 (00:25 -0400)]
Added a ChangeLog.

14 years agoAdded a README file. Why not?
Michael Orlitzky [Sun, 18 Apr 2010 04:17:05 +0000 (00:17 -0400)]
Added a README file. Why not?

14 years agoChanged the object definition regex to use the output of parse_object_definitions.
Michael Orlitzky [Sun, 18 Apr 2010 01:53:08 +0000 (21:53 -0400)]
Changed the object definition regex to use the output of parse_object_definitions.

14 years agoAdded the parse_object_definitions script.
Michael Orlitzky [Sun, 18 Apr 2010 01:52:44 +0000 (21:52 -0400)]
Added the parse_object_definitions script.

14 years agoAdded a test against ARG0/USER0 macros.
Michael Orlitzky [Sun, 18 Apr 2010 01:30:07 +0000 (21:30 -0400)]
Added a test against ARG0/USER0 macros.

14 years agoAdded the parse_macros script. It was used to retrieve the list of macros in the...
Michael Orlitzky [Sun, 18 Apr 2010 01:27:02 +0000 (21:27 -0400)]
Added the parse_macros script. It was used to retrieve the list of macros in the previous commit.

14 years agoUpdated the list of macros from Nagios' macros.h.
Michael Orlitzky [Sun, 18 Apr 2010 01:22:57 +0000 (21:22 -0400)]
Updated the list of macros from Nagios' macros.h.
Hard-code ARG1 through ARG32 along with USER1 through USER256.

14 years agoRemove the multi-line string test, since it seems to be near-impossible to disable...
Michael Orlitzky [Fri, 9 Apr 2010 16:35:25 +0000 (12:35 -0400)]
Remove the multi-line string test, since it seems to be near-impossible to disable them.

14 years agoDefine syntax-begin-function as beginning-of-line.
Michael Orlitzky [Fri, 9 Apr 2010 16:05:19 +0000 (12:05 -0400)]
Define syntax-begin-function as beginning-of-line.

14 years agoAdded a value for comment-start-skip.
Michael Orlitzky [Fri, 9 Apr 2010 15:20:02 +0000 (11:20 -0400)]
Added a value for comment-start-skip.

14 years agoRemove the nagios-comments and nagios-string constants.
Michael Orlitzky [Fri, 9 Apr 2010 14:56:43 +0000 (10:56 -0400)]
Remove the nagios-comments and nagios-string constants.
Don't highlight comments and strings via keywords.
Make keyword highlighting case-sensitive.
Remove some comments from the main mode function.
Added a syntax table.
Enable syntax highlighting for comments and strings.
Add comment-start and comment-end definitions.

15 years agoAdded the contactgroups and contactgroup_members directives.
Michael Orlitzky [Fri, 28 Aug 2009 20:12:39 +0000 (16:12 -0400)]
Added the contactgroups and contactgroup_members directives.

15 years agoAdded the first_notification_delay directive.
Michael Orlitzky [Fri, 28 Aug 2009 19:13:18 +0000 (15:13 -0400)]
Added the first_notification_delay directive.

15 years agoAdded another string test (passing).
Michael Orlitzky [Mon, 16 Feb 2009 05:23:30 +0000 (00:23 -0500)]
Added another string test (passing).

15 years agoAdded back font locking for strings.
Michael Orlitzky [Mon, 16 Feb 2009 05:20:44 +0000 (00:20 -0500)]
Added back font locking for strings.
Currently, one of the nested string tests fails.

15 years agoBegan matching only the first subexpression of the definition regexp.
Michael Orlitzky [Mon, 16 Feb 2009 04:28:26 +0000 (23:28 -0500)]
Began matching only the first subexpression of the definition regexp.
Removed the {} bracket override from the keywords.

15 years agoSet the default behavior to match keywords only (ignoring strings for now).
Michael Orlitzky [Mon, 16 Feb 2009 04:26:43 +0000 (23:26 -0500)]
Set the default behavior to match keywords only (ignoring strings for now).
This fixes one of the new tests by breaking everything else.

15 years agoAdded three new tests for multiline strings and nested strings/commnents.
Michael Orlitzky [Mon, 16 Feb 2009 04:25:45 +0000 (23:25 -0500)]
Added three new tests for multiline strings and nested strings/commnents.

15 years agoFixed the syntax highlighting so that it passes all of the tests in the new test...
Michael Orlitzky [Mon, 16 Feb 2009 03:41:29 +0000 (22:41 -0500)]
Fixed the syntax highlighting so that it passes all of the tests in the new test suite.
Removed the regexp-word function.
Directives, specials, and definitions must be the first non-whitespace text on a line.

15 years agoAdded a test suite for the syntax highlighting.
Michael Orlitzky [Mon, 16 Feb 2009 03:41:01 +0000 (22:41 -0500)]
Added a test suite for the syntax highlighting.

15 years agoFixed regexp-word so that it treats newlines as word boundaries.
Michael Orlitzky [Fri, 13 Feb 2009 03:42:38 +0000 (22:42 -0500)]
Fixed regexp-word so that it treats newlines as word boundaries.

15 years agoAdded support for more missing directives: "host_notifications_enabled", "service_not...
Michael Orlitzky [Fri, 13 Feb 2009 03:16:48 +0000 (22:16 -0500)]
Added support for more missing directives: "host_notifications_enabled", "service_notifications_enabled", "contacts", and "notes".

15 years agoAdded support for the servicegroup definition, and the contained servicegroup_name...
Michael Orlitzky [Fri, 13 Feb 2009 03:14:05 +0000 (22:14 -0500)]
Added support for the servicegroup definition, and the contained servicegroup_name directive.

15 years agoAdded support for some Nagios 3 directives.
Michael Orlitzky [Sun, 8 Feb 2009 04:04:11 +0000 (23:04 -0500)]
Added support for some Nagios 3 directives.
Removed any Emacs lisp commands that I don't understand.
Rewrote some of the syntax highlighting so that comments and multi-word directives are handled properly.
Removed some unnecessary code.
Removed the "apropos.el" requirement. I don't think it's used anywhere.
Lowercased the all-caps comments.
Added the GPL3/Copyright notice to the top.
Changed the comment face so that they're highlighted by default.

16 years agoInitial commit.
mjo [Wed, 3 Sep 2008 19:19:05 +0000 (15:19 -0400)]
Initial commit.