X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/412f24b9ddf1e07022f8c5fe05f0717f130c4c02..1adfb5ee55d16cd3d9d78998ae7bbb8e5708d9c5:/lisp/net/snmp-mode.el diff --git a/lisp/net/snmp-mode.el b/lisp/net/snmp-mode.el index e9783d46ba..4afc460779 100644 --- a/lisp/net/snmp-mode.el +++ b/lisp/net/snmp-mode.el @@ -1,6 +1,6 @@ ;;; snmp-mode.el --- SNMP & SNMPv2 MIB major mode -;; Copyright (C) 1995, 1998, 2001-2011 Free Software Foundation, Inc. +;; Copyright (C) 1995, 1998, 2001-2016 Free Software Foundation, Inc. ;; Author: Paul D. Smith ;; Keywords: data @@ -85,9 +85,9 @@ ;;; Code: (eval-when-compile - (require 'cl) - (require 'imenu) ; Need this stuff when compiling for imenu macros, etc. - (require 'tempo)) + (require 'imenu)) ; Need this stuff when compiling for imenu macros, etc. + +(require 'tempo) ;;;---------------------------------------------------------------------------- ;; @@ -141,10 +141,10 @@ This is used during Tempo template completion." :group 'snmp) (defvar snmp-tempo-tags nil - "*Tempo tags for SNMP mode.") + "Tempo tags for SNMP mode.") (defvar snmpv2-tempo-tags nil - "*Tempo tags for SNMPv2 mode.") + "Tempo tags for SNMPv2 mode.") ;; Enable fontification for SNMP MIBs @@ -176,9 +176,9 @@ This is used during Tempo template completion." (defvar snmp-font-lock-keywords-3 (append '(("\\([^\n]+\\)[ \t]+::=[ \t]+\\(SEQUENCE\\)[ \t]+{" - (1 font-lock-reference-face) (2 font-lock-keyword-face)) + (1 font-lock-constant-face) (2 font-lock-keyword-face)) ("::=[ \t]*{[ \t]*\\([a-z0-9].*[ \t]+\\)?\\([0-9]+\\)[ \t]*}" - (1 font-lock-reference-face nil t) (2 font-lock-variable-name-face))) + (1 font-lock-constant-face nil t) (2 font-lock-variable-name-face))) snmp-font-lock-keywords-2) "Gaudy SNMP MIB mode expression highlighting.") @@ -541,8 +541,6 @@ lines for the purposes of this function." ;; ;;;---------------------------------------------------------------------------- -(require 'tempo) - ;; Perform a completing-read with info given ;; (defun snmp-completing-read (prompt table &optional pred require init hist) @@ -676,7 +674,7 @@ controls whether case is significant." ;; v2 SMI TEXTUAL-CONVENTION macro template ;; (tempo-define-template "snmpv2-textual-convention" - '(> (P "Texual Convention Type: ") " ::= TEXTUAL-CONVENTION" n> + '(> (P "Textual Convention Type: ") " ::= TEXTUAL-CONVENTION" n> "STATUS " (if tempo-interactive (snmp-completing-read "Status: " snmp-mode-status-list nil t)