Naming fix for consistency

* lisp/epg-config.el (epg-find-configuration): Rename from
`epg-configuration-find' to be consistent with other epg-* functions.
Change all callers.
This commit is contained in:
Daiki Ueno 2016-02-21 07:26:40 +09:00
parent 74ec92da9e
commit d0f3b18fa9
3 changed files with 6 additions and 6 deletions

View file

@ -1452,7 +1452,7 @@ loading packages twice."
(defvar package--downloads-in-progress nil (defvar package--downloads-in-progress nil
"List of in-progress asynchronous downloads.") "List of in-progress asynchronous downloads.")
(declare-function epg-configuration-find "epg-config" (declare-function epg-find-configuration "epg-config"
(protocol &optional force)) (protocol &optional force))
(declare-function epg-import-keys-from-file "epg" (context keys)) (declare-function epg-import-keys-from-file "epg" (context keys))
@ -1555,9 +1555,9 @@ downloads in the background."
(inhibit-message async)) (inhibit-message async))
(if (get 'package-check-signature 'saved-value) (if (get 'package-check-signature 'saved-value)
(when package-check-signature (when package-check-signature
(epg-configuration-find 'OpenPGP)) (epg-find-configuration 'OpenPGP))
(setq package-check-signature (setq package-check-signature
(if (epg-configuration-find 'OpenPGP) (if (epg-find-configuration 'OpenPGP)
'allow-unsigned))) 'allow-unsigned)))
(when (and package-check-signature (file-exists-p default-keyring)) (when (and package-check-signature (file-exists-p default-keyring))
(condition-case-unless-debug error (condition-case-unless-debug error

View file

@ -99,7 +99,7 @@ Emacs.")
(defvar epg--configurations nil) (defvar epg--configurations nil)
;;;###autoload ;;;###autoload
(defun epg-configuration-find (protocol &optional force) (defun epg-find-configuration (protocol &optional force)
"Find or create a usable configuration to handle PROTOCOL. "Find or create a usable configuration to handle PROTOCOL.
This function first looks at the existing configuration found by This function first looks at the existing configuration found by
the previous invocation of this function, unless FORCE is non-nil. the previous invocation of this function, unless FORCE is non-nil.
@ -190,7 +190,7 @@ entry until the version requirement is met."
;;;###autoload ;;;###autoload
(defun epg-configuration () (defun epg-configuration ()
"Return a list of internal configuration parameters of `epg-gpg-program'." "Return a list of internal configuration parameters of `epg-gpg-program'."
(declare (obsolete epg-configuration-find "25.1")) (declare (obsolete epg-find-configuration "25.1"))
(epg-config--make-gpg-configuration epg-gpg-program)) (epg-config--make-gpg-configuration epg-gpg-program))
(defun epg-config--parse-version (string) (defun epg-config--parse-version (string)

View file

@ -186,7 +186,7 @@
compress-algorithm compress-algorithm
&aux &aux
(program (program
(let ((configuration (epg-configuration-find protocol))) (let ((configuration (epg-find-configuration protocol)))
(unless configuration (unless configuration
(signal 'epg-error (signal 'epg-error
(list "no usable configuration" protocol))) (list "no usable configuration" protocol)))