From: ueno Date: Tue, 20 Mar 2007 10:22:53 +0000 (+0000) Subject: Update. X-Git-Tag: epg-0_0_11~51 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=47562bc0ae37170ce1cf121d12f303ce9b8206ba;p=elisp%2Fepg.git Update. --- diff --git a/epa.texi b/epa.texi index 4b35f88..7a1af3d 100644 --- a/epa.texi +++ b/epa.texi @@ -201,15 +201,15 @@ not alter the original text around OpenPGP cleartext blocks. @deffn Command epa-sign-region start end signers type Sign the current region between @var{start} and @var{end}. By default, it creates a cleartext signature. If a prefix argument is -given, it will ask you to select signing keys, and then a signature +given, it will let you to select signing keys, and then a signature type. @end deffn @deffn Command epa-encrypt-region start end recipients sign signers Encrypt the current region between @var{start} and @var{end}. It will -ask you to select recipients. If a prefix argument is given, it will +let you to select recipients. If a prefix argument is given, it will also ask you whether or not to sign the plaintext before encryption -and if you answered yes, it will ask you to select the signing keys. +and if you answered yes, it will let you to select the signing keys. @end deffn @node Cryptographic operations on files @@ -224,12 +224,12 @@ Verify @var{file}. @end deffn @deffn Command epa-sign-file file signers type -Sign @var{file}. If a prefix argument is given, it will ask you to +Sign @var{file}. If a prefix argument is given, it will let you to select signing keys, and then a signature type. @end deffn @deffn Command epa-encrypt-file file recipients -Encrypt @var{file}. It will ask you to select recipient keys. +Encrypt @var{file}. It will let you to select recipients. @end deffn @node Dired integration @@ -238,7 +238,32 @@ Encrypt @var{file}. It will ask you to select recipient keys. @node Encrypting/decrypting *.gpg files @section Encrypting/decrypting *.gpg files -(not yet written.) +Once @code{epa-setup} is loaded, every file whose extension is +@samp{.gpg} will be treated as encrypted. That is, when you attempt +to open such a file which already exists, the decrypted text is +inserted in the buffer rather than encrypted one. On the other hand, +when you attempt to save the buffer to a file whose extension is +@samp{.gpg}, encrypted data is written. + +If you want to temporarily disable this behavior, use @kbd{M-x +epa-file-disable}, and then to enable this behavior use @kbd{M-x +epa-file-enable}. + +@deffn Command epa-file-disable +Disable automatic encryption/decryption of *.gpg files. +@end deffn + +@deffn Command epa-file-enable +Enable automatic encryption/decryption of *.gpg files. +@end deffn + +@code{epa-file} will let you to select recipients. If you want to +suppress this question, it might be good idea to put the following +line on the first line of the plaintext. + +@lisp +;; -*- epa-file-encrypt-to: ("ueno@@unixuser.org") -*- +@end lisp @summarycontents @contents