On February 23, 2009 at 2:16PM -0500,
psg (at debian.org) wrote:

> You had this as a patch to emacs-goodies-el's README.Debian:
>
>   alpaca.el is an alternative (simpler) to EasyPG, to edit GnuPG files
>   encrypted with shared-key cryptography.  Use (add-hook
>   'find-file-hooks 'alpaca-after-find-file) in your .emacs to enable it.
>   To load a file encrypted with GnuPG, say foo.gpg, type `C-x C-f
>   foo.gpg RET' and type its passphrase.  Note that plain text is stored
>   to a temporary file in the same directory of the encrypted file.  You
>   should not use a network file system for the directory.
>
> Unfortunately, there is more to adding a file to emacs-goodies-el than
> that.  I don't want users to have to add _anything_ to ~/.emacs in order
> to get something to work.  The code must be integrated with the custom
> interface.  For full details, see the file 00AddingFiles on the alioth
> project pkg-goodies-el

Could you please accept the following patch?

(Enabling this feature by default if EasyPG isn't installed.  The
custom interface for find-file-hook is already provided by Eamcs.)

debian/README.Debian:

alpaca.el is an alternative (simpler) to EasyPG, to edit GnuPG files
encrypted with shared-key cryptography.  If EasyPG is not installed,
this feature is enabled by default (see find-file-hook via customize).
To load a file encrypted with GnuPG, say foo.gpg, type `C-x C-f foo.gpg
RET' and type its passphrase.  Note that plain text is stored to a
temporary file in the same directory of the encrypted file.  You should
not use a network file system for the directory.

elisp/emacs-goodies-el/emacs-goodies-el.el:

;; alpaca.el
(when (not (featurep 'xemacs))
  (autoload 'alpaca-after-find-file "alpaca" nil t)
  (when (not (locate-library "epa-file"))
    (add-hook 'find-file-hooks 'alpaca-after-find-file)))

Thanks,
--
Tatsuya Kinoshita

Attachment: pgp5XQCuPuTMG.pgp
Description: PGP signature

Reply via email to