From: Werner Koch Date: Mon, 15 Mar 2010 12:04:53 +0000 (+0000) Subject: Make generated header file read-only in an emacs buffer. X-Git-Tag: gpgme-1.3.1~76 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a684c13c55eb0bc81aa823a4f3c6b5968440f33f;p=gpgme.git Make generated header file read-only in an emacs buffer. --- diff --git a/ChangeLog b/ChangeLog index 1d7523b..185bb85 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-03-15 Werner Koch + + * configure.ac (emacs_local_vars_begin) + (emacs_local_vars_read_only, emacs_local_vars_end): New. + 2010-01-22 Werner Koch * autogen.sh (--build-w32): Add --with-libassuan-prefix. diff --git a/configure.ac b/configure.ac index 5fb09d4..9b3b0d4 100644 --- a/configure.ac +++ b/configure.ac @@ -871,6 +871,12 @@ AC_CHECK_TYPES([error_t], [], [#include ]) +# 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 3cdd9aa..7be7b5f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2010-03-15 Werner Koch + + * gpgme.h.in: Add autoconf template to set generated file to + read-only in an emacs buffer. + 2010-03-12 Werner Koch * 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 59ee77b..2c5ef10 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@ +*/