+2006-11-14 Daiki Ueno <ueno@unixuser.org>
+
+ * epg.el (epg--start): Don't specify --enable-progress-filter for
+ gpgsm.
+ (epg--status-PROGRESS): Check if progress-callback is set.
+
2006-11-12 Daiki Ueno <ueno@unixuser.org>
* epg.el (epg-error): New error.
"--yes")
(if (string-match ":" (or (getenv "GPG_AGENT_INFO") ""))
'("--use-agent"))
- (if (epg-context-progress-callback context)
+ (if (and (not (eq (epg-context-protocol context) 'CMS))
+ (epg-context-progress-callback context))
'("--enable-progress-filter"))
(if epg-gpg-home-directory
(list "--homedir" epg-gpg-home-directory))
(epg-sig-notations signature))))))
(defun epg--status-PROGRESS (context string)
- (if (string-match "\\`\\([^ ]+\\) \\([^ ]\\) \\([0-9]+\\) \\([0-9]+\\)"
- string)
+ (if (and (epg-context-progress-callback context)
+ (string-match "\\`\\([^ ]+\\) \\([^ ]\\) \\([0-9]+\\) \\([0-9]+\\)"
+ string))
(funcall (if (consp (epg-context-progress-callback context))
(car (epg-context-progress-callback context))
(epg-context-progress-callback context))