X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/e57f766d3c97162258ec24b2b4986cdc0e98d352..84c7b3879c7a720693064bc5057fcb8f218235ad:/lisp/epa-file.el diff --git a/lisp/epa-file.el b/lisp/epa-file.el index db8613aec9..88d25a570b 100644 --- a/lisp/epa-file.el +++ b/lisp/epa-file.el @@ -82,12 +82,15 @@ encryption is used." passphrase)))) (epa-passphrase-callback-function context key-id file))) +(defvar epa-inhibit nil + "Non-nil means don't try to decrypt .gpg files when operating on them.") + ;;;###autoload (defun epa-file-handler (operation &rest args) (save-match-data (let ((op (get operation 'epa-file))) - (if op - (apply op args) + (if (and op (not epa-inhibit)) + (apply op args) (epa-file-run-real-handler operation args))))) (defun epa-file-run-real-handler (operation args)