summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2011-04-06 10:17:48 +0200
committerWerner Koch <wk@gnupg.org>2011-04-06 10:17:48 +0200
commitff10bd860da982d8ecad39a02156816998951e67 (patch)
tree2d90934ee03eb58b74a26b6ff2dea7b0ab6da504
parentd9db9210b67b613f60c2f73923c53336abb74438 (diff)
downloadlibgcrypt-ff10bd860da982d8ecad39a02156816998951e67.tar.gz
Move an AC_SUBST to avoid an Emacs warning
Recent versions of Emacs seem to have a not so strict check for local buffer variables and thus detect our emacs_local_vars subs as improper local variables. Moving them more to the top of the file helps. Another solution would have been to use m4 tricks.
-rw-r--r--ChangeLog5
-rw-r--r--configure.ac10
2 files changed, 10 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index e3ff5dbe..6df65b2b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-04-06 Werner Koch <wk@g10code.com>
+
+ * configure.ac (emacs_local_vars_begin): Move more to the top to
+ avoid Emacs warnings.
+
2011-03-30 Werner Koch <wk@g10code.com>
* compat/compat.c (_gcry_compat_identification): Add version string.
diff --git a/configure.ac b/configure.ac
index f9e3593d..155d679f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -338,6 +338,11 @@ default_ciphers="$available_ciphers"
default_pubkey_ciphers="$available_pubkey_ciphers"
default_digests="$available_digests"
+# Substitutions to set generated files in a Emacs buffer to read-only.
+AC_SUBST(emacs_local_vars_begin, ['Local Variables:'])
+AC_SUBST(emacs_local_vars_read_only, ['buffer-read-only: t'])
+AC_SUBST(emacs_local_vars_end, ['End:'])
+
############################
## Command line switches. ##
############################
@@ -1187,11 +1192,6 @@ AC_DEFINE_UNQUOTED(BUILD_REVISION, "$BUILD_REVISION",
[Subversion revision used to build this package])
-# Substitutions to set generated files in a Emacs buffer to read-only.
-AC_SUBST(emacs_local_vars_begin, ['Local Variables:'])
-AC_SUBST(emacs_local_vars_read_only, ['buffer-read-only: t'])
-AC_SUBST(emacs_local_vars_end, ['End:'])
-
# And create the files.
AC_CONFIG_FILES([