[SCM] Debian packaging of libperl-critic-perl branch, master, updated. debian/1.117-1-5-g2baf047

intrigeri intrigeri at boum.org
Thu Jun 7 22:17:18 UTC 2012


The following commit has been merged in the master branch:
commit 7d5213bfaf544348e759dc142157d89f3371eeaf
Author: intrigeri <intrigeri at boum.org>
Date:   Thu Jun 7 23:20:38 2012 +0200

    New patch: 0001-Don-t-use-obsolete-make-local-hook-function.patch (Closes: #641514)

diff --git a/debian/patches/0001-Don-t-use-obsolete-make-local-hook-function.patch b/debian/patches/0001-Don-t-use-obsolete-make-local-hook-function.patch
new file mode 100644
index 0000000..f2eaba9
--- /dev/null
+++ b/debian/patches/0001-Don-t-use-obsolete-make-local-hook-function.patch
@@ -0,0 +1,26 @@
+From: intrigeri <intrigeri at 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
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..ea7148c
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Don-t-use-obsolete-make-local-hook-function.patch

-- 
Debian packaging of libperl-critic-perl



More information about the Pkg-perl-cvs-commits mailing list