That makes it impossible to run Emacs if jabber-debug-log-xml has been
customized, but jabber-console.el is not in the load path for some
reason. Instead add an autoload cookie for jabber-process-console to
ensure that it gets loaded when needed. Also remove duplicate
definition of jabber-buffer-connection.
The goal is to fix "Couldn't write XML log: Wrong type argument:
sequencep" message when xml-data contain number. So, (format "%s"
number) isnt needed anymore here and there.
Print all XMPP stanzas in buffer *-jabber-console-JID-*.
Arbitrary code can be manually sent to XML stream from this buffer.
Features:
* Use legacy `jabber-debug-log-xml' custom var to trigger console
* Print XML with indention and syntax highlight (sgml-mode required)
* Comments indicates sending/receiving/raw into console buffer
* Console buffer name is customizable, see `jabber-console-name-format'
* Console buffer truncated, see `jabber-console-truncate-lines'
Thanks to Evgenii Terechkov for features and tests.