From 0e2984a7f447e2404dcb7ab6ad388ddbe9221d40 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Thu, 15 Mar 2018 13:29:30 -0400 Subject: [PATCH] * lisp/progmodes/verilog-mode.el (verilog-mode): Quieten compilation. --- lisp/progmodes/verilog-mode.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/verilog-mode.el b/lisp/progmodes/verilog-mode.el index 48dee4bef31..66577619028 100644 --- a/lisp/progmodes/verilog-mode.el +++ b/lisp/progmodes/verilog-mode.el @@ -3966,7 +3966,9 @@ Key bindings specific to `verilog-mode-map' are: #'verilog-completion-at-point nil 'local) ;; Stuff for autos - (add-hook 'write-contents-hooks 'verilog-auto-save-check nil 'local) + (add-hook (if (boundp 'write-contents-hooks) 'write-contents-hooks + 'write-contents-functions) ; Emacs >= 22.1 + 'verilog-auto-save-check nil 'local) ;; verilog-mode-hook call added by define-derived-mode ) -- 2.39.2