Updates/improvements -- riece-xfaceb
authorSteve Youngs <steve@sxemacs.org>
Sun, 31 May 2015 07:28:14 +0000 (17:28 +1000)
committerDaiki Ueno <ueno@gnu.org>
Mon, 1 Jun 2015 01:05:04 +0000 (10:05 +0900)
commit4e7d94f9c055bad351eb2f33ac2cafa281ea7a62
treea9ec1957bfc88c4044dfe0200c3af0ab53e02d66
parent86c03d1518910e0497a4b23e30106660e2673878
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>
lisp/riece-xfaceb.el