On 2010-09-11 13:55 +0100, Stefan Monnier wrote: >>>> I have recreated the patch against emacs-23 as suggested. I have also >>>> briefly tested it. Seems to work as expected. M-TAB in rcirc-mode now >>>> uses the new completion at point interface. >>> Looks good to me, >> I have been using it over the weekend and nothing abnormal found. But >> maybe apply the following minor tweaks on top of the previous patch. > > Can you post a final patch to install? > > > Stefan Attached. The ChangeLog entry could looks something like this: * net/rcirc.el (rcirc-server-commands, rcirc-client-commands) (rcirc-completion-start): new variables. (rcirc-nick-completions): rename to rcirc-completions. (rcirc-nick-completion-start-offset): delete. (rcirc-completion-at-point): new function for constructing completion data for both nicks and irc commands. Add to completion-at-point-functions in rcirc mode. (rcirc-complete): rename from rcirc-nick-complete; use rcirc-completion-at-point. (defun-rcirc-command): update rcirc-client-commands.