X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/3a8b7013042adae3c27327a75662fd8e884d4896..058e8562775571790e48b1614e84a9617a9e1e17:/lisp/epa-file.el diff --git a/lisp/epa-file.el b/lisp/epa-file.el index db8613aec9..ee502ef64a 100644 --- a/lisp/epa-file.el +++ b/lisp/epa-file.el @@ -1,5 +1,5 @@ ;;; epa-file.el --- the EasyPG Assistant, transparent file encryption -*- lexical-binding: t -*- -;; Copyright (C) 2006-2015 Free Software Foundation, Inc. +;; Copyright (C) 2006-2016 Free Software Foundation, Inc. ;; Author: Daiki Ueno ;; Keywords: PGP, GnuPG @@ -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)