(quit
(epg-context-set-result-for
epg-context 'error
- (cons 'quit
+ (cons '(quit)
(epg-context-result-for epg-context 'error)))
(delete-process process)))
(if passphrase
(quit
(epg-context-set-result-for
epg-context 'error
- (cons 'quit
+ (cons '(quit)
(epg-context-result-for epg-context 'error)))
(delete-process process)))))
(quit
(epg-context-set-result-for
epg-context 'error
- (cons 'quit
+ (cons '(quit)
(epg-context-result-for epg-context 'error)))
(delete-process process)))))
(defun epg-status-DECRYPTION_FAILED (process string)
(epg-context-set-result-for
epg-context 'error
- (cons 'decryption-failed
+ (cons '(decryption-failed)
(epg-context-result-for epg-context 'error))))
(defun epg-status-NODATA (process string)
(defun epg-status-KEYREVOKED (process string)
(epg-context-set-result-for
epg-context 'error
- (cons 'key-revoked
+ (cons '(key-revoked)
(epg-context-result-for epg-context 'error))))
(defun epg-status-BADARMOR (process string)
(epg-context-set-result-for
epg-context 'error
- (cons 'bad-armor
+ (cons '(bad-armor)
(epg-context-result-for epg-context 'error))))
(defun epg-status-INV_RECP (process string)
(defun epg-status-NO_RECP (process string)
(epg-context-set-result-for
epg-context 'error
- (cons 'no-recipients
+ (cons '(no-recipients)
(epg-context-result-for epg-context 'error))))
(defun epg-status-DELETE_PROBLEM (process string)
;;;###autoload
(defun epg-cancel (context)
+ (if (buffer-live-p (process-buffer process))
+ (save-excursion
+ (set-buffer (process-buffer process))
+ (epg-context-set-result-for
+ epg-context 'error
+ (cons '(quit)
+ (epg-context-result-for epg-context 'error)))))
(if (eq (process-status (epg-context-process context)) 'run)
(delete-process (epg-context-process context))))