]> gitweb.michael.orlitzky.com - nagios-mode.git/blobdiff - nagios-mode.el
Replace kill-region with delete-region in the indentation function, fixing the annoyi...
[nagios-mode.git] / nagios-mode.el
index 722450edfd87130ce9d06762df9d8fdd568c7cc4..fabfc76a3be684a46d8ac4bccfe2684ddb2ec9d6 100644 (file)
@@ -54,7 +54,7 @@
   (setq first-char-pos
        (+ bol first-char-offset))
   
-  (kill-region bol first-char-pos)
+  (delete-region bol first-char-pos)
   
   (beginning-of-line)
 
     (concat "^[ \t\r\n]*"
 
     (regexp-alt-raw
-     '("define +\\(host\\|service\\|timeperiod\\|contact\\|command\\)"
-       "define +\\(host\\|contact\\|service\\)group"
-       "define +\\(service\\|host\\)dependency"
-       "define +\\(service\\|host\\|hostgroup\\)escalation"))
+     '("define command"
+       "define contact"
+       "define contactgroup"
+       "define host"
+       "define hostdependency"
+       "define hostescalation"
+       "define hostextinfo"
+       "define hostgroup"
+       "define hostgroupescalation"
+       "define null"
+       "define service"
+       "define servicedependency"
+       "define serviceescalation"
+       "define serviceextinfo"
+       "define servicegroup"
+       "define timeperiod"))
 
     ;; These can be "terminated" by either an opening curly
     ;; brace, or a space.