Function: eudc-set-server
eudc-set-server is an autoloaded, interactive and byte-compiled
function defined in eudc.el.gz.
Signature
(eudc-set-server SERVER PROTOCOL &optional NO-SAVE)
Documentation
Set the directory server to SERVER using PROTOCOL.
Unless NO-SAVE is non-nil, the server is saved as the default server for future sessions.
Probably introduced at or before Emacs version 29.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/net/eudc.el.gz
;;;###autoload
(defun eudc-set-server (server protocol &optional no-save)
"Set the directory server to SERVER using PROTOCOL.
Unless NO-SAVE is non-nil, the server is saved as the default
server for future sessions."
(interactive (list
(read-from-minibuffer "Directory Server: ")
(intern (completing-read "Protocol: "
(mapcar (lambda (elt)
(cons (symbol-name elt)
elt))
eudc-known-protocols)))))
(unless (or (null protocol)
(member protocol
eudc-supported-protocols)
(load (concat "eudcb-" (symbol-name protocol)) t))
(error "Unsupported protocol: %s" protocol))
(run-hooks 'eudc-switch-from-server-hook)
(setq eudc-protocol protocol)
(setq eudc-server server)
(eudc-update-local-variables)
(run-hooks 'eudc-switch-to-server-hook)
(if (called-interactively-p 'interactive)
(message "Current directory server is now %s (%s)" eudc-server eudc-protocol))
(if (null no-save)
(when (not eudc-ignore-options-file)
(eudc-save-options))))