Function: auth-source-backend-parse-parameters

auth-source-backend-parse-parameters is a byte-compiled function defined in auth-source.el.gz.

Signature

(auth-source-backend-parse-parameters ENTRY BACKEND)

Documentation

Fill in the extra auth-source-backend(var)/auth-source-backend(fun) parameters of ENTRY.

Using the plist ENTRY, get the :host, :port, and :user search parameters.

Source Code

;; Defined in /usr/src/emacs/lisp/auth-source.el.gz
(defun auth-source-backend-parse-parameters (entry backend)
  "Fill in the extra `auth-source-backend' parameters of ENTRY.
Using the plist ENTRY, get the :host, :port, and :user search
parameters."
  (let ((entry (if (stringp entry)
                   nil
                 entry))
        val)
    (when (setq val (plist-get entry :host))
      (oset backend host val))
    (when (setq val (plist-get entry :user))
      (oset backend user val))
    (when (setq val (plist-get entry :port))
      (oset backend port val)))
  backend)