From: Glenn Morris Date: Thu, 15 Mar 2018 17:29:30 +0000 (-0400) Subject: * lisp/progmodes/verilog-mode.el (verilog-mode): Quieten compilation. X-Git-Tag: emacs-27.0.90~5486 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0e2984a7f447e2404dcb7ab6ad388ddbe9221d40;p=emacs.git * lisp/progmodes/verilog-mode.el (verilog-mode): Quieten compilation. --- 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 )