]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/progmodes/verilog-mode.el (verilog-mode): Quieten compilation.
authorGlenn Morris <rgm@gnu.org>
Thu, 15 Mar 2018 17:29:30 +0000 (13:29 -0400)
committerAndrew G Cohen <cohen@andy.bu.edu>
Tue, 11 Dec 2018 06:17:31 +0000 (14:17 +0800)
lisp/progmodes/verilog-mode.el

index 48dee4bef319ad656bfd17edf3b5611264755840..665776190288fac37f04caef65fa9de0c2a95e62 100644 (file)
@@ -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
   )