Updates/improvements -- riece-xfaceb
This changeset improves the speed of the bbdb lookups as much as possible,
and also makes it possible for the user to choose which channels this
addon will be active in.
* lisp/riece-xfaceb.el: Autoload #'bbdb-search.
* lisp/riece-xfaceb.el (riece-xfaceb-channels): New customisable
variable. Holds list of channels where this addon should be
active.
* lisp/riece-xfaceb.el (riece-xfaceb-addremove-channel): New
convenience user function to update `riece-xfaceb-channels'.
* lisp/riece-xfaceb.el (riece-xfaceb-add-glyph): New. Adds either
a cface or xface glyph to an extent.
* lisp/riece-xfaceb.el (riece-xfaceb-update-user-list-buffer):
Only update in channels listed in `riece-xfaceb-channels' (all
chans if that is nil).
Use #'bbdb-search to search specifically on ircnick field instead
of crawling the entire db.
Use #'riece-xfaceb-add-glyph.
* lisp/riece-xfaceb.el (riece-xfaceb-enable): Add
`riece-xfaceb-channels' to `riece-saved-forms'.
Define `C-c C-c x' to #'riece-xfaceb-addremove-channel.
* lisp/riece-xfaceb.el (riece-xfaceb-disable): Remove
`riece-xfaceb-channels' from `riece-saved-forms'.
Undefine `C-c C-c x'.
Signed-off-by: Steve Youngs <steve@sxemacs.org>