[cl-xmpp-devel] with-iq-query: update

Adam Thorsen adam.thorsen at gmail.com
Sat Dec 24 20:01:53 UTC 2005


I found that by modifying the with-iq-query macro by replacing
connection with ,connection as show below, I can get the macro to
compile and the function to execute.


(defmacro with-iq-query ((connection &key xmlns id to node (type
"get")) &body body)
  "Macro to make it easier to write QUERYs."
  `(progn
     (with-iq (,connection :id ,id :type ,type :to ,to)
      (cxml:with-element "query"
       (cxml:attribute "xmlns" ,xmlns)
       (when ,node
         (cxml:attribute "node" ,node))
       , at body))
    ,connection))

Thanks,
-Adam



More information about the cl-xmpp-devel mailing list