Make generated header file read-only in an emacs buffer.

This commit is contained in:
Werner Koch 2010-03-15 12:04:53 +00:00
parent c9f6151c18
commit a684c13c55
4 changed files with 21 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2010-03-15 Werner Koch <wk@g10code.com>
* configure.ac (emacs_local_vars_begin)
(emacs_local_vars_read_only, emacs_local_vars_end): New.
2010-01-22 Werner Koch <wk@g10code.com>
* autogen.sh (--build-w32): Add --with-libassuan-prefix.

View File

@ -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

View File

@ -1,3 +1,8 @@
2010-03-15 Werner Koch <wk@g10code.com>
* gpgme.h.in: Add autoconf template to set generated file to
read-only in an emacs buffer.
2010-03-12 Werner Koch <wk@g10code.com>
* gpgme.h.in (GPGME_STATUS_SUCCESS): Use the right file for the

View File

@ -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@
*/