aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2010-03-15 12:04:53 +0000
committerWerner Koch <[email protected]>2010-03-15 12:04:53 +0000
commita684c13c55eb0bc81aa823a4f3c6b5968440f33f (patch)
treefb13ead0ae22644ab263123174cca4c5e819cc4e
parentAdd constant to the template and not to a built file. (diff)
downloadgpgme-a684c13c55eb0bc81aa823a4f3c6b5968440f33f.tar.gz
gpgme-a684c13c55eb0bc81aa823a4f3c6b5968440f33f.zip
Make generated header file read-only in an emacs buffer.
-rw-r--r--ChangeLog5
-rw-r--r--configure.ac6
-rw-r--r--src/ChangeLog5
-rw-r--r--src/gpgme.h.in5
4 files changed, 21 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 1d7523be..185bb859 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-03-15 Werner Koch <[email protected]>
+
+ * configure.ac (emacs_local_vars_begin)
+ (emacs_local_vars_read_only, emacs_local_vars_end): New.
+
2010-01-22 Werner Koch <[email protected]>
* autogen.sh (--build-w32): Add --with-libassuan-prefix.
diff --git a/configure.ac b/configure.ac
index 5fb09d46..9b3b0d43 100644
--- a/configure.ac
+++ b/configure.ac
@@ -871,6 +871,12 @@ AC_CHECK_TYPES([error_t], [],
[#include <errno.h>])
+# A substitution 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:'])
+
+
# Last check.
die=no
if test "$require_libassuan" = "no"; then
diff --git a/src/ChangeLog b/src/ChangeLog
index 3cdd9aae..7be7b5f3 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
+2010-03-15 Werner Koch <[email protected]>
+
+ * gpgme.h.in: Add autoconf template to set generated file to
+ read-only in an emacs buffer.
+
2010-03-12 Werner Koch <[email protected]>
* gpgme.h.in (GPGME_STATUS_SUCCESS): Use the right file for the
diff --git a/src/gpgme.h.in b/src/gpgme.h.in
index 59ee77bf..2c5ef108 100644
--- a/src/gpgme.h.in
+++ b/src/gpgme.h.in
@@ -2101,3 +2101,8 @@ typedef gpgme_status_code_t GpgmeStatusCode _GPGME_DEPRECATED;
}
#endif
#endif /* GPGME_H */
+/*
+@emacs_local_vars_begin@
+@emacs_local_vars_read_only@
+@emacs_local_vars_end@
+*/