Function: eudc-format-query
eudc-format-query is a byte-compiled function defined in eudc.el.gz.
Signature
(eudc-format-query WORDS FORMAT)
Documentation
Use FORMAT to build a EUDC query from WORDS.
Source Code
;; Defined in /usr/src/emacs/lisp/net/eudc.el.gz
(defun eudc-format-query (words format)
"Use FORMAT to build a EUDC query from WORDS."
(let (query
query-alist
key val cell)
(if format
(progn
(while (and words format)
(setq query-alist (cons (cons (car format) (car words))
query-alist))
(setq words (cdr words)
format (cdr format)))
;; If the same attribute appears more than once, merge
;; the corresponding values
(while query-alist
(setq key (caar query-alist)
val (cdar query-alist)
cell (assq key query))
(if cell
(setcdr cell (concat (cdr cell) " " val))
(setq query (cons (car query-alist) query)))
(setq query-alist (cdr query-alist)))
query)
(if eudc-protocol-has-default-query-attributes
(mapconcat #'identity words " ")
(list (cons 'name (mapconcat #'identity words " ")))))))