Function: auth-source-pass--domains

auth-source-pass--domains is a byte-compiled function defined in auth-source-pass.el.gz.

Signature

(auth-source-pass--domains NAME-COMPONENTS)

Documentation

Return a list of possible domain names matching the hostname.

This function takes a list of NAME-COMPONENTS, the strings separated by periods in the hostname, and returns a list of full domain names containing the trailing sequences of those components, from longest to shortest.

Source Code

;; Defined in /usr/src/emacs/lisp/auth-source-pass.el.gz
(defun auth-source-pass--domains (name-components)
  "Return a list of possible domain names matching the hostname.

This function takes a list of NAME-COMPONENTS, the strings
separated by periods in the hostname, and returns a list of full
domain names containing the trailing sequences of those
components, from longest to shortest."
  (cl-maplist (lambda (components) (mapconcat #'identity components "."))
              name-components))