Fixed.
authorueno <ueno>
Mon, 1 May 2006 00:48:24 +0000 (00:48 +0000)
committerueno <ueno>
Mon, 1 May 2006 00:48:24 +0000 (00:48 +0000)
epg.el

diff --git a/epg.el b/epg.el
index 17aae6b..94767c1 100644 (file)
--- a/epg.el
+++ b/epg.el
@@ -1241,9 +1241,9 @@ You can then use `write-region' to write new data into the file."
 
 ;;;###autoload
 (defun epg-cancel (context)
-  (if (buffer-live-p (process-buffer process))
+  (if (buffer-live-p (process-buffer (epg-context-process context)))
       (save-excursion
-       (set-buffer (process-buffer process))
+       (set-buffer (process-buffer (epg-context-process context)))
        (epg-context-set-result-for
         epg-context 'error
         (cons '(quit)