From: intrigeri <intrigeri@boum.org>
Date: Thu, 7 Jun 2012 23:17:51 +0200
Subject: Don't use obsolete make-local-hook function.

Instead, pass a non-nil value to the `LOCAL' argument of add-hook,
which has been nicely replacing the need to run make-local-hook since
Emacs 21.1.
---
 extras/perlcritic.el |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/extras/perlcritic.el b/extras/perlcritic.el
index e1b74a7..570b9c7 100644
--- a/extras/perlcritic.el
+++ b/extras/perlcritic.el
@@ -658,9 +658,8 @@ require that the perl document exist in a file anywhere."
 			  ;; Set it.
 			  (> (prefix-numeric-value arg) 0)))
 
-  (make-local-hook 'write-file-hooks)
   (if perlcritic-mode
-      (add-hook 'write-file-hooks 'perlcritic-write-hook)
+      (add-hook 'write-file-hooks 'perlcritic-write-hook nil "local")
     (remove-hook 'write-file-hooks 'perlcritic-write-hook)))
 
 ;; Make a nice name for perl critic mode. This string will appear at
