diff options
| author | Daiki Ueno <ueno@gnu.org> | 2015-11-06 10:28:36 +0900 |
|---|---|---|
| committer | Daiki Ueno <ueno@gnu.org> | 2015-11-06 10:56:49 +0900 |
| commit | ddd0eada666c48906341ef57e3385e5faf92989c (patch) | |
| tree | d6e091f7bb8860facfd908b6b40b5444a2337f5d /lisp/net/pinentry.el | |
| parent | 8311d3929a4ebd1684f11e3e97c25b4152d40679 (diff) | |
| download | emacs-ddd0eada666c48906341ef57e3385e5faf92989c.tar.gz | |
Suppress redundant Pinentry startup messages
* lisp/net/pinentry.el (pinentry-start): Add optional QUIET
argument.
* lisp/epg.el: Declare `pinentry-start'.
(epg--start): Call `pinentry-start' with QUIET argument set.
Diffstat (limited to 'lisp/net/pinentry.el')
| -rw-r--r-- | lisp/net/pinentry.el | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lisp/net/pinentry.el b/lisp/net/pinentry.el index eaa9fa40b12..0037006f40a 100644 --- a/lisp/net/pinentry.el +++ b/lisp/net/pinentry.el @@ -151,16 +151,20 @@ If local sockets are not supported, this is nil.") (apply query-function (concat desc "\n" prompt) query-args)))) ;;;###autoload -(defun pinentry-start () +(defun pinentry-start (&optional quiet) "Start a Pinentry service. Once the environment is properly set, subsequent invocations of -the gpg command will interact with Emacs for passphrase input." +the gpg command will interact with Emacs for passphrase input. + +If the optional QUIET argument is non-nil, messages at startup +will not be shown." (interactive) (unless (featurep 'make-network-process '(:family local)) (error "local sockets are not supported")) (if (process-live-p pinentry--server-process) - (message "Pinentry service is already running") + (unless quiet + (message "Pinentry service is already running")) (let* ((server-file (expand-file-name "pinentry" pinentry--socket-dir))) (server-ensure-safe-dir pinentry--socket-dir) ;; Delete the socket files made by previous server invocations. |
