>>>>> In <87r6dqywer.fsf@grepfind.mwolson.org> >>>>> Michael Olson wrote: > Daiki Ueno writes: > > Would someone please apply the attached patch which only contains > > minor bug/doc fixes for EasyPG? Then I'll post an update of the > > patch: http://article.gmane.org/gmane.emacs.devel/89452 Sorry for the delay. Please find the patch below, which I think ready to be installed into the trunk. Here are responses to the comments for the previous patch: >>>>> In >>>>> Richard Stallman wrote: > All this sounds good, but it might be desirable for Auto Encryption mode > to ask for confirmation before it decrypts any newly visited file for > the first time. It looks hard for me to do that, since I couldn't find an easy way to ask before find-file, and to inhibit file-name-handler per file. Do you have any idea? >>>>> In <200802181951.m1IJpGsN016364@sallyv1.ics.uci.edu> >>>>> Dan Nicolaescu wrote: > > + (when auto-encryption-mode (auto-encryption-mode 1)) > Turning on a mode when loading a file does not seem like not a good idea. > Instead, you could add a custom-reevaluate-setting call in startup.el Yes, I simply dropped the above line. Because it turned out that just setting :init-value of define-minor-mode runs the body of auto-encryption-mode as expected. 2008-04-18 Daiki Ueno * epa-file.el (auto-encryption-mode): Rename from epa-file-mode. (epa-file-handler): Put 'safe-magic and 'operations properties. * epa.el (epa-global-minor-modes): Abolish. (epa-mode): Abolish. (epa-menu): Abolish. (epa-menu-items): Abolish. * epa-dired.el (epa-dired-do-decrypt): Add autoload cookie. (epa-dired-do-verify): Ditto. (epa-dired-do-sign): Ditto. (epa-dired-do-encrypt): Ditto. (epa-dired-mode): Abolish. (epa-global-dired-mode): Abolish. * dired.el (dired-mode-map): Bind encryption/decryption commands. * menu-bar.el (menu-bar-encryption-decryption-menu): New menu item. * files.el (insert-file-contents-literally): Inhibit epa-file-handler.