From 36bfd5861fcb18ab6cef782ae3b185afc77d3628 Mon Sep 17 00:00:00 2001
From: Bruno Haible <bruno@clisp.org>
Date: Sun, 16 Jun 2019 14:54:43 +0200
Subject: [PATCH] Restore Emacs time-stamp hook applicability.

Reported by Darshit Shah <darnir@gnu.org>.

* build-aux/useless-if-before-free: Bump time-stamp-line-limit to 50.
* build-aux/announce-gen: Likewise.
* build-aux/gitlog-to-changelog: Likewise.
* build-aux/prefix-gnulib-mk: Likewise.
* build-aux/update-copyright: Likewise.
---
 ChangeLog                        | 10 ++++++++++
 build-aux/announce-gen           |  1 +
 build-aux/gitlog-to-changelog    |  1 +
 build-aux/prefix-gnulib-mk       |  1 +
 build-aux/update-copyright       |  1 +
 build-aux/useless-if-before-free |  1 +
 6 files changed, 15 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index a0d2f415fe..3ab71a3d95 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2019-06-16  Bruno Haible  <bruno@clisp.org>
+
+	Restore Emacs time-stamp hook applicability.
+	Reported by Darshit Shah <darnir@gnu.org>.
+	* build-aux/useless-if-before-free: Bump time-stamp-line-limit to 50.
+	* build-aux/announce-gen: Likewise.
+	* build-aux/gitlog-to-changelog: Likewise.
+	* build-aux/prefix-gnulib-mk: Likewise.
+	* build-aux/update-copyright: Likewise.
+
 2019-06-15  Bruno Haible  <bruno@clisp.org>
 
 	Fix scripts to have valid executable format on Alpine Linux.
diff --git a/build-aux/announce-gen b/build-aux/announce-gen
index bbcaa1ab32..5921dcc0c9 100755
--- a/build-aux/announce-gen
+++ b/build-aux/announce-gen
@@ -564,6 +564,7 @@ EOF
 ## perl-extra-newline-before-brace: t
 ## perl-merge-trailing-else: nil
 ## eval: (add-hook 'before-save-hook 'time-stamp)
+## time-stamp-line-limit: 50
 ## time-stamp-start: "my $VERSION = '"
 ## time-stamp-format: "%:y-%02m-%02d %02H:%02M"
 ## time-stamp-time-zone: "UTC0"
diff --git a/build-aux/gitlog-to-changelog b/build-aux/gitlog-to-changelog
index b2780efbeb..40b839e1e2 100755
--- a/build-aux/gitlog-to-changelog
+++ b/build-aux/gitlog-to-changelog
@@ -506,6 +506,7 @@ sub git_dir_option($)
 # mode: perl
 # indent-tabs-mode: nil
 # eval: (add-hook 'before-save-hook 'time-stamp)
+# time-stamp-line-limit: 50
 # time-stamp-start: "my $VERSION = '"
 # time-stamp-format: "%:y-%02m-%02d %02H:%02M"
 # time-stamp-time-zone: "UTC0"
diff --git a/build-aux/prefix-gnulib-mk b/build-aux/prefix-gnulib-mk
index 864f3bf029..f3ca725174 100755
--- a/build-aux/prefix-gnulib-mk
+++ b/build-aux/prefix-gnulib-mk
@@ -248,6 +248,7 @@ sub process ($)
 ## cperl-merge-trailing-else: nil
 ## cperl-continued-statement-offset: 2
 ## eval: (add-hook 'before-save-hook 'time-stamp)
+## time-stamp-line-limit: 50
 ## time-stamp-start: "my $VERSION = '"
 ## time-stamp-format: "%:y-%02m-%02d %02H:%02M"
 ## time-stamp-time-zone: "UTC0"
diff --git a/build-aux/update-copyright b/build-aux/update-copyright
index 063500d417..0bb482b362 100755
--- a/build-aux/update-copyright
+++ b/build-aux/update-copyright
@@ -284,6 +284,7 @@ else
 # mode: perl
 # indent-tabs-mode: nil
 # eval: (add-hook 'before-save-hook 'time-stamp)
+# time-stamp-line-limit: 50
 # time-stamp-start: "my $VERSION = '"
 # time-stamp-format: "%:y-%02m-%02d.%02H:%02M"
 # time-stamp-time-zone: "UTC0"
diff --git a/build-aux/useless-if-before-free b/build-aux/useless-if-before-free
index 88a787c761..0e479a34b4 100755
--- a/build-aux/useless-if-before-free
+++ b/build-aux/useless-if-before-free
@@ -217,6 +217,7 @@ EOF
 ## mode: perl
 ## indent-tabs-mode: nil
 ## eval: (add-hook 'before-save-hook 'time-stamp)
+## time-stamp-line-limit: 50
 ## time-stamp-start: "my $VERSION = '"
 ## time-stamp-format: "%:y-%02m-%02d %02H:%02M"
 ## time-stamp-time-zone: "UTC0"
-- 
2.39.5